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([EMAIL PROTECTED])
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/[EMAIL PROTECTED]
~Shaun
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users