<div dir="ltr">And for those wondering:<div><br></div><div>







<p class=""><span class="">&lt;</span><span class="">extension</span><span class=""> </span><span class="">name</span><span class="">=</span><span class="">&quot;call to 1234&quot;</span><span class="">&gt;</span></p>
<p class=""><span class="">  &lt;</span><span class="">condition</span><span class=""> </span><span class="">field</span><span class="">=</span><span class="">&quot;destination_number&quot;</span><span class=""> </span><span class="">expression</span><span class="">=</span><span class="">&quot;^(1234)$&quot;</span><span class="">&gt;</span></p>
<p class=""><span class="">    &lt;</span><span class="">action</span><span class=""> </span><span class="">application</span><span class="">=</span><span class="">&quot;set&quot;</span><span class=""> </span><span class="">data</span><span class="">=</span><span class="">&quot;orig_dest=$1&quot;</span><span class="">/&gt;</span></p>
<p class=""><span class="">    &lt;</span><span class="">action</span><span class=""> </span><span class="">application</span><span class="">=</span><span class="">&quot;set&quot;</span><span class=""> </span><span class="">data</span><span class="">=</span><span class="">&quot;bypass_media=true&quot;</span><span class="">/&gt;</span></p>
<p class=""><span class="">    &lt;</span><span class="">action</span><span class=""> </span><span class="">application</span><span class="">=</span><span class="">&quot;set&quot;</span><span class=""> </span><span class="">data</span><span class="">=</span><span class="">&quot;hangup_afer_bridge=true&quot;</span><span class="">/&gt;</span></p>
<p class=""><span class="">    &lt;</span><span class="">action</span><span class=""> </span><span class="">application</span><span class="">=</span><span class="">&quot;set&quot;</span><span class=""> </span><span class="">data</span><span class="">=</span><span class="">&quot;transfer_on_fail=PROGRESS_TIMEOUT,USER_BUSY,NORMAL_TEMPORARY_FAILURE&quot;</span><span class="">/&gt;</span></p>
<p class=""><span class="">    &lt;</span><span class="">action</span><span class=""> </span><span class="">application</span><span class="">=</span><span class="">&quot;bridge&quot;</span><span class=""> </span><span class="">data</span><span class="">=</span><span class="">&quot;{progress_timeout=2}sofia/external/<a href="mailto:sip%3A1234@192.168.1.123">sip:1234@192.168.1.123</a>&quot;</span><span class="">/&gt;</span></p>
<p class=""><span class="">  &lt;/</span><span class="">condition</span><span class="">&gt;</span></p>
<p class=""><span class="">&lt;/</span><span class="">extension</span><span class="">&gt;</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">&lt;</span><span class=""><b>extension</b></span><span class=""> </span><span class="">name</span><span class="">=</span><span class="">&quot;call to 1234&quot;</span><span class="">&gt;</span></p>
<p class=""><span class="">  &lt;</span><span class="">condition</span><span class=""> </span><span class="">field</span><span class="">=</span><span class="">&quot;destination_number&quot;</span><span class=""> </span><span class="">expression</span><span class="">=</span><span class="">&quot;^PROGRESS_TIMEOUT$&quot;</span><span class="">&gt;</span></p>
<p class=""><span class="">    &lt;</span><span class="">action</span><span class=""> </span><span class="">application</span><span class="">=</span><span class="">&quot;log&quot;</span><span class=""> </span><span class="">data</span><span class="">=</span><span class="">&quot;CRIT We can have progress timeouts?&quot;</span><span class="">/&gt;</span></p>
<p class=""><span class="">  &lt;/</span><span class="">condition</span><span class="">&gt;</span></p>
<p class=""><span class="">&lt;/</span><span class="">extension</span><span class="">&gt;</span></p><p class=""><span class=""><br></span></p><p class=""><span class=""><br></span></p><p class=""><span class="">See XML on <a href="https://freeswitch.org/jira/browse/FS-3193">https://freeswitch.org/jira/browse/FS-3193</a></span></p><p class=""><span class=""><br></span></p><p class=""><span class="">I fear this isn&#39;t documented correctly.</span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 25, 2015 at 4:53 PM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There is no such thing as hangup_on_bridge, and if you wish to try a different gateway if the first one doesn&#39;t respond quick enough with progress do this:<div><br></div><div>







