[Freeswitch-users] Conditional route-advance?
Jean-Michel Hiver
jhiver at gmail.com
Tue Feb 21 18:09:38 MSK 2017
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
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list