[asterisk-users] Dial Plan Help

Steve Totaro stotaro at totarotechnologies.com
Sun Aug 24 08:20:36 CDT 2008


On Sun, Aug 24, 2008 at 8:11 AM, Jon Weisman <jweisman at ibell.net> 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.
>
>
> Thanks,
>
> Jon

Jon,

This should work just fine with the correct dial syntax, after a call
ends, the exten goes to h for hangup rather then progressing further
down the priority for the initial exten.

Double check your syntax.

http://www.voip-info.org/wiki-Asterisk+cmd+Dial

Thanks,
Steve Totaro



More information about the asterisk-users mailing list