<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello Jeff,<br>
    <br>
    Your OpenSIPS probably routes that ACK as a strict router, since it
    sees that in the R-URI there's an IP where it's listening on (
    opensips_WAN_public ).<br>
    The contact in the 200OK had <a class="moz-txt-link-abbreviated" href="mailto:sip:9998887777@172.21.201.1:5066">sip:9998887777@172.21.201.1:5066</a> , so
    this should have been in the ACK's R-URI. Try to fix the softswitch.<br>
    <br>
    Regards,<br>
    <pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
    <br>
    On 07/09/2012 09:28 PM, Jeff Pyle wrote:
    <blockquote
cite="mid:CACYJG3+MMsV3eYm-7E0H_dJOVE1601NMQP6Pug5z6okXhHsgMA@mail.gmail.com"
      type="cite">
      <div>Rudy,</div>
      <div><br>
      </div>
      <div>I don't have pcaps but I do have ngreps available here:</div>
      <div>&nbsp;&nbsp;<a moz-do-not-send="true"
          href="http://pastebin.com/EKMrhc7Z">http://pastebin.com/EKMrhc7Z</a></div>
      <div><br>
      </div>
      <div>You can see the ACK come in from the softswitch to Opensips's
        public interface starting at line 212. &nbsp;I'd expect this to relay
        through to the private side, but instead, we see starting on
        line 228 it relays the ACK to itself on its private interface.
        &nbsp;I don't know why that is happening.</div>
      <div><br>
      </div>
      <div>The opensips.cfg is available here:</div>
      <div>&nbsp;&nbsp;<a moz-do-not-send="true"
          href="http://pastebin.com/UB9pPuUk">http://pastebin.com/UB9pPuUk</a></div>
      <div><br>
      </div>
      <div>I'm not sure what to do with it from here.</div>
      <div>
        <br>
      </div>
      <div><br>
      </div>
      <div>- Jeff</div>
      <br>
      <br>
      <br>
      <div class="gmail_quote">On Sun, Jul 8, 2012 at 11:44 AM, Rudy <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:rudy@dynamicpacket.com" target="_blank">rudy@dynamicpacket.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          Jeff,<br>
          <br>
          Can you post the pcap captures somewhere so I can take a look?<br>
          <br>
          Thanks in advance,<br>
          --Rudy<br>
          Dynamic Packet<br>
          Toll-Free: 888.929.VOIP ( 8647 )<br>
          <div class="HOEnZb">
            <div class="h5"><br>
              <br>
              On Sun, Jul 8, 2012 at 8:21 AM, Jeff Pyle &lt;<a
                moz-do-not-send="true"
                href="mailto:jpyle@fidelityvoice.com">jpyle@fidelityvoice.com</a>&gt;
              wrote:<br>
              &gt; Hi Duane,<br>
              &gt;<br>
              &gt; I have captures now! &nbsp;I also read through your
              thread. &nbsp;The situation looks<br>
              &gt; to be the same. &nbsp;I also have a missing username in
              the self-relayed ACK's<br>
              &gt; RURI.<br>
              &gt;<br>
              &gt; And it's also driving my crazy.<br>
              &gt;<br>
              &gt; I'm on 1.7 build 9142. &nbsp;You?<br>
              &gt;<br>
              &gt;<br>
              &gt;<br>
              &gt; - Jeff<br>
              &gt;<br>
              &gt;<br>
              &gt; On Sat, Jul 7, 2012 at 7:14 PM, &lt;<a
                moz-do-not-send="true"
                href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a>&gt;
              wrote:<br>
              &gt;&gt;<br>
              &gt;&gt; Almost sounds like you and I are having the same
              issue.<br>
              &gt;&gt;<br>
              &gt;&gt; Here's my issue<br>
              &gt;&gt;<br>
              &gt;&gt; <a moz-do-not-send="true"
