[Asterisk-Users] Dial() Jumping behaviour and Vesrsion 1.2
hugolivude
hugolivude at gmail.com
Thu Jan 19 12:45:56 MST 2006
The version 1.2 Dial() command does not use the n+101 jumping
behaviour by default. I know about the j option and setting
"priorityjumping=yes" as described here:
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Dial
But if I use the default behaviour does that mean I have to check the
DIALSTATUS to determine whether or not to go to voicemail?
For example I used to do this:
exten => s,1,Dial(SIP/${EXTEN}@2123456789,20,t)
exten => s,2,Voicemail(u${EXTEN})
exten => s,3,Goto(s,200)
;
exten => s,102,Voicemail(b${EXTEN})
exten => s,103,Goto(s,200)
;
exten => s,200,Playback(CallAgainRealSoon)
exten => s,201,Hangup
;
exten => h,1,Hangup
So in 1.2 would I do the following or am I missing something?
exten => s,1,Dial(SIP/${EXTEN}@2123456789,20,t)
exten => s,2,GotoIf($["${DIALSTATUS }" = "BUSY"]?10)
exten => s,3,GotoIf($["${DIALSTATUS }" = "NOANSWER"]?20)
;
exten => s,10,Voicemail(b${EXTEN})
exten => s,11,Goto(s,100)
;
exten => s,20,Voicemail(u${EXTEN})
exten => s,21,Goto(s,100)
;
exten => s,100,Playback(CallAgainRealSoon)
exten => s,101,Hangup
;
exten => h,1,Hangup
Thanks!
Hugh
More information about the asterisk-users
mailing list