QueueMetrics forum
QueueMetrics => Outbound and QueueMetrics => Topic started by: hun on January 27, 2008, 09:08:40
-
for some reason the queueDial.agi script that used to work very well for outbound call queue tracking doesn't seem to be working anymore with the new version of trixbox and asterisk. Is there a new queueDial script that I should use instead?
Is the implementation found at http://queuemetrics.com/faq.jsp#faq-013-queueDial correct for these new versions?
Any help would be appreciated.
-
You should see this: http://forum.queuemetrics.com/index.php?topic=41.0
-
The problem seems to be with this section
exten => _9XXX.,1,SetVar(MY_QUE=${EXTEN:1:3})
exten => _9XXX.,2,SetVar(MY_NUM=${EXTEN:4})
exten => _9XXX.,3,SetVar(MY_AGENT=${CALLERIDNUM})
exten => _9XXX.,4,NoOp,Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}
exten => _9XXX.,5,MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|)
exten => _9XXX.,6,DeadAGI(queueDial.agi|${MY_NUM}|Zap/g0/${MY_NUM}|q-${MY_QUE}|Agent/${MY_AGENT})
exten => _9XXX.,7,Congestion
Asterisk is not reading at all that section or executing those commands for that matter. I thought it would that the extensions_custom.conf wasn't included, but after checking extensions.conf I can see it included there and also any other commands on that file go through, but just these commands don't.
Any ideas?
-
The problem seems to be with this section
exten => _9XXX.,1,SetVar(MY_QUE=${EXTEN:1:3})
exten => _9XXX.,2,SetVar(MY_NUM=${EXTEN:4})
exten => _9XXX.,3,SetVar(MY_AGENT=${CALLERIDNUM})
exten => _9XXX.,4,NoOp,Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}
exten => _9XXX.,5,MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|)
exten => _9XXX.,6,DeadAGI(queueDial.agi|${MY_NUM}|Zap/g0/${MY_NUM}|q-${MY_QUE}|Agent/${MY_AGENT})
exten => _9XXX.,7,Congestion
Asterisk is not reading at all that section or executing those commands for that matter. I thought it would that the extensions_custom.conf wasn't included, but after checking extensions.conf I can see it included there and also any other commands on that file go through, but just these commands don't.
Any ideas?
I believe the command has been changed to 'SET' as opposed to 'SETVAR' -- so that may be a good place for you to start... :)
-
Thanks for the tip. SetVar is deprecated in Asterisk 1.4, not only that but ${CALLERIDNUM} is also deprecated. You have to you use ${CALLERID(num)} or ${CALLERID(name)}. So the script would be
exten => _9XXX.,1,Set(MY_QUE=${EXTEN:1:3})
exten => _9XXX.,2,Set(MY_NUM=${EXTEN:4})
exten => _9XXX.,3,Set(MY_AGENT= ${CALLERID(num)})
exten => _9XXX.,4,NoOp,Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}
exten => _9XXX.,5,MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|)
exten => _9XXX.,6,DeadAGI(queueDial.agi|${MY_NUM}|Zap/g0/${MY_NUM}|q-${MY_QUE}|Agent/${MY_AGENT})
exten => _9XXX.,7,Congestion
-
To check if the piece of dialplan exists, you should use show dialplan contextname . If it exists and you try to execute it, you should be seeing something on the CLI and/or the full log.