href="http://opensips-open-sip-server.1449251.n2.nabble.com/Two-OpenSIPS-proxies-issue-td7580685.html"
                target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/Two-OpenSIPS-proxies-issue-td7580685.html</a><br>
              &gt;&gt;<br>
              &gt;&gt; Do you have a SIP trace? I'm just wondering if we
              are having the same<br>
              &gt;&gt; problem. Does the ACK that gets relayed to ifself
              on the other IP have the<br>
              &gt;&gt; username missing in the RURI?<br>
              &gt;&gt;<br>
              &gt;&gt;<br>
              &gt;&gt;<br>
              &gt;&gt;<br>
              &gt;&gt; On , Jeff Pyle &lt;<a moz-do-not-send="true"
                href="mailto:jpyle@fidelityvoice.com">jpyle@fidelityvoice.com</a>&gt;
              wrote:<br>
              &gt;&gt; &gt; Hello,<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt; I'm attempting to write a config to perform
              near-end NAT traversal on<br>
              &gt;&gt; &gt; Opensips 1.7. &nbsp;I'm having a problem with the
              loose_route of the ACK after<br>
              &gt;&gt; &gt; the 200 OK, and if I wait long enough, the
              BYE as well.<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt; Here's the scenario. &nbsp;An INVITE comes in the
              WAN side and is t_relay'd<br>
              &gt;&gt; &gt; to the LAN side. &nbsp;The LAN-side UAS sends a
              200 OK, and that is relayed back<br>
              &gt;&gt; &gt; to the WAN-side UAC. &nbsp;So far, so good. &nbsp;Then
              the WAN-side UAC sends the ACK<br>
              &gt;&gt; &gt; to the 200. &nbsp;Opensips relays this from its
              own WAN IP to its own LAN IP - I<br>
              &gt;&gt; &gt; found it with ngrep on the lo interface.
              &nbsp;Eventually Opensips sends a 408<br>
              &gt;&gt; &gt; back to the UAC.<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt; Here's the relevant portion of the config,
              based largely on the included<br>
              &gt;&gt; &gt; sample. &nbsp;This works fine with
              single-interface configurations:<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; if (has_totag()) {<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (loose_route()) {<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if
              (method=="INVITE") record_route();<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!t_relay())
              sl_reply_error();<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (method == "ACK")
              {<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if
              (t_check_trans()) {<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if
              (!t_relay())<br>
              &gt;&gt; &gt; sl_reply_error();<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              exit;<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              exit;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply("404",
              "Not Here");<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt; I've verified with xlogs the ACK hits in the
              loose_route() portion of<br>
              &gt;&gt; &gt; the config. &nbsp;It does hit t_relay, but it
              relays the message to itself on its<br>
              &gt;&gt; &gt; 'other' IP. &nbsp;I've tried to look the extended
              debugs but I'm not finding<br>
              &gt;&gt; &gt; anything telling. &nbsp;Unfortunately I don't
              have any experience with multiple<br>
              &gt;&gt; &gt; interface configurations. &nbsp;I suspect it has
              something to do with the double<br>
              &gt;&gt; &gt; Via lines added, one from each interface.
              &nbsp;Perhaps it's not detecting the<br>
              &gt;&gt; &gt; second Via as its own? &nbsp;(Even if that were
              the case, I can't explain why<br>
              &gt;&gt; &gt; it's not responding to itself on the lo
              interface.)<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt; I do have mhomed=1 enabled. &nbsp;Without it the
              initial invite doesn't<br>
              &gt;&gt; &gt; arrive at the LAN-side UAS.<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt; I've experimented with check_via, aliases,
              etc. &nbsp;No effect. &nbsp;Any<br>
              &gt;&gt; &gt; suggestions on where to go from here?<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt; - Jeff<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt; &gt;<br>
              &gt;&gt;<br>
              &gt;&gt; _______________________________________________<br>
              &gt;&gt; Users mailing list<br>
              &gt;&gt; <a moz-do-not-send="true"
                href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
              &gt;&gt; <a moz-do-not-send="true"
                href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
              &gt;&gt;<br>
              &gt;<br>
              &gt;<br>
              &gt; _______________________________________________<br>
              &gt; Users mailing list<br>
              &gt; <a moz-do-not-send="true"
                href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
              &gt; <a moz-do-not-send="true"
                href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
              &gt;<br>
              <br>
              _______________________________________________<br>
              Users mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>