Author Topic: Login and Logout sessions missing  (Read 4427 times)

torontob

  • Full Member
  • ***
  • Posts: 155
  • Karma: 0
    • View Profile
Login and Logout sessions missing
« on: October 13, 2010, 19:41:17 »
Hello,

This is what we use to Login and Logout users through a Speed Dial on an Aastra phone:

Login:
exten => 90001,1,Answer()
exten => 90001,n,AddQueueMember(500|Local/${CALLERID(num)}@from-internal/n)
exten => 90001,n,Playback(agent-loginok)
exten => 90001,n,Hangup()


Logout:
exten => 90000,1,Answer
exten => 90000,n,RemoveQueueMember(500|Local/${CALLERID(num)}@from-internal/n)
exten => 90000,n,Playback(agent-loggedoff)
exten => 90000,n,Hangup


Agents are used to using the phone sets and it's also safer as QM may fail at one point and Agents can still login to the queues with Speed Dial keys attaches back to extension 90001 (login) and 90000 (logout).

However, it seems that none of those events are read by QM as they are only ADD and REMOVE member and in Queue log and login or logoff is not added.

Queue_Log Report:
1286991484|1286991484.730|500|Local/366@from-internal/n|ADDMEMBER|
1286991510|1286991510.732|500|Local/366@from-internal/n|REMOVEMEMBER|


How can I change above dialplan to include a format accepted by QM?

***My question on this would remain as why ADD and REMOVE member are not translated as Login/Logoff since they are exactly the same thing.

And which part of the Report is fully responsible for reporting the session data including Login, Logoff and Pause, Unpause? In details...


Thanks



« Last Edit: October 13, 2010, 19:59:41 by torontob »

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Login and Logout sessions missing
« Reply #1 on: October 14, 2010, 09:25:48 »
That is exactly what QM does on newer systems. Try and take a trace of what Qm logs whe n an agent logs over QM versus phone, so we can spot the difference.

torontob

  • Full Member
  • ***
  • Posts: 155
  • Karma: 0
    • View Profile
Re: Login and Logout sessions missing
« Reply #2 on: October 15, 2010, 01:06:02 »
I have copied and pasted exact same things from the /etc/asterisk/extensions_queuemetrics.conf and sessions are logged properly but whenever an Agent logs into English Queue they also show logged in on Russian Queue and on French Queue. This is not accurate. What could be causing this?


QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Login and Logout sessions missing
« Reply #3 on: October 15, 2010, 09:17:11 »
Likely: when an agent is logged on using AgentLogin, s/he is available on all queues he's working on - but QM does not know which ones unless you tell it. So if you use realtime mode "All", it will show all agents logged on, no matter what the queue you are monitoring.

torontob

  • Full Member
  • ***
  • Posts: 155
  • Karma: 0
    • View Profile
Re: Login and Logout sessions missing
« Reply #4 on: October 15, 2010, 17:36:15 »
I am sorry I am not comprehending. Please tell me what steps to take to fix this so it shows the proper queue log in.

Currently installed in PIAF with Qloader and Asterisk 1.4. My dial-plan for Login is as shown above. What should I echo into the queue log file to show which Queue I am logging into?

Are you saying that this line should include the queue number?
1286991484|1286991484.730|500|Local/366@from-internal/n|ADDMEMBER|

As you can see it already does have the 500 in it. What else should we have?

Thanks

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Login and Logout sessions missing
« Reply #5 on: October 18, 2010, 10:45:04 »
That is correct but  I see that you have the database icons on your posts, that looks like AGENTCALLBACK logons as well.
 

torontob

  • Full Member
  • ***
  • Posts: 155
  • Karma: 0
    • View Profile
Re: Login and Logout sessions missing
« Reply #6 on: October 18, 2010, 18:20:48 »
Yeah, that is because I copied the callback login as well since my sessions weren't recording just using Add or Remove Queuemember:

This is what it looked like:
Code: [Select]
exten => 90000,1,Answer
exten => 90000,n,RemoveQueueMember(500|Local/${CALLERID(num)}@from-internal/n)
exten => 90000,n,RemoveQueueMember(499|Local/${CALLERID(num)}@from-internal/n)
exten => 90000,n,RemoveQueueMember(498|Local/${CALLERID(num)}@from-internal/n)
exten => 90000,n,System( echo "${EPOCH}|${UNIQUEID}|NONE|Agent/${CALLERID(num)}|AGENTLOGOFF|-" >> /var/log/asterisk/queue_log)
exten => 90000,n,Playback(agent-loggedoff)
exten => 90000,n,Hangup


Now I got rid of the:
Code: [Select]
exten => 90000,n,System( echo "${EPOCH}|${UNIQUEID}|NONE|Agent/${CALLERID(num)}|AGENTLOGOFF|-" >> /var/log/asterisk/queue_log)
But where can I see in the session which Queue specifically the agent logged into?
Also, I have a button on the phone associate with ext. 90000 which logs out of all queues. How can I make that specific to whatever queue that user is logged in so that no extraneous data for log out of saved (e.g. if only English is logged in, only English should log out.)

Thanks

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Login and Logout sessions missing
« Reply #7 on: October 19, 2010, 14:30:25 »
You should not use ADDMEMBER and AGENTLOGIN at the same time.

torontob

  • Full Member
  • ***
  • Posts: 155
  • Karma: 0
    • View Profile
Re: Login and Logout sessions missing
« Reply #8 on: October 19, 2010, 16:22:18 »
Please read my post again. I said I removed that AGENTLOGIN already but then my sessions are not logged.

Thanks

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Login and Logout sessions missing
« Reply #9 on: October 20, 2010, 11:00:23 »
Lorenzo says yesterday agents were showing correctly.

torontob

  • Full Member
  • ***
  • Posts: 155
  • Karma: 0
    • View Profile
Re: Login and Logout sessions missing
« Reply #10 on: October 20, 2010, 22:08:02 »
Yes, this post was made prior to talking to him. For others reference we had Dynamic agents set as MAIN, SPILL or WRAP that was causing the problem.

Thanks

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Login and Logout sessions missing
« Reply #11 on: October 21, 2010, 09:03:56 »
 ;D