Author Topic: queueDial.agi + trixbox 2.4 + asterisk 1.4  (Read 5779 times)

hun

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
queueDial.agi + trixbox 2.4 + asterisk 1.4
« 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.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: queueDial.agi + trixbox 2.4 + asterisk 1.4
« Reply #1 on: January 28, 2008, 09:47:26 »

hun

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: queueDial.agi + trixbox 2.4 + asterisk 1.4
« Reply #2 on: January 29, 2008, 00:45:14 »
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?

revolution

  • Newbie
  • *
  • Posts: 23
  • Karma: 1
    • AOL Instant Messenger - DigressionTheory
    • View Profile
Re: queueDial.agi + trixbox 2.4 + asterisk 1.4
« Reply #3 on: January 29, 2008, 23:10:35 »
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... :)

hun

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: queueDial.agi + trixbox 2.4 + asterisk 1.4
« Reply #4 on: January 30, 2008, 06:52:46 »
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


QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: queueDial.agi + trixbox 2.4 + asterisk 1.4
« Reply #5 on: January 30, 2008, 15:43:38 »
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.