Consecutive bridge actions vs multiple targets in a single bridge action.
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
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
Hi Michael, On 30 July 2013 16:30, Michael Collins <msc@freeswitch.org> wrote:
Try experimenting with https://wiki.freeswitch.org/wiki/Channel_Variables#continue_on_fail.
Thanks for pointing me to this variable. Unfortunately it don't seem to help. I've tried setting it to false and to some hangup codes other than what I receive when user rejects a call but FS still executes second action. Now searching for continue_on_fail I've found FS-4232 which seems to correspond to my problem and I also found references to fail_on_single_reject which I haven't checked yet. I will also try to look in the source code - maybe I'll read something there. Regards, Oleg.
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
_________________________________________________________________________ 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
-- Oleg
participants (2)
-
Michael Collins
-
Oleg Sharoyko