Ashwin Surendran
2015-May-29 18:16 UTC
[asterisk-users] How to use TRUNK only if IAX fails?
>Hi,I have multiple Asterisk servers in various parts of the world all connected using dedicated VPN?s. Each of these servers have iax and dahdi TRUNK configured on them. Occasionally the VPN?s fail. What I want to be able to do is on my dial plan, use IAX if the asterisk server can reach the remote server using the internet OR, use TRUNK only if it can?t use IAX. Any ideas on how this can be implemented on the dial plan? Many Thanks, Ashwin This email (and any attachments or hyperlinks within it) may contain information that is confidential, legally privileged or otherwise protected from disclosure. If you are not the intended recipient of this email, you are not entitled to use, disclose, distribute, copy, print, disseminate or rely on this email in any way. If you have received this email in error, please notify the sender immediately by telephone or email and destroy it, and all copies of it. Thank you for your cooperation.
On 5/29/15 1:16 PM, Ashwin Surendran wrote:>> Hi, > I have multiple Asterisk servers in various parts of the world all > connected using dedicated VPN?s. > > Each of these servers have iax and dahdi TRUNK configured on them. > > Occasionally the VPN?s fail. > > What I want to be able to do is on my dial plan, use IAX if the asterisk > server can reach the remote server using the internet OR, use TRUNK only > if it can?t use IAX. > > Any ideas on how this can be implemented on the dial plan? > >Check the DIALSTATUS variable to see if the IAX trunk failed and then dial via DAHDI. https://wiki.asterisk.org/wiki/display/AST/Dial+Channel+Variables -- Telecomunicaciones Abiertas de M?xico S.A. de C.V. Carlos Ch?vez +52 (55)9116-91161
Ashwin Surendran
2015-May-30 07:03 UTC
[asterisk-users] How to use TRUNK only if IAX fails?
Many Thanks Carlos, I was hoping to check whether the remote server is available before I issue the dial in my dial plan. Is there a better way to do it in asterisk without using unix commands? Many Thanks, Ashwin On 5/30/15, 2:06 AM, "Carlos Chavez" <cursor at telecomabmex.com> wrote:>On 5/29/15 1:16 PM, Ashwin Surendran wrote: >>> Hi, >> I have multiple Asterisk servers in various parts of the world all >> connected using dedicated VPN?s. >> >> Each of these servers have iax and dahdi TRUNK configured on them. >> >> Occasionally the VPN?s fail. >> >> What I want to be able to do is on my dial plan, use IAX if the asterisk >> server can reach the remote server using the internet OR, use TRUNK only >> if it can?t use IAX. >> >> Any ideas on how this can be implemented on the dial plan? >> >> > Check the DIALSTATUS variable to see if the IAX trunk failed and >then dial via DAHDI. > >https://wiki.asterisk.org/wiki/display/AST/Dial+Channel+Variables > >-- >Telecomunicaciones Abiertas de M?xico S.A. de C.V. >Carlos Ch?vez >+52 (55)9116-91161 > > >-- >_____________________________________________________________________ >-- Bandwidth and Colocation Provided by http://www.api-digital.com -- >New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > >asterisk-users mailing list >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-usersThis email (and any attachments or hyperlinks within it) may contain information that is confidential, legally privileged or otherwise protected from disclosure. If you are not the intended recipient of this email, you are not entitled to use, disclose, distribute, copy, print, disseminate or rely on this email in any way. If you have received this email in error, please notify the sender immediately by telephone or email and destroy it, and all copies of it. Thank you for your cooperation.