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@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@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



--
Thanks & Regards,
Godson Gera
VoIP consultant