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