<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't respond quick enough with progress do this:<div><br></div><div>
<p class=""><span class=""><</span><span class="">extension</span><span class=""> </span><span class="">name</span><span class="">=</span><span class="">"call to 1234"</span><span class="">></span></p>
<p class=""><span class=""> <</span><span class="">condition</span><span class=""> </span><span class="">field</span><span class="">=</span><span class="">"destination_number"</span><span class=""> </span><span class="">expression</span><span class="">=</span><span class="">"^1234$"</span><span class="">></span></p>
<p class=""><span class=""> <</span><span class="">action</span><span class=""> </span><span class="">application</span><span class="">=</span><span class="">"set"</span><span class=""> </span><span class="">data</span><span class="">=</span><span class="">"bypass_media=true"</span><span class="">/></span></p>
<p class=""><span class=""> <</span><span class="">action</span><span class=""> </span><span class="">application</span><span class="">=</span><span class="">"set"</span><span class=""> </span><span class="">data</span><span class="">=</span><span class="">"hangup_after_bridge=true"</span><span class="">/></span></p>
<p class=""><span class=""> <</span><span class="">action</span><span class=""> </span><span class="">application</span><span class="">=</span><span class="">"bridge"</span><span class=""> </span><span class="">data</span><span class="">=</span><span class="">"{progress_timeout=2}sofia/internal/<a href="mailto:sip%3A1234@switch2-asdfa.com">sip:1234@switch2-asdfa.com</a>"</span><span class="">/></span></p>
<p class=""><span class=""> <</span><span class="">action</span><span class=""> </span><span class="">application</span><span class="">=</span><span class="">"bridge"</span><span class=""> </span><span class="">data</span><span class="">=</span><span class="">"{progress_timeout=10}sofia/internal/<a href="mailto:sip%3A1234@switch1-asdfa.com">sip:1234@switch1-asdfa.com</a>"</span><span class="">/></span></p>
<p class=""><span class=""> </</span><span class="">condition</span><span class="">></span></p>
<p class=""><span class=""></</span><span class="">extension</span><span class="">></span></p><p class=""><span class=""><br></span></p><p class=""><span class="">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">On Wed, Nov 25, 2015 at 12:42 PM, Gabriel Kuri <span dir="ltr"><<a href="mailto:gkuri@ieee.org" target="_blank">gkuri@ieee.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I can't seem to get transfer_on_fail to work. I'm not sure what I'm doing wrong, it just doesn'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'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're hitting PROGRESS_TIMEOUT when the device doesn't respond to INVITEs, so I'm pretty sure we have the right hangup cause, but it's just not catching transfer_on_fail ...<br></div><div><div><br><document type="freeswitch/xml"><br> <section name="dialplan" description="Dial Plan for FreeSWITCH"><br> <context name="default"><br> <extension name="call to 12225551212"><br> <condition field="destination_number" expression="12225551212"><br> <action application="set" data="bypass_media=true"/><br> <action application="set" data="continue_on_fail=true"/><br> <action application="set" data="hangup_on_bridge=true"/><br> <action application="export" data="leg_progress_timeout=3"/><br> <action application="set" data="transfer_on_fail=PROGRESS_TIMEOUT NETWORK_UNAVAIL xml error"/><br> <action application="bridge" data="${sofia_contact(12225551212@switch.local)"/><br> </condition><br> </extension><br> </context><br> <context name="error"><br> <extension name="NETWORK_UNAVAIL"><br> <condition field="${originate_disposition}" expression="PROGRESS_TIMEOUT" continue="false" break="on-true"><br> <action application="bridge" data="sofia/external/<a href="tel:12345551212" value="+12345551212" target="_blank">12345551212</a>@switch2.local"/><br> </condition><br> </extension><br> </context><br> </section><br></document><br><br></div><div>Here'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>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">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">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 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>