<div dir="ltr">Thanks David!<div><br></div><div>I did look at continue_on_fail before asking but it doesn&#39;t see to work for originate.  I did find a solution though.  I made the originate call to execute inline and then check for the value of api_result variable which in my dialplan gets assigned the return of the originate function.  This conditions seems to tell me that the originate was successful</div><div><br></div><div>&lt;condition field=&quot;${api_result}&quot; expression=&quot;^\+OK &quot;&gt;<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 14, 2015 at 9:16 AM, David Villasmil Govea <span dir="ltr">&lt;<a href="mailto:david.villasmil@gmail.com" target="_blank">david.villasmil@gmail.com</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"><h2 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>Take a look at &quot;continue_on_fail&quot;:</span></h2><h2 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>Hangup Causes</span></h2><h3 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><a href="https://wiki.freeswitch.org/wiki/Variable_bridge_hangup_cause" title="Variable bridge hangup cause" rel="nofollow" style="color:rgb(59,115,175);text-decoration:none" target="_blank">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 &quot;really&quot; 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" rel="nofollow" style="color:rgb(59,115,175);text-decoration:none" target="_blank">Hangup Causes</a>.</p><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 14, 2015 at 6:16 PM, David Villasmil Govea <span dir="ltr">&lt;<a href="mailto:david.villasmil@gmail.com" target="_blank">david.villasmil@gmail.com</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">take a look at &quot;continue_on_fail&quot;:<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Jan 14, 2015 at 6:05 PM, Oleg Stolyar <span dir="ltr">&lt;<a href="mailto:olegstolyar@gmail.com" target="_blank">olegstolyar@gmail.com</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><div dir="ltr">Hi guys,<div><br></div><div>I have a line like this in my dialplan:</div><div><br></div><div>&lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;api_result=${originate(sofia/external/&lt;phone number&gt;@<a href="http://2.3.4.5:5060" target="_blank">2.3.4.5:5060</a> &lt;extension&gt; XML &lt;profile&gt;<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 &lt;extension&gt; 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><font color="#888888"><br></font></span></blockquote></div><span><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>DVG<br><br>-- <br>Imagination is more important than knowledge<br>Albert Einstein</div>
</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" 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">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><br></blockquote></div><br></div>