Try experimenting with https://wiki.freeswitch.org/wiki/Channel_Variables#continue_on_fail.
-MC


On Tue, Jul 30, 2013 at 7:13 AM, Oleg Sharoyko <osharoiko@gmail.com> wrote:
Hi,

I was wondering if there exists a simple way of implementing behavior
equivalent to

<action application="bridge" data="sofia/gateway/gw1/$1|sofia/gateway/gw2/$1"/>

with two consecutive bridge actions?

I've tried this:

<action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="sofia/gateway/gw1/$1"/>
<action application="bridge" data="sofia/gateway/gw2/$1"/>

and it results in almost the same behavior except that if first call
is rejected by destination (say I was calling a mobile phone and on
that phone reject button was pushed) then second action will still be
executed. I think with a single bridge action call is considered
successful if early media state is reached while with two consecutive
actions hangup_after_bridge=true only acts on a fully established
call. I couldn't find any options to change this. Will appreciate your
help. Thank you!

Best regards,
--
Oleg

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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



--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org