<p><span>&lt;</span><span>extension</span><span> </span><span>name</span><span>=</span><span>&quot;call to 1234&quot;</span><span>&gt;</span></p>
<p><span>  &lt;</span><span>condition</span><span> </span><span>field</span><span>=</span><span>&quot;destination_number&quot;</span><span> </span><span>expression</span><span>=</span><span>&quot;^1234$&quot;</span><span>&gt;</span></p><span class="">
<p><span>    &lt;</span><span>action</span><span> </span><span>application</span><span>=</span><span>&quot;set&quot;</span><span> </span><span>data</span><span>=</span><span>&quot;bypass_media=true&quot;</span><span>/&gt;</span></p>
</span><p><span>    &lt;</span><span>action</span><span> </span><span>application</span><span>=</span><span>&quot;set&quot;</span><span> </span><span>data</span><span>=</span><span>&quot;hangup_after_bridge=true&quot;</span><span>/&gt;</span></p>
<p><span>    &lt;</span><span>action</span><span> </span><span>application</span><span>=</span><span>&quot;bridge&quot;</span><span> </span><span>data</span><span>=</span><span>&quot;{progress_timeout=2}sofia/internal/<a href="mailto:sip%3A1234@switch2-asdfa.com" target="_blank">sip:1234@switch2-asdfa.com</a>&quot;</span><span>/&gt;</span></p>
<p><span>    &lt;</span><span>action</span><span> </span><span>application</span><span>=</span><span>&quot;bridge&quot;</span><span> </span><span>data</span><span>=</span><span>&quot;{progress_timeout=10}sofia/internal/<a href="mailto:sip%3A1234@switch1-asdfa.com" target="_blank">sip:1234@switch1-asdfa.com</a>&quot;</span><span>/&gt;</span></p>
<p><span>  &lt;/</span><span>condition</span><span>&gt;</span></p>
<p><span>&lt;/</span><span>extension</span><span>&gt;</span></p><p><span><br></span></p><p><span>There is no reason to do what you were doing in this case.</span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Nov 25, 2015 at 12:42 PM, Gabriel Kuri <span dir="ltr">&lt;<a href="mailto:gkuri@ieee.org" target="_blank">gkuri@ieee.org</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div>I can&#39;t seem to get transfer_on_fail to work. I&#39;m not sure what I&#39;m doing wrong, it just doesn&#39;t transfer to the transfer_on_fail extension. The dialplan is below.<br><br></div>The idea is to set leg_progress_timeout = 3, so that if the device isn&#39;t responding to INVITEs, we use transfer_on_fail with the cause PROGRESS_TIMEOUT to send the call somewhere else. But transfer_on_fail never seems to get executed when we test it out. The FS logs show that we&#39;re hitting PROGRESS_TIMEOUT when the device doesn&#39;t respond to INVITEs, so I&#39;m pretty sure we have the right hangup cause, but it&#39;s just not catching transfer_on_fail ...<br></div><div><div><br>&lt;document type=&quot;freeswitch/xml&quot;&gt;<br>  &lt;section name=&quot;dialplan&quot; description=&quot;Dial Plan for FreeSWITCH&quot;&gt;<br>    &lt;context name=&quot;default&quot;&gt;<br>      &lt;extension name=&quot;call to 12225551212&quot;&gt;<br>        &lt;condition field=&quot;destination_number&quot; expression=&quot;12225551212&quot;&gt;<br>          &lt;action application=&quot;set&quot; data=&quot;bypass_media=true&quot;/&gt;<br>          &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br>          &lt;action application=&quot;set&quot; data=&quot;hangup_on_bridge=true&quot;/&gt;<br>      &lt;action application=&quot;export&quot; data=&quot;leg_progress_timeout=3&quot;/&gt;<br>          &lt;action application=&quot;set&quot; data=&quot;transfer_on_fail=PROGRESS_TIMEOUT NETWORK_UNAVAIL xml error&quot;/&gt;<br>          &lt;action application=&quot;bridge&quot; data=&quot;${sofia_contact(12225551212@switch.local)&quot;/&gt;<br>        &lt;/condition&gt;<br>      &lt;/extension&gt;<br>    &lt;/context&gt;<br>    &lt;context name=&quot;error&quot;&gt;<br>      &lt;extension name=&quot;NETWORK_UNAVAIL&quot;&gt;<br>        &lt;condition field=&quot;${originate_disposition}&quot; expression=&quot;PROGRESS_TIMEOUT&quot; continue=&quot;false&quot; break=&quot;on-true&quot;&gt;<br>          &lt;action application=&quot;bridge&quot; data=&quot;sofia/external/<a href="tel:12345551212" value="+12345551212" target="_blank">12345551212</a>@switch2.local&quot;/&gt;<br>        &lt;/condition&gt;<br>      &lt;/extension&gt;<br>    &lt;/context&gt;<br>  &lt;/section&gt;<br>&lt;/document&gt;<br><br></div><div>Here&#39;s a small snippet of the logs when leg_progress_timeout expires ...<br><br>b54a79cd-85f1-4c15-929d-15b1654ff1de 2015-11-24 22:06:21.021538 [DEBUG] switch_ivr_originate.c:3727 Originate Resulted in Error Cause: 607 [PROGRESS_TIMEOUT]<br>b54a79cd-85f1-4c15-929d-15b1654ff1de 2015-11-24 22:06:21.021538 [INFO] mod_dptools.c:3333 Originate Failed.  Cause: PROGRESS_TIMEOUT<br><br><br></div><div>Thanks ...<br></div><div><br><br></div></div></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p>
<p><font size="2" face="monospace, monospace"><b>T:</b><a href="tel:%2B19184209001" value="+19184209001" target="_blank">+19184209001</a> | <b>F:</b><a href="tel:%2B19184209002" value="+19184209002" target="_blank">+19184209002</a> | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div>
</div>