<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
<!--
@font-face
{font-family:Calibri}
@font-face
{font-family:Tahoma}
@font-face
{font-family:UICTFontTextStyleBody}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
span.EmailStyle17
{font-family:"Times New Roman","serif";
color:windowtext;
font-weight:normal;
font-style:normal}
.MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
{}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi Matt,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I was a bit concerned on the delay if there might be any when my iax link is down?</p>
<p class="MsoNormal">It would be two dial steps right when my iax link is down.</p>
<p class="MsoNormal">But I’m more than happy to try.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Many Thanks,</p>
<p class="MsoNormal">Ashwin.</p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]
<b>On Behalf Of </b>Matt Riddell (lists)<br>
<b>Sent:</b> 30 May 2015 16:55<br>
<b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br>
<b>Subject:</b> Re: [asterisk-users] How to use TRUNK only if IAX fails?</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">The command he gave you was in Asterisk. Why do you not want to call it to try it?</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Then you can fail over to the other trunk if the IAX link is down. <br>
<br>
<span style="font-family:"UICTFontTextStyleBody","serif"">Kind regards,</span></p>
<div>
<p class="MsoNormal"><span style="font-family:"UICTFontTextStyleBody","serif""><br>
<br>
</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"UICTFontTextStyleBody","serif"">Matt</span></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
On May 30, 2015, at 2:03 AM, Ashwin Surendran <<a href="mailto:Ashwin.Surendran@now-health.com">Ashwin.Surendran@now-health.com</a>> wrote:</p>
</div>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Many Thanks Carlos, I was hoping to check whether the remote server is<br>
available before I issue the dial in my dial plan.<br>
<br>
Is there a better way to do it in asterisk without using unix commands?<br>
<br>
<br>
Many Thanks,<br>
Ashwin<br>
<br>
On 5/30/15, 2:06 AM, "Carlos Chavez" <<a href="mailto:cursor@telecomabmex.com">cursor@telecomabmex.com</a>> wrote:<br>
<br>
<br>
</p>
<p class="MsoNormal">On 5/29/15 1:16 PM, Ashwin Surendran wrote:</p>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">Hi,</p>
</blockquote>
</blockquote>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">I have multiple Asterisk servers in various parts of the world all</p>
</blockquote>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">connected using dedicated VPN¹s.</p>
</blockquote>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal"> </p>
</blockquote>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">Each of these servers have iax and dahdi TRUNK configured on them.</p>
</blockquote>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal"> </p>
</blockquote>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">Occasionally the VPN¹s fail.</p>
</blockquote>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal"> </p>
</blockquote>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">What I want to be able to do is on my dial plan, use IAX if the asterisk</p>
</blockquote>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">server can reach the remote server using the internet OR, use TRUNK only</p>
</blockquote>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">if it can¹t use IAX.</p>
</blockquote>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal"> </p>
</blockquote>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">Any ideas on how this can be implemented on the dial plan?</p>
</blockquote>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal"> </p>
</blockquote>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal"> </p>
</blockquote>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal"> Check the DIALSTATUS variable to see if the IAX trunk failed and</p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">then dial via DAHDI.</p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal"> </p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal"><a href="https://wiki.asterisk.org/wiki/display/AST/Dial+Channel+Variables">https://wiki.asterisk.org/wiki/display/AST/Dial+Channel+Variables</a></p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal"> </p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">--</p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">Telecomunicaciones Abiertas de México S.A. de C.V.</p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">Carlos Chávez</p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">+52 (55)9116-91161</p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal"> </p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal"> </p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">--</p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">_____________________________________________________________________</p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">
http://www.api-digital.com</a> --</p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">New to Asterisk? Join us for a live introductory webinar every Thurs:</p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal"> <a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal"> </p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">asterisk-users mailing list</p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal">To UNSUBSCRIBE or update options visit:</p>
</blockquote>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal"> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></p>
</blockquote>
<p class="MsoNormal"><br>
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.<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></p>
</div>
</blockquote>
</div>
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.
</body>
</html>