Hey everyone,
Im currently stuck trying to enable call outcomes on my asterisk/queuemetrics setup.
I have Asterisk/FreePBX running on serverA, and queuemetrics/mysql running on serverB. Everything is working great, except now we would like to start using call outcomes. I have included extensions_queuemetrics.conf to my extensions_custom.conf and have verified it has loaded, however when I try dialing "12" for example, the call cannot be completed. However if I paste the following
; 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
into extensions_custom.conf without the [queuemetrics] context, the call completes and shows this in the asterisk cli:
-- 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'
And this is entered into the queue_log
1295994407||NONE|Agent/|CALLSTATUS|
Any help would be great!
Thanks!