[asterisk-users] How to use TRUNK only if IAX fails?

Carlos Chavez cursor at telecomabmex.com
Fri May 29 17:06:42 CDT 2015

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.


Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez
+52 (55)9116-91161

More information about the asterisk-users mailing list