[Freeswitch-users] Multiple SIP-registrations and leg-specific variables.

Avi Marcus avi at avimarcus.net
Wed Jun 18 09:43:13 MSD 2014


You just need { instead of [

See:
http://wiki.freeswitch.org/wiki/Channel_Variables#Channel_Variables_in_Dial_strings

There's three options: < { [

-Avi


On Tue, Jun 17, 2014 at 11:00 AM, Alex Lake <alex at digitalmail.com> wrote:

> Got a situation where an extension has two phones registered, but my
> dialplan is a little too simplistic to handle:
>
> i.e my bridge string has something like this in it:
>
>
> [tenant_id=0024,b_ext=201,accept_mode=Direct,leg_timeout=15]${sofia_contact(0024312)}'
>
> But ${sofia_contact(0024312)} expands to
> "sofia/internal/sip:0024307 at 84.92.90.149:59031
> ;transport=udp,sofia/internal/sip:0024307 at 37.157.38.162:51910"
>
> so the leg-specific parameters only affect the first registration.
>
> I suppose I could write something in Lua to work it all out properly,
> but it might be more elegant if there was something like this:
>
>
> [tenant_id=0024,b_ext=201,accept_mode=Direct,leg_timeout=15](${sofia_contact(0024312)})
>
> Where the brackets mean to apply the [] parameters to anything that
> comes out of the expression.
>
> Is this available?!
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140618/a795f9f9/attachment.html 


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