[VoIP] Calling all Asterisk 1.4 users
Lee Spenadel
spenadel at gmail.com
Mon Feb 25 19:49:05 CST 2008
Hi Martin,
The priorityjumping command is not commented out. While I found a
workaround for this particular application, your comments will help me with
a different one.
Many thanks
Lee
-----Original Message-----
From: voip-bounces at ckts.info [mailto:voip-bounces at ckts.info] On Behalf Of
Martin Harriss
Sent: Monday, February 25, 2008 8:39 PM
To: Voice Over IP Tandem for Analog Switches
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/
More information about the VoIP
mailing list