[Asterisk-Users] Question about ISDN reason codes

Robert Jackson RobertJ at promedicalinc.com
Fri Oct 22 05:23:44 MST 2004



> -----Original Message-----
> From: joachim [mailto:zoachien at securax.org] 
> Sent: Friday, October 22, 2004 6:15 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] Question about ISDN reason codes
> 
> 
> 
> 
> Are you sure this works ?  (and does it work whatever end hung up ?)
> 
> If it works, its not expected behaviour. (at least i dont 
> think it is, it 
> should never go to the next priority when the call got hungup).
> 
> zoa.
> 
> At 05:06 22/10/2004, you wrote:
> >exten => _91NXXNXXXXXX,1,Dial(${PSTN}/${EXTEN:1})
> >exten => _91NXXNXXXXXX,2,Macro(dial-result)
> >
Check out the current config/extensions.conf.sample.  This is exactly
How the relatively new dialstatus variable is used.  

Robert Jackson


(Excerpt from extensions.conf.sample):

[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(u${ARG1}) ; 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(b${ARG1})     ; 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



More information about the asterisk-users mailing list