<div>check out the failure_causes variable</div><div><br></div><div><br><div class="gmail_quote"><div>On Tue, Feb 21, 2017 at 6:39 PM Jean-Michel Hiver &lt;<a href="mailto:jhiver@gmail.com">jhiver@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Freeswitch-users,<br class="gmail_msg">
<br class="gmail_msg">
In Freeswitch dialplan, you can route-hunt by stacking bridge commands like so:<br class="gmail_msg">
<br class="gmail_msg">
    &lt;extension name=&quot;internal&quot;&gt;<br class="gmail_msg">
      &lt;condition field=&quot;destination_number&quot; expression=&quot;^1111&quot;&gt;<br class="gmail_msg">
        &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br class="gmail_msg">
        &lt;action application=&quot;bridge&quot; data=&quot;sofia/local_profile/1111@@&quot; /&gt;<br class="gmail_msg">
        &lt;action application=&quot;bridge&quot;<br class="gmail_msg">
data=&quot;sofia/local_profile/<a href="mailto:1111@example2.company.com" class="gmail_msg" target="_blank">1111@example2.company.com</a>&quot; /&gt;<br class="gmail_msg">
      &lt;/condition&gt;<br class="gmail_msg">
    &lt;/extension&gt;<br class="gmail_msg">
<br class="gmail_msg">
My question is - is it possible to have more fine grain control about<br class="gmail_msg">
when to route-advance? For example, it might be OK to route advance<br class="gmail_msg">
when <a href="http://example1.company.com" rel="noreferrer" class="gmail_msg" target="_blank">example1.company.com</a> is not reachable or returns a 5XX response<br class="gmail_msg">
code or doesn&#39;t return a 183 Session progress or 200, but it may not<br class="gmail_msg">
be OK to route advance on a 4XX for instance...<br class="gmail_msg">
<br class="gmail_msg">
Any ideas on how to have finer control? I haven&#39;t found anything<br class="gmail_msg">
relevant in the docs, but if iI&#39;ve missed something, pointers to the<br class="gmail_msg">
relevant doc would be highly appreciated.<br class="gmail_msg">
<br class="gmail_msg">
All the best<br class="gmail_msg">
JM<br class="gmail_msg">
<br class="gmail_msg">
_________________________________________________________________________<br class="gmail_msg">
Professional FreeSWITCH Consulting Services:<br class="gmail_msg">
<a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg">
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg">
<br class="gmail_msg">
Official FreeSWITCH Sites<br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
<a href="http://confluence.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://confluence.freeswitch.org</a><br class="gmail_msg">
<a href="http://www.cluecon.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg">
<br class="gmail_msg">
FreeSWITCH-users mailing list<br class="gmail_msg">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br class="gmail_msg">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="gmail_msg">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
</blockquote></div></div>