Asterisk wrote:
>> You can simply:
>>
>>    exten => _0.,n,Goto(${DIALSTATUS})
>>
>> (before the playback)
>>
>> Use the labels as the destinations - eg.
>>
>>    exten => _0.,n(BUSY),Noop()
>>    exten => _0.,n(CONGESTION),Noop()
>>     
>
> I've never seen that before, does that definitely work in 1.4.x? If so,
> cool...

That's been a part of the standard extension macro I've been using
forever, as follows...

[macro-stdexten]
exten = s,1,Set(__DYNAMIC_FEATURES=${FEATURES})
exten = s,2,GotoIf($[${FOLLOWME_${ARG1}} = 1]?5:3)
exten = s,3,Dial(${ARG2},${RINGTIME},${DIALOPTIONS})
exten = s,4,Goto(s-${DIALSTATUS},1)
exten = s,5,Macro(stdexten-followme,${ARG1},${ARG2})
exten = s-NOANSWER,1,Voicemail(${ARG1},u)
exten = s-NOANSWER,2,Goto(default,s,1)
exten = s-BUSY,1,Voicemail(${ARG1},b)
exten = s-BUSY,2,Goto(default,s,1)
exten = _s-.,1,Goto(s-NOANSWER,1)
exten = a,1,VoicemailMain(${ARG1})

(the syntax is marginally different, but not significantly.  Note the
_s-. extension to catch any odd/unexpected return status codes)

_______________________________________________
-- 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

Reply via email to