1
General Asterisk configuration / Re: [Queuemetrics] Dialplan context problem
« on: January 27, 2011, 20:18:01 »
I see what the problem is, I misunderstood this feature, it works as intended
Thanks!
Thanks!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
That piece of dialplan is not meant to be called "by hand" - it will be called by QM through an AMI connection. You need to set up the AMI connection between the two boxes.
; extension 12: set call status code
exten => 12,1,Answer
exten => 12,2,NoOp( "QM: Setting call status '${CALLSTATUS}' on call '${CALLID}' for agent '${AGENTCODE}' made by '${QM_LOGIN}'" )
exten => 12,3,System( echo "${EPOCH}|${CALLID}|NONE|Agent/${AGENTCODE}|CALLSTATUS|${CALLSTATUS}" >> /var/log/asterisk/queue_log )
exten => 12,4,Hangup
-- Executing [12@from-internal:1] Answer("SIP/536-0000370e", "") in new stack
-- Executing [12@from-internal:2] NoOp("SIP/536-0000370e", " "QM: Setting call status '' on call '' for agent '' made by ''" ") in new stack
-- Executing [12@from-internal:3] System("SIP/536-0000370e", " echo "1295994407||NONE|Agent/|CALLSTATUS|" >> /var/log/asterisk/queue_log ") in new stack
-- Executing [12@from-internal:4] Hangup("SIP/536-0000370e", "") in new stack
== Spawn extension (from-internal, 12, 4) exited non-zero on 'SIP/536-0000370e'
-- Executing [h@from-internal:1] Macro("SIP/536-0000370e", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/536-0000370e", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/536-0000370e", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/536-0000370e", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/536-0000370e", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/536-0000370e' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/536-0000370e'
1295994407||NONE|Agent/|CALLSTATUS|