<div class="gmail_quote">On Wed, Dec 8, 2010 at 1:50 PM, Tilghman Lesher <span dir="ltr">&lt;<a href="mailto:tlesher@digium.com">tlesher@digium.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Wednesday 08 December 2010 11:33:10 Bruce B wrote:<br>
&gt; Thanks for the input guys. I really appreciate all the input and I am<br>
&gt; sure they work but I thought there would be a much better way to do<br>
&gt; this. Sounds like patching things to me. Why doesn&#39;t Asterisk take<br>
&gt; advantage of the qualify values to make sure if the SIP connection is<br>
&gt; up or not? Shouldn&#39;t this become a native feature of the PBX rather<br>
&gt; than trying to do work-around?<br clear="all"></div></blockquote></div><br>Enable qualify on your SIP peers.  Then configure your outbound dialplan like this:<br><br>exten =&gt; outboundexten,1,Dial(SIP/...)<br>exten =&gt; outboundexten,n,Dial(DAHDI/...)<br>
<br>If the SIP is up, the call goes through on that Dial statement.  When the call is over and the people hangup, it will not continue down to the next line.  If it&#39;s down (and the system knows this because of qualify), it will fail and automatically roll to the next line.  I&#39;ve used this to setup failover between DAHDI and SIP a few times.<br>
<br>-- <br>Thanks,<br>--Warren Selby, dCAP<br><a href="http://www.selbytech.com" target="_blank">http://www.selbytech.com</a><br>
<div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style>