Author Topic: Agent session detail - Unable to get the statistic  (Read 4311 times)

David

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
    • View Profile
    • Email
Agent session detail - Unable to get the statistic
« on: March 25, 2007, 09:01:07 »
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

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Agent session detail - Unable to get the statistic
« Reply #1 on: March 25, 2007, 11:09:48 »
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: [Select]
[agents]
exten => XXX,1,Dial(SIP${EXTEN},30)

This should be it.




David

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
    • View Profile
    • Email
Re: Agent session detail - Unable to get the statistic
« Reply #2 on: March 25, 2007, 18:49:07 »
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|-|

« Last Edit: March 25, 2007, 18:51:26 by David »

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Agent session detail - Unable to get the statistic
« Reply #3 on: March 26, 2007, 21:35:51 »
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.