[asterisk-users] Dial+Macro and Queue

Shaun R. mailinglists at unix-scripts.com
Wed Feb 20 02:28:40 CST 2008


A call comes in and goes into the queue, the queue dials a sip channel using 
a macro.  The macro plays a set of options to the callee and if the callee 
presses 3 it sets MACRO_RESULT=CONTINUE and the macro ends.  For some reason 
the caller goes back into the queue rather than continueing on in the dial 
plan.  Why is this, i could have sworn in 1.2 if i set MACRO_RESULT=CONTINUE 
that the caller exited the queue() and continued on in the dialplan...

[incomming]
exten => 1,1,Queue(mainqueue,td)
exten => 1,2,voicemail(201 at default)
exten => 1,3,hangup

[screen]
exten => _3XX,1,ChanIsAvail(SIP/${EXTEN}&IAX2/${EXTEN})
exten => _3XX,2,GotoIf($["${AVAILCHAN}" = ""]?4)
exten => _3XX,3,Dial(${CUT(AVAILCHAN,-,1)},30,mgM(screencallee,s,1))
exten => _3XX,4,Hangup

[macro-screencallee]
exten => s,1,read(SCREEN_OPT,screenoptions)
exten => s,2,GotoIf($["${SCREEN_OPT}" = "" ]?s,1)
exten => s,3,GotoIf($["${SCREEN_OPT}" = "3" ]?3,1)
exten => 3,1,Set(MACRO_RESULT=CONTINUE)
exten => t,1,Set(MACRO_RESULT=BUSY)
exten => h,1,Set(MACRO_RESULT=BUSY)

queues.conf
[mainqueue]
musicclass = default
strategy = ringall
timeout = 600
joinempty = yes
member => local/306 at screen

~Shaun 





More information about the asterisk-users mailing list