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

Alex Lake alex at digitalmail.com
Tue Jun 17 12:00:47 MSD 2014


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?!






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