Simple question regarding bridge parameters
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.
HI, Bumping this up. Could anyone please help me understand what is the correct format for {} and [] in the bridge app? Thanks, Joel. On Thu, Feb 2, 2017 at 3:04 PM, Joel Serrano <joel@gogii.net> wrote:
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.
Hi, I can answer myself thanks to something I found in the doc: https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables ... Channel Variables in Dial strings All the info is there :) Sorry for the noise. Best, Joel. On Wed, Feb 8, 2017 at 8:23 AM, Joel Serrano <joel@gogii.net> wrote:
HI,
Bumping this up. Could anyone please help me understand what is the correct format for {} and [] in the bridge app?
Thanks, Joel.
On Thu, Feb 2, 2017 at 3:04 PM, Joel Serrano <joel@gogii.net> wrote:
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/outb ound/${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/outb ound/${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/outb ound/${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.
participants (1)
-
Joel Serrano