<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">Did a bit more testing today.<br>
      <br>
      &lt;action application="bridge" data="sofia/test_profile/<b>sip:6135555555;npdi=yes</b>@24.114.15.50:5060"/&gt;
      gives what I need as per WiKi:<br>
      INVITE <a class="moz-txt-link-abbreviated" href="mailto:sip:6135555555;npdi=yes@5.6.7.8:5060">sip:6135555555;npdi=yes@5.6.7.8:5060</a> SIP/2.0<br>
      <br>
      But here is a caveat: this is not gateway! I do need to use
      gateway in the bridge app (because of OPTIONS PING that determines
      if gateway is up or down). So, I try:<br>
      <br>
      &lt;action application="bridge"
      data="sofia/gateway/test_gateway/6135555555;npdi=yes"/&gt; This is
      no good, ;npdi=yes moved in to the domain part:<br>
      INVITE <a class="moz-txt-link-abbreviated" href="mailto:sip:6135555555@5.6.7.8:5060">sip:6135555555@5.6.7.8:5060</a><b>;npdi=yes</b> SIP/2.0<br>
      <br>
      Also, tried this:<br>
      &lt;action application="bridge"
      data="sofia/gateway/test_gateway/sip:6135555555;npdi=yes"/&gt;&nbsp;
      But this is no good either. Looks like sip: syntax does not work
      with gateways:<br>
      INVITE <b>sip:sip:</b><a class="moz-txt-link-abbreviated" href="mailto:6135555555@5.6.7.8:5060">6135555555@5.6.7.8:5060</a><b>;npdi=yes</b>
      SIP/2.0<br>
      <br>
      ----------------<br>
      So, my immediate question is, is there a way to use sip: syntax
      when bridging to a gateway?<br>
      ----------------<br>
      And on a broader scale, something along these lines:<br>
<a class="moz-txt-link-freetext" href="http://freeswitch-users.2379917.n2.nabble.com/generating-RFC-3966-and-RFC-4694-calls-td2544806.html">http://freeswitch-users.2379917.n2.nabble.com/generating-RFC-3966-and-RFC-4694-calls-td2544806.html</a><br>
      Was there much work done since then on RFC3966 and RFC4694 support
      in FS? Ideally, that would be something that's parsed as channel
      variable on incoming call and can be manipulated as a channel
      variable on the outgoing call. FS would take care of parsing tel
      URI on incoming and putting it together on the outgoing.<br>
      <br>
      -Victor<br>
      <br>
      <br>
      On 02/20/2013 03:32 AM, Avi Marcus wrote:<br>
    </div>
    <blockquote
cite="mid:CALNZuwmhPDbT-uMUqMEftZM-Mr_m6T77j=DCH3tuxMe00rs1Uw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Ah sorry, I should have read your question more
        carefully!<br clear="all">
        <div>
          <div dir="ltr"><span
              style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi<br>
            </span></div>
        </div>
        <br>
        <br>
        <div class="gmail_quote">On Wed, Feb 20, 2013 at 6:43 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 bgcolor="#FFFFFF" text="#000000">
              <div>Avi,<br>
                <br>
                I know this part of the WiKi....thank you but I don't
                think it helps here.<span class="HOEnZb"><font
                    color="#888888"><br>
                    <br>
                    -Victor</font></span>
                <div>
                  <div class="h5"><br>
                    <br>
                    On 02/19/2013 07:25 PM, Avi Marcus wrote:<br>
                  </div>
                </div>
              </div>
              <div>
                <div class="h5">
                  <blockquote 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"
                          target="_blank">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"
                              target="_blank">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"
                              target="_blank">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></fieldset>
                    <br>
                    <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<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>
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>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
                  </blockquote>
                  <br>
                </div>
              </div>
            </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>
      <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>