[VoIP] Calling all Asterisk 1.4 users

Mad Mark madmanmarkau at hotmail.com
Mon Feb 25 21:44:23 CST 2008


"exten => s,2,Goto(s-${DIALSTATUS},1)"

That is awesome. Just like a "try {} catch () {}" block. I'll definitely be making use of this!

> Date: Mon, 25 Feb 2008 20:38:30 -0500
> From: martin at Princeton.EDU
> To: voip at ckts.info
> Subject: Re: [VoIP] Calling all Asterisk 1.4 users
> 
> Lee Spenadel wrote:
> > Yes, that was set.  No joy though. It worked that way in 1.2 but not 1.4.
> 
> The sample extensions.conf in the 1.4 distribution has this to say about 
> the matter:
> 
> ; If priorityjumping is set to 'yes', then applications that support
> ; 'jumping' to a different priority based on the result of their operations
> ; will do so (this is backwards compatible behavior with pre-1.2 releases
> ; of Asterisk). Individual applications can also be requested to do this
> ; by passing a 'j' option in their arguments.
> ;
> ;priorityjumping=yes
> 
> ... so it's rather surprising that this didn't work for you.  Is your 
> "priorityjumping line uncommented?  (As you can see, it isn't in the 
> example file.)
> 
> Further examples in the same file suggest what you are supposed to do in 
> recent versions of Asterisk:
> 
> [macro-stdexten];
> ;
> ; Standard extension macro:
> ;   ${ARG1} - Extension  (we could have used ${MACRO_EXTEN} here as well
> ;   ${ARG2} - Device(s) to ring
> ;
> exten => s,1,Dial(${ARG2},20)                   ; Ring the interface, 20 
> seconds maximum
> exten => s,2,Goto(s-${DIALSTATUS},1)            ; Jump based on status 
> (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)
> 
> exten => s-NOANSWER,1,Voicemail(${ARG1},u)      ; If unavailable, send 
> to voicemail w/ unavail announce
> exten => s-NOANSWER,2,Goto(default,s,1)         ; If they press #, 
> return to start
> 
> exten => s-BUSY,1,Voicemail(${ARG1},b)          ; If busy, send to 
> voicemail w/ busy announce
> exten => s-BUSY,2,Goto(default,s,1)             ; If they press #, 
> return to start
> 
> exten => _s-.,1,Goto(s-NOANSWER,1)              ; Treat anything else as 
> no answer
> 
> exten => a,1,VoicemailMain(${ARG1})             ; If they press *, send 
> the user into VoicemailMain
> 
> In other words, the ${DIALSTATUS} variable reports the result of the 
> Dial operation, and you can jump to wherever depending on the contents 
> of that variable.
> 
> Hope this helps,
> Martin
> _______________________________________________
> VoIP mailing list
> VoIP at ckts.info
> http://lists.ckts.info/mailman/listinfo/voip
> Project Web Page: http://www.ckts.info/

_________________________________________________________________
Overpaid or Underpaid? Check our comprehensive Salary Centre
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fcontent%2Emycareer%2Ecom%2Eau%2Fsalary%2Dcentre%3Fs%5Fcid%3D595810&_t=766724125&_r=Hotmail_Email_Tagline_MyCareer_Oct07&_m=EXT


More information about the VoIP mailing list