<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Thanks, but that's not going to do what
      I need. My example wasn't clear on that at all!<br>
      <br>
      Let me try again...<br>
      <br>
      i.e my bridge string has something like this in it:<br>
      <br>
{you_are_tenant=0024}[you_are_ext=312,leg_timeout=15]${sofia_contact(0024312)},
      [you_are_ext=313,leg_timeout=20]${sofia_contact(0024313)},
      [you_are_ext=314,leg_timeout=25]${sofia_contact(0024314)}<br>
      <br>
      We have two classes of channel variable here:<br>
      <br>
      {} eg you_are_tenant - which applies to ALL outbound legs<br>
      [] eg you_are_ext - which applies individually to each user login
      on a particular extension<br>
      <br>
      If 312 has more than one SIP phone logged in, the expansion is to<br>
      <br>
{you_are_tenant=0024}[you_are_ext=312,leg_timeout=15]&lt;312handset_1&gt;,&lt;312handset_2&gt;
      [you_are_ext=313,leg_timeout=20]&lt;313handset_1&gt;,
      [you_are_ext=314,leg_timeout=25]&lt;314handset_1&gt;<br>
      <br>
      And the leg_timeout on the call to &lt;312handset_2&gt; will be
      the default.<br>
      <br>
      Is that better?!<br>
      <br>
      BTW, this is somewhat academic now!<br>
    </div>
    <blockquote
cite="mid:00000146ad801eda-267a0e59-b7dc-480e-a35f-18bd01e1f51f-000000@email.amazonses.com"
      type="cite">
      <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 moz-do-not-send="true"
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: &lt; { [</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">&lt;<a moz-do-not-send="true"
                href="mailto:alex@digitalmail.com" target="_blank">alex@digitalmail.com</a>&gt;</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>
"<a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/sip:0024307@84.92.90.149:59031;transport=udp,sofia/internal/">sofia/internal/sip:0024307@84.92.90.149:59031;transport=udp,sofia/internal/</a><a
                moz-do-not-send="true"
                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 moz-do-not-send="true"
                href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://www.freeswitchsolutions.com"
                target="_blank">http://www.freeswitchsolutions.com</a><br>
              <br>
              FreeSWITCH-powered IP PBX: The CudaTel Communication
              Server<br>
              <a moz-do-not-send="true" href="http://www.cudatel.com"
                target="_blank">http://www.cudatel.com</a><br>
              <br>
              Official FreeSWITCH Sites<br>
              <a moz-do-not-send="true" href="http://www.freeswitch.org"
                target="_blank">http://www.freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
              <a moz-do-not-send="true" href="http://www.cluecon.com"
                target="_blank">http://www.cluecon.com</a><br>
              <br>
              FreeSWITCH-users mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
              UNSUBSCRIBE:<a moz-do-not-send="true"
                href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
              <a moz-do-not-send="true" href="http://www.freeswitch.org"
                target="_blank">http://www.freeswitch.org</a><br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <p class="" avgcert""="" color="#000000" align="left">No virus
        found in this message.<br>
        Checked by AVG - <a moz-do-not-send="true"
          href="http://www.avg.com">www.avg.com</a><br>
        Version: 2014.0.4570 / Virus Database: 3972/7698 - Release Date:
        06/18/14</p>
    </blockquote>
    <br>
  </body>
</html>