[Freeswitch-users] failover in freeswitch dialplan using | or lcr

Jason Holden jason.holden at start.ca
Fri Mar 13 04:14:42 MSK 2015


It does fail over with my setup but it takes about 30 seconds to try the
next route.

So back to the question would using call time out, or progress time out as
an action application before the lcr bridge resolve the issue, if so any
recommendations on timers?

 

Thanks.

  _____  

From: Godson Gera [mailto:godson.g at gmail.com] 
Sent: Thursday, March 12, 2015 6:28 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] failover in freeswitch dialplan using | or
lcr

 

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/20150312/2a72dd59/attachment.html 


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