[asterisk-users] Dial+Macro and Queue
Paul Hales
pdhales at optusnet.com.au
Thu Feb 21 00:21:03 CST 2008
This really looks like we are missing a lot of the associated code.
PaulH
On Wed, 2008-02-20 at 00:28 -0800, Shaun R. wrote:
> 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
>
>
>
> _______________________________________________
> -- 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
More information about the asterisk-users
mailing list