QueueMetrics forum

QueueMetrics => General Asterisk configuration => Topic started by: emilec on January 30, 2009, 12:57:57

Title: Logged out agents still display in realtime view
Post by: emilec on January 30, 2009, 12:57:57
We are using the QueueMetrics login page for agents along with the Asterisk code to log agents in and out of queues. I have 3 sites where agents log out the queue column becomes blank but they still have a green status icon next to them and are not disappearing from the queue. They do however not get calls and asterisk shows that they are not logged into the queue. If you leave things overnight they do eventually disappear. Two of the sites are 1.5.0 and the other is 1.4.7.1. Any thoughts as to what is causing this?
Title: Re: Logged out agents still display in realtime view
Post by: QueueMetrics on January 30, 2009, 16:31:16
Can you send a screenshot? ancd can you check what lines get appended to the queue_log on a logoff? looks like QM is ignoring the logoffs....
Title: Re: Logged out agents still display in realtime view
Post by: emilec on February 03, 2009, 09:41:21
Details sent to your support address.
Title: Re: Logged out agents still display in realtime view
Post by: emilec on February 11, 2009, 16:26:19
Thanks for the reply by email. For the benefit of others the code we were using was:
exten => 21,n(logagentoff),Macro(queuelog,${NOW},${UNIQUEID},${QUEUENUMBER},Agent/${AGENTCODE},AGENTCALLBACKLOGOFF,SIP/${DB(QM/Agent/${AGENTCODE})},${LOGONTIME},0)

Which we changed to
exten => 21,n(logagentoff),Macro(queuelog,${NOW},${UNIQUEID},NONE,Agent/${AGENTCODE},AGENTCALLBACKLOGOFF,SIP/${DB(QM/Agent/${AGENTCODE})},${LOGONTIME},0)

This solved the problem.
Title: Re: Logged out agents still display in realtime view
Post by: QueueMetrics on February 11, 2009, 16:45:10
Thanks for sharing!  ;D