[Freeswitch-users] Conditional route-advance?

Michael Jerris mike at jerris.com
Wed Feb 22 05:44:05 MSK 2017


check out the failure_causes variable


On Tue, Feb 21, 2017 at 6:39 PM Jean-Michel Hiver <jhiver at 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 at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170222/a278f362/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list