[Freeswitch-users] failover in freeswitch dialplan using | or lcr
Godson Gera
godson.g at gmail.com
Fri Mar 13 01:28:15 MSK 2015
It would be a lot easier to do it from a script (lua, python) running in FS
or via ESL. Idea is to extract all bridge strings returned by lcr command
and pass them to bridge command with | symbol for automatic fail over.
<action application="bridge" data="bridgestring1|bridgestring2"/>
On Thu, Mar 12, 2015 at 10:23 PM, Jason Holden <jason.holden at start.ca>
wrote:
> Hi,
>
> If I send an invite for a call and don’t receive a response to the initial
> invite message how can I force FS to try the next route right away?
>
>
>
> Here is one of my lcr dialplan chunks.
>
> <condition field="destination_number" expression="^(.*)$">
>
> <action application="set" data="continue_on_fail=true"/>
>
> <action application="set" data="hangup_after_bridge=true"/>
>
> <action application="set" data="domain_name=$${domain}"/>
>
> <action application="set" data="instant_ringback=true"/>
>
> <action application="ring_ready" />
>
> <action application="set" data="ringback=${us-ring}"/>
>
> <action application="set" data="transfer-ringback=${us-ring}"/>
>
> <action application="lcr" data="$1 inbound"/>
>
> <action application="set" data="bypass_media=true"/>
>
> <action application="bridge" data="${lcr_auto_route}"/>
>
> </condition>
>
> </extension>
>
>
>
> All advise is welcome, thanks.
>
>
>
>
>
>
>
>
>
> _________________________________________________________________________
> 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
>
--
Thanks & Regards,
Godson Gera
VoIP consultant <http://godson.in>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150313/abb9946c/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list