<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 <<a href="mailto:jhiver@gmail.com">jhiver@gmail.com</a>> 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">
<extension name="internal"><br class="gmail_msg">
<condition field="destination_number" expression="^1111"><br class="gmail_msg">
<action application="set" data="hangup_after_bridge=true"/><br class="gmail_msg">
<action application="bridge" data="sofia/local_profile/1111@@" /><br class="gmail_msg">
<action application="bridge"<br class="gmail_msg">
data="sofia/local_profile/<a href="mailto:1111@example2.company.com" class="gmail_msg" target="_blank">1111@example2.company.com</a>" /><br class="gmail_msg">
</condition><br class="gmail_msg">
</extension><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'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't found anything<br class="gmail_msg">
relevant in the docs, but if iI'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>