QueueMetrics > Running QueueMetrics
Handled By displays different name in QM
hwjustin:
I have incoming and outgoing queues setup in Asterisk and Queuemetrics. Both are populating data in the queue_log and the QM web interface. The problem is, Agents are being identified differently in each queue.
Here is the QM interface:
--- Quote ---Date Caller Queue Wait Duration Pos. Disconnection Handled by Attempts Code Stints
11/06 - 11:05:20 4072152428 incoming-q 0:07 1:04 1 Caller agent/chris ryan 1 1 Details Details
11/06 - 13:00:44 2458 outgoing-q 0:01 0:04 0 Agent Chris Ryan 1 1 Details Details
--- End quote ---
Here is the queue_log:
--- Quote ---1257530720|1257530687.55|incoming-q|NONE|INFO|IVR|Service
1257530720|1257530687.55|incoming-q|NONE|ENTERQUEUE||4072152428
1257530727|1257530687.55|incoming-q|Chris Ryan|CONNECT|7|1257530720.58
1257530791|1257530687.55|incoming-q|Chris Ryan|COMPLETECALLER|7|64|1
1257537644|1257537644.60|outgoing-q|NONE|INFO|IVR|Outgoing
1257537644|1257537644.60|outgoing-q|413|CALLOUTBOUND|-|2458|
1257537645|1257537644.60|outgoing-q|413|CONNECT|1||
1257537649|1257537644.60|outgoing-q|413|COMPLETEAGENT|1|4
--- End quote ---
And the relevant dialplan info:
--- Code: ---exten => begin,n,Set(CALLERID(name)=EN/${CALLERID(name)})
exten => begin,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/EN-${UNIQUEID})
exten => begin,n,QueueLog(incoming-q,${UNIQUEID},NONE,INFO,IVR|${IVR})
exten => begin,n,Queue(incoming-q|t|||300)
exten => _XXX.,1,Set(QDIALER_QUEUE=outgoing-q)
exten => _XXX.,n,Set(QDIALER_NUMBER=${EXTEN})
exten => _XXX.,n,Set(QDIALER_AGENT=${AGENTID})
exten => _XXX.,n,Set(QDIALER_CHANNEL=IAX2/PHX/${QDIALER_NUMBER})
exten => _XXX.,n,Set(QueueName=${QDIALER_QUEUE})
exten => _XXX.,n,MixMonitor(/var/spool/asterisk/monitor/OUT-${UNIQUEID}.WAV|b|)
exten => _XXX.,n,Goto(qm-queuedial,s,1)
[qm-queuedial]
exten => s,1,NoOp,Outbound call -> A:${QDIALER_AGENT} N:${QDIALER_NUMBER} Q:${QDIALER_QUEUE} Ch:${QDIALER_CHANNEL}
exten => s,n,Set(CDR(accountcode)=QDIALAGI)
exten => s,n,Set(ST=${EPOCH})
exten => s,n,Set(GM=QDV-${QDIALER_AGENT})
exten => s,n,Set(GLOBAL(${GM})=U)
exten => s,n,Set(GLOBAL(${GM}ans)=0)
exten => s,n,QueueLog(${QDIALER_QUEUE},${UNIQUEID},NONE,INFO,IVR|Outgoing) ;Set IVR code for Outoing
exten => s,n,Macro(queuelog,${ST},${UNIQUEID},${QDIALER_QUEUE},${QDIALER_AGENT},CALLOUTBOUND,-,${QDIALER_NUMBER})
exten => s,n,Dial(${QDIALER_CHANNEL},30,gM(queuedial-answer^${UNIQUEID}^${GM}^${QDIALER_QUEUE}^${QDIALER_AGENT}^${ST}))
exten => s,n,Set(CAUSECOMPLETE=${IF($["${DIALSTATUS}" = "ANSWER"]?C)})
--- End code ---
My question is why is the agent displayed as 'agent/chris ryan' for the incoming-q and 'Chris Ryan' for the outgoing-q?
QueueMetrics:
You should have Asterisk log "Agent/413" or "413" as it does for outbound, and not the name of the agent....
.
hwjustin:
Well, why is Asterisk logging the user name instead of the agent number? Here is my Agent Login:
--- Code: ---exten => _4XXX,1,Answer
exten => _4XXX,n,Set(CALLBACKNUM=${CALLERID(num)})
exten => _4XXX,n,Set(AGENTCODE=${EXTEN:1})
exten => _4XXX,n,NoOp( "QM: Logging on Agent/${AGENTCODE} to extension ${CALLBACKNUM}@from-internal" )
exten => _4XXX,n,AgentCallbackLogin(${AGENTCODE}||${CALLBACKNUM}@from-internal)
exten => _4XXX,n,Hangup
--- End code ---
--- Quote ---nocvoip*CLI> agent show
413 (Chris Ryan) available at '6025150990@from-internal' (musiconhold is 'default')
--- End quote ---
QueueMetrics:
Try and leave the agent's name blank in Asterisk, and to associate it only in QM.
hwjustin:
That did it...thanks!! 8)
Navigation
[0] Message Index
[#] Next page
Go to full version