[Freeswitch-users] Simple question regarding bridge parameters

Joel Serrano joel at gogii.net
Wed Feb 8 19:23:52 MSK 2017


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 at 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170208/4ff0fb01/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list