<div dir="ltr"><h2 id="ChannelVariables-HangupCauses" style="margin:30px 0px 0px;padding:0px;font-size:20px;font-weight:normal;line-height:1.5;color:rgb(51,51,51);border-bottom-color:rgb(0,0,0);font-family:Arial,sans-serif"><span class="">Take a look at "continue_on_fail":</span></h2><h2 id="ChannelVariables-HangupCauses" style="margin:30px 0px 0px;padding:0px;font-size:20px;font-weight:normal;line-height:1.5;color:rgb(51,51,51);border-bottom-color:rgb(0,0,0);font-family:Arial,sans-serif"><span class="">Hangup Causes</span></h2><h3 id="ChannelVariables-bridge_hangup_cause" style="margin:10px 0px 0px;padding:0px;font-size:16px;line-height:1.5;color:rgb(51,51,51);font-family:Arial,sans-serif"><span class=""><a href="https://wiki.freeswitch.org/wiki/Variable_bridge_hangup_cause" title="Variable bridge hangup cause" class="" rel="nofollow" style="color:rgb(59,115,175);text-decoration:none">bridge_hangup_cause</a></span></h3><p style="margin:10px 0px 0px;padding:0px;color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:20px">This is set to the hangup cause of the last bridged B leg of the call. If you have continue_on_fail=true and hangup_after_bridge=false you can do checks on this to see what "really" happened to the call. You can for instance do execute_extension after bridge, do a condition check on ${bridge_hangup_cause} to see if it contains MEDIA_TIMEOUT and then trigger a redial of the call or transfer to a cell phone. For a list of hangup causes, see <a href="https://wiki.freeswitch.org/wiki/Hangup_Causes" title="Hangup Causes" class="" rel="nofollow" style="color:rgb(59,115,175);text-decoration:none">Hangup Causes</a>.</p><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 14, 2015 at 6:16 PM, David Villasmil Govea <span dir="ltr"><<a href="mailto:david.villasmil@gmail.com" target="_blank">david.villasmil@gmail.com</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">take a look at "continue_on_fail":<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Jan 14, 2015 at 6:05 PM, Oleg Stolyar <span dir="ltr"><<a href="mailto:olegstolyar@gmail.com" target="_blank">olegstolyar@gmail.com</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 class="h5"><div dir="ltr">Hi guys,<div><br></div><div>I have a line like this in my dialplan:</div><div><br></div><div><action inline="true" application="set" data="api_result=${originate(sofia/external/<phone number>@<a href="http://2.3.4.5:5060" target="_blank">2.3.4.5:5060</a> <extension> XML <profile><br></div><div><br></div><div>How can I know if the originate failed? For example the number is unreacheable or invalid or the trunk is down. In this case the <extension> will not be executed. </div><div><br></div><div>It seems that my dialplan continues to execute even if originate failed but is there something I can do to check for that?</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" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>DVG<br><br>-- <br>Imagination is more important than knowledge<br>Albert Einstein</div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">DVG<br><br>-- <br>Imagination is more important than knowledge<br>Albert Einstein</div>
</div>