QueueMetrics > Running QueueMetrics
Agent session detail - Unable to get the statistic
(1/1)
David:
Hi,
I'm trying to get queuemetrics to report when the agent login and logout. I'm unable to get it work. I have tried with addqueuemember and with agentcalllogin. None of them work. The agetn can receive call and realtime panel show the agent as logged in but when I generate a report, I can't see the agent session detail.
Here are the queue_log details with addqueuemember :
1174803275|1174803275.25578|NONE|SIP/640|AGENTLOGIN|-
1174803670|1174803668.25579|NONE|SIP/640|AGENTLOGOFF|-|
Macro used to login:
exten => s,1,AddQueueMember(payment,SIP/${CALLERID(num)})
exten => s,n,System( echo "${EPOCH}|${UNIQUEID}|NONE|SIP/${CALLERID(num)}|AGENTLOGIN|-" >> /var/log/asterisk/queue_log)
exten => s,n,Wait(0.5)
exten => s,n,Playback(agent-loginok)
exten => s,n,Hangup()
And with agentcallbacklogin:
1174804437|1174804435.25586|NONE|Agent/640|AGENTCALLBACKLOGIN|640@internalCommunications
Is there anything special I should do ? I'm version 1.3.3. I did the installation using the yum repositories.
Thx
QueueMetrics:
Try setting those SIP/XXX to Agent/XXX, or better Local/XXX:
1174803275|1174803275.25578|NONE|Local/640@agents|AGENTLOGIN|-
And then set rewriteLocalChannels=true in the config file.
You can do this by changing your dialplan as follows:
exten => s,1,AddQueueMember(payment,Local/${CALLERID(num)}@agents)
exten => s,n,System( echo "${EPOCH}|${UNIQUEID}|NONE|Local/${CALLERID(num)}@agents|AGENTLOGIN|-" >> /var/log/asterisk/queue_log)
Of couse this implies you have a context agents, that might be something like:
--- Code: ---[agents]
exten => XXX,1,Dial(SIP${EXTEN},30)
--- End code ---
This should be it.
David:
I tried to chage the SIP/XXX for Agent/XXX and it didn't work. Same result for the Local trick. All the other statistic are working fine, I cant see how many call an agent receive etc... but I can't get any session details.
Here the result of queue_log:
1174840852|1174840852.0|NONE|Local/640@agents|AGENTLOGIN|-
1174840903|1174840901.1|NONE|Local/640@agents|AGENTLOGOFF|-|
1174840650|1174840650.25596|NONE|Agent/640|AGENTLOGIN|-
1174840663|1174840661.25597|NONE|Agent/640|AGENTLOGOFF|-|
QueueMetrics:
It would be better if you could send over a piece of your queue_log to the support line, so we can try and run it in our labs and see what is wrong with it.
Navigation
[0] Message Index
Go to full version