<div dir="ltr"><p style="font-family:arial,sans-serif;font-size:12.800000190734863px">You just need { instead of [</p><p style="font-family:arial,sans-serif;font-size:12.800000190734863px">See: <a href="http://wiki.freeswitch.org/wiki/Channel_Variables#Channel_Variables_in_Dial_strings">http://wiki.freeswitch.org/wiki/Channel_Variables#Channel_Variables_in_Dial_strings</a></p>
<p style="font-family:arial,sans-serif;font-size:12.800000190734863px">There's three options: < { [</p><p style="font-family:arial,sans-serif;font-size:12.800000190734863px">-Avi</p><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Jun 17, 2014 at 11:00 AM, Alex Lake <span dir="ltr"><<a href="mailto:alex@digitalmail.com" target="_blank">alex@digitalmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Got a situation where an extension has two phones registered, but my<br>
dialplan is a little too simplistic to handle:<br>
<br>
i.e my bridge string has something like this in it:<br>
<br>
[tenant_id=0024,b_ext=201,accept_mode=Direct,leg_timeout=15]${sofia_contact(0024312)}'<br>
<br>
But ${sofia_contact(0024312)} expands to<br>
"sofia/internal/sip:0024307@84.92.90.149:59031;transport=udp,sofia/internal/<a href="http://sip:0024307@37.157.38.162:51910" target="_blank">sip:0024307@37.157.38.162:51910</a>"<br>
<br>
so the leg-specific parameters only affect the first registration.<br>
<br>
I suppose I could write something in Lua to work it all out properly,<br>
but it might be more elegant if there was something like this:<br>
<br>
[tenant_id=0024,b_ext=201,accept_mode=Direct,leg_timeout=15](${sofia_contact(0024312)})<br>
<br>
Where the brackets mean to apply the [] parameters to anything that<br>
comes out of the expression.<br>
<br>
Is this available?!<br>
<br>
<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div></div>