<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Avi,<br>
      <br>
      I know this part of the WiKi....thank you but I don't think it
      helps here.<br>
      <br>
      -Victor<br>
      <br>
      On 02/19/2013 07:25 PM, Avi Marcus wrote:<br>
    </div>
    <blockquote
cite="mid:CALNZuw=M4bqKgSFcYWWt9ch=SdOOZ+=cQTCjZwq3VVp0eb_93w@mail.gmail.com"
      type="cite">
      <div dir="ltr">You'll have to use a regex and capture it manually.
        <div>See:&nbsp;<a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Regular_Expression#LNP_.28Local_Number_Portability.29">http://wiki.freeswitch.org/wiki/Regular_Expression#LNP_.28Local_Number_Portability.29</a></div>
        <div><br clear="all">
          <div>
            <div dir="ltr"><span
                style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi</span></div>
          </div>
          <br>
          <div class="gmail_quote">On Wed, Feb 20, 2013 at 12:25 AM,
            Victor Chukalovskiy <span dir="ltr">&lt;<a
                moz-do-not-send="true"
                href="mailto:victor.chukalovskiy@gmail.com"
                target="_blank">victor.chukalovskiy@gmail.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF"> Hello,<br>
                <br>
                SIP call comes on leg A as following:<br>
                INVITE sip:<a moz-do-not-send="true"
                  href="tel:6135555555" value="+16135555555"
                  target="_blank">6135555555</a><b>;npdi=yes</b>@<a
                  moz-do-not-send="true" href="http://1.2.3.4:5060"
                  target="_blank">1.2.3.4:5060</a> SIP/2.0<br>
                <br>
                ${destination_number} var becomes "<a
                  moz-do-not-send="true" href="tel:6135555555"
                  value="+16135555555" target="_blank">6135555555</a>;npdi=yes"<br>
                <br>
                On leg B I send the call to gateway using unaltered
                ${destination_number}:<br>
                &lt;action application="bridge"
                data="sofia/gateway/test_gw/${destination_number}"/&gt;<br>
                <br>
                I see the following on leg B:<br>
                INVITE <a moz-do-not-send="true"
                  href="mailto:sip:6135555555@5.6.7.8:5060"
                  target="_blank">sip:6135555555@5.6.7.8:5060</a><b>;npdi=yes</b>
                SIP/2.0<br>
                <br>
                So, FS moved ";npdi=yes" which is a tel URI parameter
                into the very end as if it was a SIP URI parameter. Such
                behavior does not seem correct. Is this a bug? Found the
                following implementation discussion:<br>
                <a moz-do-not-send="true"
                  href="http://comments.gmane.org/gmane.ietf.sip-implementors/21554"
                  target="_blank">http://comments.gmane.org/gmane.ietf.sip-implementors/21554</a><br>
                <br>
                Please help to make FS send tel URI parameters unaltered
                using bridge application and a gateway. WiKi for bridge
                dial-plan tool has some examples but it does not make
                use of gateway and I need to use gateway.<br>
                <br>
                Thank you,<br>
                Victor </div>
              <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>
              <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>
    </blockquote>
    <br>
  </body>
</html>