[Freeswitch-users] Simple question regarding bridge parameters
Joel Serrano
joel at gogii.net
Fri Feb 3 02:04:20 MSK 2017
Hi all,
I have a simple question regarding {}, [] and bridge application when using
multiple groups/failover.
For example, saying the following bridge:
<action application="bridge" data="sofia/outbound/${destination_number}@
$${SBC1}|sofia/outbound/${destination_number}@$${SBC2}"/>
It will try SBC1, if it fails it will try SBC2. Fine till here.
If I want to add {} and [] params, how would be the correct format:
1- Once, at the beginning, and it would apply in each destination (in this
example 2, but it could apply to any number of destination we add with more
| separators):
<action application="bridge"
data="{absolute_codec_string='PCMU,PCMA'}[park_after_bridge=true,park_timeout=7]sofia/outbound/${destination_number}@
$${SBC1}|sofia/outbound/${destination_number}@$${SBC2}"/>
2- Once before each destination:
<action application="bridge"
data="{absolute_codec_string='PCMU,PCMA'}[park_after_bridge=true,park_timeout=7]sofia/outbound/${destination_number}@
$${SBC1}|{absolute_codec_string='PCMU,PCMA'}[park_after_bridge=true,park_timeout=7]sofia/outbound/${destination_number}@
$${SBC2}"/>
3- The {} only at the beginning, but the [] before each destination:
<action application="bridge"
data="{absolute_codec_string='PCMU,PCMA'}[park_after_bridge=true,park_timeout=7]sofia/outbound/${destination_number}@
$${SBC1}|[park_after_bridge=true,park_timeout=7]sofia/outbound/${destination_number}@
$${SBC2}"/>
Maybe they all work, I'm just not sure what is the correct way, or if there
are any best practices on this matter.
Thanks,
Joel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170202/132351f1/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list