<?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[Queue agent status updates]]></title><description><![CDATA[<p dir="auto">On the dev box I setup, I initially had issues getting the agent to update successfully on logon/off.  Now that I'm setting up the production systems I cannot seem to resolve the issue.  Previously, it required modifying the user_login_out.agi as per the post [url:3nci2ste]<a href="http://www.fop2.com/forum/View" rel="nofollow ugc">http://www.fop2.com/forum/View</a> Post 129[/url:3nci2ste].  Didn't help this time.</p>
<p dir="auto">FOP2.20 final<br />
FreePBX 2.9.0.7<br />
Asterisk 1.8.3.3<br />
Debian squeeze</p>
<p dir="auto">Running fop2 in debug (./fop2_server -X 15), I do see the user events that, I believe, should be updating the client.</p>
<pre><code>127.0.0.1       &lt;- Event: UserEvent
127.0.0.1       &lt;- Privilege: user,all
127.0.0.1       &lt;- UserEvent: UserDeviceRemoved|Data: 219
127.0.0.1       &lt;- 3219
127.0.0.1       &lt;- Server: 0


127.0.0.1       &lt;- Event: UserEvent
127.0.0.1       &lt;- Privilege: user,all
127.0.0.1       &lt;- UserEvent: UserDeviceAdded|Data: 219
127.0.0.1       &lt;- 3219
127.0.0.1       &lt;- Server: 0
</code></pre>
<p dir="auto">Any help would be great.<br />
Thanks</p>
]]></description><link>http://localhost:4567/topic/807/queue-agent-status-updates</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 09:52:55 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/807.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Jun 2011 12:28:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Queue agent status updates on Thu, 30 Jan 2020 10:38:29 GMT]]></title><description><![CDATA[<p dir="auto">Sorry to wake such an old post but I'm having this problem and haven't been able to solve it.<br />
I have Elastix 2.5 and FOP 2.28. When using Users and Devices, when I login, most of the time (but not all) the extension that was on the device continues to show it's in a call to *11 and continues to look as thought connected, and when I logoff, the state of the user appears as though still logged in and the *12 call still active (forever).<br />
The event I see in debug mode looks correct:<br />
127.0.0.1            &lt;- Event: UserEvent<br />
127.0.0.1            &lt;- Privilege: user,all<br />
127.0.0.1            &lt;- UserEvent: UserDeviceRemoved<br />
127.0.0.1            &lt;- Uniqueid: 1580380014.8496411<br />
127.0.0.1            &lt;- Data: 51133,44444</p>
<p dir="auto">Which event is it looking at?</p>
<p dir="auto">I noticed the hangup event is usually right before it notifies the browser and the AccountCode  is missing and the CallerIdNum is the new user on the device:<br />
127.0.0.1            &lt;- Event: Hangup<br />
127.0.0.1            &lt;- Privilege: call,all<br />
127.0.0.1            &lt;- Channel: SIP/44444-00237eb8<br />
127.0.0.1            &lt;- Uniqueid: 1580379756.8495839<br />
127.0.0.1            &lt;- CallerIDNum: 44444<br />
127.0.0.1            &lt;- CallerIDName: device<br />
127.0.0.1            &lt;- ConnectedLineNum: &lt;unknown&gt;<br />
127.0.0.1            &lt;- ConnectedLineName: &lt;unknown&gt;<br />
127.0.0.1            &lt;- AccountCode:<br />
127.0.0.1            &lt;- Cause: 16<br />
127.0.0.1            &lt;- Cause-txt: Normal Clearing<br />
Any ideas?</p>
]]></description><link>http://localhost:4567/post/3600</link><guid isPermaLink="true">http://localhost:4567/post/3600</guid><dc:creator><![CDATA[londony]]></dc:creator><pubDate>Thu, 30 Jan 2020 10:38:29 GMT</pubDate></item><item><title><![CDATA[Reply to Queue agent status updates on Tue, 21 Jun 2011 13:59:41 GMT]]></title><description><![CDATA[<p dir="auto">Yes, I had to try a few variations with the user_login_out.agi to get the data formatted correctly for fop2.  It seems that under this version of freePBX, the line for asterisk 1.6.0 is correct.</p>
<pre><code>//if(version_compare(get_var("ASTVERSION"), "1.6.1", "ge")) {
//      $user_event_body = "\"UserDeviceAdded|Data: {$user}\\,{$device}\"";
//} else if(version_compare(get_var("ASTVERSION"), "1.6.0", "ge")) {
//      $user_event_body = "UserDeviceAdded,\"Data: {$user}\\\\,{$device}\"";
//} else {
//      $user_event_body = "\"UserDeviceAdded|Data: {$user},{$device}\"";
//}
$user_event_body = "UserDeviceAdded,\"Data: {$user}\\\\,{$device}\"";

...

//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}\"";
//}
$user_event_body = "UserDeviceRemoved,\"Data: {$current_user}\\\\,{$device}\"";
</code></pre>
<p dir="auto">Now I just have to remember to replicate this change for any core FreePBX updates.</p>
<p dir="auto">Thanks Nicolás.</p>
]]></description><link>http://localhost:4567/post/3599</link><guid isPermaLink="true">http://localhost:4567/post/3599</guid><dc:creator><![CDATA[tasteywheat]]></dc:creator><pubDate>Tue, 21 Jun 2011 13:59:41 GMT</pubDate></item><item><title><![CDATA[Reply to Queue agent status updates on Tue, 21 Jun 2011 12:44:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<blockquote>
<p dir="auto">Running fop2 in debug (./fop2_server -X 15), I do see the user events that, I believe, should be updating the client.</p>
</blockquote>
<pre><code>127.0.0.1       &lt;- Event: UserEvent
127.0.0.1       &lt;- Privilege: user,all
127.0.0.1       &lt;- UserEvent: UserDeviceRemoved|Data: 219
127.0.0.1       &lt;- 3219
127.0.0.1       &lt;- Server: 0
</code></pre>
<blockquote>
<p dir="auto">Any help would be great.<br />
Thanks</p>
</blockquote>
<p dir="auto">The event is not correct, your user_login_out.agi is broken, The correct output from the event should be:</p>
<pre><code>127.0.0.1       &lt;- Event: UserEvent
127.0.0.1       &lt;- Privilege: user,all
127.0.0.1       &lt;- UserEvent: UserDeviceRemoved
127.0.0.1       &lt;- Data: 219,3219
127.0.0.1       &lt;- Server: 0
</code></pre>
<blockquote>
<p dir="auto">Previously, it required modifying the user_login_out.agi as per the post [url:36smhqro]<a href="http://www.fop2.com/forum/View" rel="nofollow ugc">http://www.fop2.com/forum/View</a> Post 129[/url:36smhqro].  Didn't help this time.</p>
</blockquote>
<p dir="auto">I would try with the user_login_out.agi script you had on the other server (backup your current one just in case). But that .agi is still broken. I think it does not work for asterisk 1.8. That should be reported to FreePBX. It is a FreePBX bug.</p>
]]></description><link>http://localhost:4567/post/3598</link><guid isPermaLink="true">http://localhost:4567/post/3598</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 21 Jun 2011 12:44:31 GMT</pubDate></item></channel></rss>