<div dir="ltr">i think DIALSTATUS is not suitable for failover if trunk is down you get dialstatus after time out in dial string.<div style>it is too late for failover, you can use some script to check if destination host is up.</div>
<div style>if you want to do failover when destination host is up then dialstatus are good.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 5:30 PM, Ishfaq Malik <span dir="ltr">&lt;<a href="mailto:ish@pack-net.co.uk" target="_blank">ish@pack-net.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I&#39;m using asterisk 1.8.7.0 and adding a fail over trunk in case my<br>
primary goes down. I&#39;m wondering what the best method of checking if the<br>
primary being up is.<br>
<br>
Is DIALSTATUS suitable for this or is there any good SIP headers to look<br>
at after the Dial step?<br>
<br>
Thanks in Advance<br>
<br>
Ish<br>
--<br>
Ishfaq Malik &lt;<a href="mailto:ish@pack-net.co.uk">ish@pack-net.co.uk</a>&gt;<br>
Department: VOIP Support<br>
Company: Packnet Limited<br>
t: <a href="tel:%2B44%20%280%29845%20004%204994" value="+448450044994">+44 (0)845 004 4994</a><br>
f: <a href="tel:%2B44%20%280%29161%20660%209825" value="+441616609825">+44 (0)161 660 9825</a><br>
e: <a href="mailto:ish@pack-net.co.uk">ish@pack-net.co.uk</a><br>
w: <a href="http://www.pack-net.co.uk" target="_blank">http://www.pack-net.co.uk</a><br>
<br>
Registered Address: PACKNET LIMITED, 2A ENTERPRISE HOUSE, LLOYD STREET<br>
NORTH, MANCHESTER<br>
SCIENCE PARK, MANCHESTER, M156SE<br>
COMPANY REG NO. 04920552<br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">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" target="_blank">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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div>