<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[All extensions show online even if they are not]]></title><description><![CDATA[<p dir="auto">We are using device and user mode with Freepbx and it shows all of the agents logged in all the time even if they do not have a device registered. How can I correct this? I need this solution for a call center deployment.</p>
]]></description><link>http://localhost:4567/topic/1994/all-extensions-show-online-even-if-they-are-not</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 04:21:53 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/1994.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Jun 2015 17:02:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to All extensions show online even if they are not on Fri, 08 Mar 2019 10:33:16 GMT]]></title><description><![CDATA[<p dir="auto">Is this still a problem now?  I have the latest version of FreePBX 14 but am still getting the same problem as described here with extensions that are not online showing as online.</p>
]]></description><link>http://localhost:4567/post/8738</link><guid isPermaLink="true">http://localhost:4567/post/8738</guid><dc:creator><![CDATA[leemason]]></dc:creator><pubDate>Fri, 08 Mar 2019 10:33:16 GMT</pubDate></item><item><title><![CDATA[Reply to All extensions show online even if they are not on Mon, 10 Aug 2015 23:41:50 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>10747:<a class="plugin-mentions-user plugin-mentions-a" href="/user/b00gz" aria-label="Profile: b00gz">@<bdi>b00gz</bdi></a> escribió:</strong></p>
<p dir="auto">I see this but the button never goes grey.</p>
<p dir="auto">127.0.0.1            &lt;- Event: PeerStatus<br />
127.0.0.1            &lt;- Privilege: system,all<br />
127.0.0.1            &lt;- ChannelType: SIP<br />
127.0.0.1            &lt;- Peer: SIP/3018<br />
127.0.0.1            &lt;- PeerStatus: Unregistered<br />
127.0.0.1            &lt;- Cause: Expired</p>
<p dir="auto">127.0.0.1            &lt;- Event: ExtensionStatus<br />
127.0.0.1            &lt;- Privilege: call,all<br />
127.0.0.1            &lt;- Exten: 3018<br />
127.0.0.1            &lt;- Context: ext-local<br />
127.0.0.1            &lt;- Hint: SIP/3018&amp;Custom:DND3018,CustomPresence:3018<br />
127.0.0.1            &lt;- Status: 4</p>
<p dir="auto">127.0.0.1            &lt;- Event: ExtensionStatus<br />
127.0.0.1            &lt;- Privilege: call,all<br />
127.0.0.1            &lt;- Exten: *803018<br />
127.0.0.1            &lt;- Context: ext-local<br />
127.0.0.1            &lt;- Hint: SIP/3018&amp;Custom:DND3018,CustomPresence:3018<br />
127.0.0.1            &lt;- Status: 4</p>
</blockquote>
<p dir="auto">In User &amp; Device mode SIP Registration status is not monitored, only user login status in FreePBX system. FOP2 won't monitor sip registrations on that device and user mode, because it will return mixed states whenever you have more than one device associated to a user.</p>
]]></description><link>http://localhost:4567/post/8737</link><guid isPermaLink="true">http://localhost:4567/post/8737</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Mon, 10 Aug 2015 23:41:50 GMT</pubDate></item><item><title><![CDATA[Reply to All extensions show online even if they are not on Mon, 10 Aug 2015 12:20:28 GMT]]></title><description><![CDATA[<p dir="auto">I'm use FreePBX Distro in Device &amp; User mode with FOP2 ver. 2.29.<br />
All work fine, active only logged users.</p>
<p dir="auto">[attachment:55c896f97958a]</p>
]]></description><link>http://localhost:4567/post/8736</link><guid isPermaLink="true">http://localhost:4567/post/8736</guid><dc:creator><![CDATA[SolarW]]></dc:creator><pubDate>Mon, 10 Aug 2015 12:20:28 GMT</pubDate></item><item><title><![CDATA[Reply to All extensions show online even if they are not on Mon, 10 Aug 2015 06:23:54 GMT]]></title><description><![CDATA[<p dir="auto">I see this but the button never goes grey.</p>
<p dir="auto">127.0.0.1            &lt;- Event: PeerStatus<br />
127.0.0.1            &lt;- Privilege: system,all<br />
127.0.0.1            &lt;- ChannelType: SIP<br />
127.0.0.1            &lt;- Peer: SIP/3018<br />
127.0.0.1            &lt;- PeerStatus: Unregistered<br />
127.0.0.1            &lt;- Cause: Expired</p>
<p dir="auto">127.0.0.1            &lt;- Event: ExtensionStatus<br />
127.0.0.1            &lt;- Privilege: call,all<br />
127.0.0.1            &lt;- Exten: 3018<br />
127.0.0.1            &lt;- Context: ext-local<br />
127.0.0.1            &lt;- Hint: SIP/3018&amp;Custom:DND3018,CustomPresence:3018<br />
127.0.0.1            &lt;- Status: 4</p>
<p dir="auto">127.0.0.1            &lt;- Event: ExtensionStatus<br />
127.0.0.1            &lt;- Privilege: call,all<br />
127.0.0.1            &lt;- Exten: *803018<br />
127.0.0.1            &lt;- Context: ext-local<br />
127.0.0.1            &lt;- Hint: SIP/3018&amp;Custom:DND3018,CustomPresence:3018<br />
127.0.0.1            &lt;- Status: 4</p>
]]></description><link>http://localhost:4567/post/8735</link><guid isPermaLink="true">http://localhost:4567/post/8735</guid><dc:creator><![CDATA[b00gz]]></dc:creator><pubDate>Mon, 10 Aug 2015 06:23:54 GMT</pubDate></item><item><title><![CDATA[Reply to All extensions show online even if they are not on Mon, 27 Jul 2015 19:41:50 GMT]]></title><description><![CDATA[<p dir="auto">The bug is not in Asterisk, but a FreePBX AGI script, so you can have a broken .agi even if you run Asterisk 13. As for fixing the broken .agi, the format for Asterisk 1.8 is the same as for any newer version. Now, we did not develop FreePBX, I do not know for sure what versions have the broken .agi or not. If you run fop2_server in debug mode, and look at the UserEvents generated by the .agi script the problem will jump out immediately as you will see the broken format/event.</p>
<p dir="auto">Again, I do not know if you have that problem/broken .agi or not. But I can tell you that the broken .agi result is not seeing the user login or logout state when you dial the feature code to login/out in FreePBX.</p>
<p dir="auto">To start fop2 in debug mode you can do this</p>
<p dir="auto">service fop2 stop<br />
cd /usr/local/fop2<br />
script capture.log<br />
./fop2_server -X 1</p>
<p dir="auto">(then log into fop2, and try to login and logout a user in freepbx)</p>
<p dir="auto">ctrl-C<br />
exit<br />
service fop2 start</p>
<p dir="auto">At that point you will have a capture.log file you can open and search for the "UserEvent" string.</p>
]]></description><link>http://localhost:4567/post/8734</link><guid isPermaLink="true">http://localhost:4567/post/8734</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Mon, 27 Jul 2015 19:41:50 GMT</pubDate></item><item><title><![CDATA[Reply to All extensions show online even if they are not on Mon, 27 Jul 2015 18:59:19 GMT]]></title><description><![CDATA[<p dir="auto">This doesn't appear to be the case. I am using asterisk 11.18.0 and the code references 1.8. I tried to add 11.18.0 and it still did not work. Any other ideas on what I can try we are running the latest stable version of FreePBX.</p>
<p dir="auto">$current_user = get_user($device);<br />
if ($current_user != '') {<br />
$current_devices = get_devices($current_user);<br />
$new_devices = remove_device($current_devices,$device);<br />
cli_debug("remove_user: Setting user $current_user to devices $new_devices",5);<br />
set_user_devices($current_user, $new_devices);<br />
set_hint($current_user, $new_devices);</p>
<pre><code>                    if(version_compare(get_var("ASTVERSION"), "1.8.0", "ge")) {
                            $user_event_body = "\"UserDeviceRemoved,Data: {$current_user}\\\\,{$device}\"";
                    } else if(version_compare(get_var("ASTVERSION"), "1.6.1", "ge")) {
                            $user_event_body = "\"UserDeviceRemoved|Data: {$current_user}\\,{$device}\"";
                    } else if(version_compare(get_var("ASTVERSION"), "1.6.0", "ge")) {
                            $user_event_body = "UserDeviceRemoved,\"Data: {$current_user}\\\\,{$device}\"";
                    } else {
                            $user_event_body = "\"UserDeviceRemoved|Data: {$current_user},{$device}\"";
                    }
</code></pre>
]]></description><link>http://localhost:4567/post/8733</link><guid isPermaLink="true">http://localhost:4567/post/8733</guid><dc:creator><![CDATA[b00gz]]></dc:creator><pubDate>Mon, 27 Jul 2015 18:59:19 GMT</pubDate></item><item><title><![CDATA[Reply to All extensions show online even if they are not on Fri, 03 Jul 2015 12:53:11 GMT]]></title><description><![CDATA[<p dir="auto">user_login_out.agi from FreePBX is broken on most versions of it.. it was corrected on latest releases. There are like, about, not sure, 50 posts in this forum talking about it and how to fix it. Here is one:</p>
<p dir="auto"><a href="http://forum.fop2.com/1056-device-and-user-mode-status-updating/0" rel="nofollow ugc">http://forum.fop2.com/1056-device-and-user-mode-status-updating/0</a></p>
<p dir="auto">Perhaps you have that issue... cannot be sure as you are not specifying versions. Anyways, it works if the .agi from freepbx gets fixed and you use the login/logout feature codes (*11).</p>
]]></description><link>http://localhost:4567/post/8732</link><guid isPermaLink="true">http://localhost:4567/post/8732</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Fri, 03 Jul 2015 12:53:11 GMT</pubDate></item></channel></rss>