[asterisk-users] Dial Plan Help

Jon Weisman jweisman at ibell.net
Tue Aug 26 06:37:18 CDT 2008


Steve & Alex thanks for your help. I've got it working perfectly now.

-Jon



----- Original Message ----- 
From: "Alex Balashov" <abalashov at evaristesys.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 
<asterisk-users at lists.digium.com>
Sent: Sunday, August 24, 2008 9:22 AM
Subject: Re: [asterisk-users] Dial Plan Help


> John,
>
> This is the default behaviour anyway.  If Dial() is successful,
> execution of subsequent priorities in the dial plan for that extension
> is not resumed.  It'll only fall through to the other priorities if
> Dial() fails.
>
> I do, however, suggest supplying a timeout argument to your Dial()s.
>
> -- Alex
>
> Jon Weisman wrote:
>
>> I'd like to do the following can someone guide me on how to accomplish 
>> this?
>>
>>
>> Call comes in via PRI and tries to go out via SIP if for some reason the 
>> ISP
>> is down and the call can not go out i want it to fail over and send the 
>> same
>> call through a different PRI.
>>
>> I was thinking something like this:
>>
>> exten=>_X.,1,Dial(SIP/${EXTEN}@10.0.0.1)
>> exten=>_X.,2,Dial,Zap/g2/${EXTEN}    ; <---- I only want it to go here if 
>> it
>> was unable to send the call via SIP (if the first priority failed), but 
>> if
>> it did go through sip then it should just hangup the call when the person 
>> is
>> done speaking.
>
> -- 
> Alex Balashov
> Evariste Systems
> Web    : http://www.evaristesys.com/
> Tel    : (+1) (678) 954-0670
> Direct : (+1) (678) 954-0671
> Mobile : (+1) (706) 338-8599
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users 





More information about the asterisk-users mailing list