<div dir="ltr">We need to review this and document it, its unclear.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 25, 2015 at 5:07 PM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.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">And for those wondering:<div><br></div><div><span class="">
<p><span><</span><span>extension</span><span> </span><span>name</span><span>=</span><span>"call to 1234"</span><span>></span></p>
</span><p><span> <</span><span>condition</span><span> </span><span>field</span><span>=</span><span>"destination_number"</span><span> </span><span>expression</span><span>=</span><span>"^(1234)$"</span><span>></span></p>
<p><span> <</span><span>action</span><span> </span><span>application</span><span>=</span><span>"set"</span><span> </span><span>data</span><span>=</span><span>"orig_dest=$1"</span><span>/></span></p><span class="">
<p><span> <</span><span>action</span><span> </span><span>application</span><span>=</span><span>"set"</span><span> </span><span>data</span><span>=</span><span>"bypass_media=true"</span><span>/></span></p>
</span><p><span> <</span><span>action</span><span> </span><span>application</span><span>=</span><span>"set"</span><span> </span><span>data</span><span>=</span><span>"hangup_afer_bridge=true"</span><span>/></span></p>
<p><span> <</span><span>action</span><span> </span><span>application</span><span>=</span><span>"set"</span><span> </span><span>data</span><span>=</span><span>"transfer_on_fail=PROGRESS_TIMEOUT,USER_BUSY,NORMAL_TEMPORARY_FAILURE"</span><span>/></span></p>
<p><span> <</span><span>action</span><span> </span><span>application</span><span>=</span><span>"bridge"</span><span> </span><span>data</span><span>=</span><span>"{progress_timeout=2}sofia/external/<a href="mailto:sip%3A1234@192.168.1.123" target="_blank">sip:1234@192.168.1.123</a>"</span><span>/></span></p>
<p><span> </</span><span>condition</span><span>></span></p>
<p><span></</span><span>extension</span><span>></span></p><span class="">
<p><span></span><br></p>
<p><span><</span><span><b>extension</b></span><span> </span><span>name</span><span>=</span><span>"call to 1234"</span><span>></span></p>
</span><p><span> <</span><span>condition</span><span> </span><span>field</span><span>=</span><span>"destination_number"</span><span> </span><span>expression</span><span>=</span><span>"^PROGRESS_TIMEOUT$"</span><span>></span></p>
<p><span> <</span><span>action</span><span> </span><span>application</span><span>=</span><span>"log"</span><span> </span><span>data</span><span>=</span><span>"CRIT We can have progress timeouts?"</span><span>/></span></p>
<p><span> </</span><span>condition</span><span>></span></p>
<p><span></</span><span>extension</span><span>></span></p><p><span><br></span></p><p><span><br></span></p><p><span>See XML on <a href="https://freeswitch.org/jira/browse/FS-3193" target="_blank">https://freeswitch.org/jira/browse/FS-3193</a></span></p><p><span><br></span></p><p><span>I fear this isn't documented correctly.</span></p></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 25, 2015 at 4:53 PM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.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">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><span><</span><span>extension</span><span> </span><span>name</span><span>=</span><span>"call to 1234"</span><span>></span></p>
<p><span> <</span><span>condition</span><span> </span><span>field</span><span>=</span><span>"destination_number"</span><span> </span><span>expression</span><span>=</span><span>"^1234$"</span><span>></span></p><span>
<p><span> <</span><span>action</span><span> </span><span>application</span><span>=</span><span>"set"</span><span> </span><span>data</span><span>=</span><span>"bypass_media=true"</span><span>/></span></p>
</span><p><span> <</span><span>action</span><span> </span><span>application</span><span>=</span><span>"set"</span><span> </span><span>data</span><span>=</span><span>"hangup_after_bridge=true"</span><span>/></span></p>
<p><span> <</span><span>action</span><span> </span><span>application</span><span>=</span><span>"bridge"</span><span> </span><span>data</span><span>=</span><span>"{progress_timeout=2}sofia/internal/<a href="mailto:sip%3A1234@switch2-asdfa.com" target="_blank">sip:1234@switch2-asdfa.com</a>"</span><span>/></span></p>
<p><span> <</span><span>action</span><span> </span><span>application</span><span>=</span><span>"bridge"</span><span> </span><span>data</span><span>=</span><span>"{progress_timeout=10}sofia/internal/<a href="mailto:sip%3A1234@switch1-asdfa.com" target="_blank">sip:1234@switch1-asdfa.com</a>"</span><span>/></span></p>
<p><span> </</span><span>condition</span><span>></span></p>
<p><span></</span><span>extension</span><span>></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>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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><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></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><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>
</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>