<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi Hamid,<br>
      <br>
      There is something wrong with the contact in the 200 OK - as you
      see, the 200 OK reply from proxy to Alice contains in the Contact
      header the IP of the the proxy, while it should contain the IP
      address of BOB (the issuer of that reply).<br>
      <br>
      Because of that bogus Contact header, the whole in-dialog routing
      (for the ACK) gets broken.<br>
      <br>
      Best Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 03.09.2015 09:29, Hamid Hashmi
      wrote:<br>
    </div>
    <blockquote cite="mid:BLU182-W87AE67C90E9CB568B80A7DE0680@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr">
        <div>Dear Bogdan and Sammy</div>
        <div><br>
        </div>
        200 OK received to Alice is as follows
        <div>
          <div><br>
          </div>
          <div><font face="Courier New, sans-serif">SIP/2.0 200 Ok</font></div>
          <div><font face="Courier New, sans-serif">Via: SIP/2.0/UDP
203.215.176.22:43912;received=203.215.176.22;branch=z9hG4bK-d87543-769673078-1--d87543-;rport=48008</font></div>
          <div><font face="Courier New, sans-serif">From:
              923071000201<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000201@sip.realm.com">&lt;sip:923071000201@sip.realm.com&gt;</a>;tag=450fb754</font></div>
          <div><font face="Courier New, sans-serif">To:
              <a class="moz-txt-link-rfc2396E" href="mailto:sip:00923071000202@sip.realm.com">&lt;sip:00923071000202@sip.realm.com&gt;</a>;tag=b1UXiUx</font></div>
          <div><font face="Courier New, sans-serif">Call-ID:
              ac263a229e15d211</font></div>
          <div><font face="Courier New, sans-serif">CSeq: 3 INVITE</font></div>
          <div><font face="Courier New, sans-serif">User-Agent:
              LinphoneAndroid/2.5.0 (belle-sip/1.4.1)</font></div>
          <div><font face="Courier New, sans-serif">Supported: outbound</font></div>
          <div><font face="Courier New, sans-serif">Allow: INVITE, ACK,
              CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE,
              INFO, UPDATE</font></div>
          <div><font face="Courier New, sans-serif">Contact:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000202@proxy.com:1234">&lt;sip:923071000202@proxy.com:1234&gt;</a>;+sip.instance="&lt;urn:uuid:05d62157-0f77-46f8-9dee-5c37a646cbc6&gt;"</font></div>
          <div><font face="Courier New, sans-serif">Content-Type:
              application/sdp</font></div>
          <div><font face="Courier New, sans-serif">Content-Length: 181</font></div>
          <div><font face="Courier New, sans-serif"><br>
            </font></div>
          <div><font face="Courier New, sans-serif"><b>Record-route:
                &lt;sip:proxy.com:1234;lr&gt;</b></font></div>
          <div><font face="Courier New, sans-serif"><b>Record-route:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:00923071000202@sipuas.com:1234;lr;ftag=450fb754;did=1cd.ad2b02c7">&lt;sip:00923071000202@sipuas.com:1234;lr;ftag=450fb754;did=1cd.ad2b02c7&gt;</a></b></font></div>
          <div><br>
          </div>
          While Alice send ACK as Follows</div>
        <div><br>
        </div>
        <div>
          <div><font face="Courier New, sans-serif">ACK
              <a class="moz-txt-link-abbreviated" href="mailto:sip:923071000202@proxy.com:1234">sip:923071000202@proxy.com:1234</a> SIP/2.0</font></div>
          <div><font face="Courier New, sans-serif">To:
              <a class="moz-txt-link-rfc2396E" href="mailto:sip:00923071000202@sip.realm.com">&lt;sip:00923071000202@sip.realm.com&gt;</a>;tag=b1UXiUx</font></div>
          <div><font face="Courier New, sans-serif">From:
              923071000201<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000201@sip.realm.com">&lt;sip:923071000201@sip.realm.com&gt;</a>;tag=450fb754</font></div>
          <div><font face="Courier New, sans-serif">Via: SIP/2.0/UDP
              203.215.176.22:43912;branch=z9hG4bK-d87543-546180712-1--d87543-;rport</font></div>
          <div><font face="Courier New, sans-serif">Call-ID:
              ac263a229e15d211</font></div>
          <div><font face="Courier New, sans-serif">CSeq: 3 ACK</font></div>
          <div><font face="Courier New, sans-serif"><br>
            </font></div>
          <div><font face="Courier New, sans-serif"><b>Route:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:00923071000202@sipuas.com:1234;lr;ftag=450fb754;did=1cd.ad2b02c7">&lt;sip:00923071000202@sipuas.com:1234;lr;ftag=450fb754;did=1cd.ad2b02c7&gt;</a></b></font></div>
          <div><font face="Courier New, sans-serif"><b>Route:
                &lt;sip:proxy.com:1234;lr&gt;</b></font></div>
          <div><font face="Courier New, sans-serif"><b><br>
              </b></font></div>
          <div><font face="Courier New, sans-serif">Contact:
              <a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000201@203.215.176.22:50056">&lt;sip:923071000201@203.215.176.22:50056&gt;</a></font></div>
          <div><font face="Courier New, sans-serif">Max-Forwards: 70</font></div>
          <div><font face="Courier New, sans-serif">Proxy-Authorization:
              Digest
username="923071000201",realm="sip.realm.com",nonce="55e6f4533b45a508ef98ccd396274bf65ba99882",uri=<a class="moz-txt-link-rfc2396E" href="mailto:sip:00923071000202@sip.realm.com:1234">"sip:00923071000202@sip.realm.com:1234"</a>,response="5eea832060c8218b4229a8623d26bf1d",cnonce="825a886fc914ef2a",nc=00000001,qop=auth,algorithm=MD5</font></div>
          <div><font face="Courier New, sans-serif">User-Agent: eyeBeam
              release 3007n stamp 17816</font></div>
          <div><font face="Courier New, sans-serif">Content-Length: 0</font></div>
          <div><br>
            ACK must be sent to TOP most Record-route first but its
            going to sceond Record-route first. Is it a correct behavior
            ?</div>
          <div><br>
          </div>
          <div>Regards</div>
          <div>Hamid R. Hashmi</div>
          <div> <br>
            <hr id="stopSpelling">Date: Wed, 2 Sep 2015 11:11:28 -0400<br>
            From: <a class="moz-txt-link-abbreviated" href="mailto:govoiper@gmail.com">govoiper@gmail.com</a><br>
            To: <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
            Subject: Re: [OpenSIPS-Users] ACK did not Receive on Proxy
            and get in loop<br>
            <br>
            <p dir="ltr">I beleive you have to engage NAT corrections in
              reply route for 200OK. <br>
              I havent seen your SIP trace but if im Comtaact header the
              IP is of UAS and it goes to the caller side ACK will get
              directly to that IP. </p>
            <p dir="ltr">Just my guess. Need more info from you. </p>
            <p dir="ltr">Regards,<br>
              Sammy</p>
            <div class="ecxgmail_quote">On Sep 2, 2015 10:24 AM, "Hamid
              Hashmi" &lt;<a moz-do-not-send="true"
                href="mailto:hamid2kviii@hotmail.com">hamid2kviii@hotmail.com</a>&gt;
              wrote:<br>
              <blockquote class="ecxgmail_quote" style="border-left:1px
                #ccc solid;padding-left:1ex;">
                <div>
                  <div dir="ltr">
                    <div>ACK is not receiving on Proxy, It directly goes
                      to UAS and get in loop at Proxy before relayed to
                      bob. Can you explain why ACK is going directly to
                      UAS while all other responses going to proxy?</div>
                    <div><br>
                    </div>
                    <div>
                      <pre style="font-size:13.3333330154419px;">   Alice            Proxy             UAS              Bob</pre>
                      <pre style="font-size:13.3333330154419px;"><pre style="font-size:13.3333330154419px;">     |                |                |                |</pre>     |   INVITE       |                |                |
     |---------------&gt;|   INVITE       |                |
     |     100        |---------------&gt;|                |
     |&lt;---------------|   INVITE       |                |</pre>
                      <pre style="font-size:13.3333330154419px;">     |                |&lt;---------------|                |</pre>
                      <pre style="font-size:13.3333330154419px;">     |                |                |                |</pre>
                      <pre style="font-size:13.3333330154419px;">     |                |              INVITE             |</pre>
                      <pre style="font-size:13.3333330154419px;">     |                |--------------------------------&gt;|</pre>
                      <pre style="font-size:13.3333330154419px;">     |                |                |                |
     |                |               180               |
     |                |&lt;--------------------------------|</pre>
                      <pre style="font-size:13.3333330154419px;">     |                |                |                |</pre>
                      <pre style="font-size:13.3333330154419px;">     |                |      180       |                |</pre>
                      <pre style="font-size:13.3333330154419px;">     |                |---------------&gt;|                |</pre>
                      <pre style="font-size:13.3333330154419px;">     |                |                |                |</pre>
                      <pre style="font-size:13.3333330154419px;">     |                |      180       |                |
     |      180       |&lt;---------------|                |
     |&lt;---------------|                |                |</pre>
                      <pre style="font-size:13.3333330154419px;"><pre style="font-size:13.3333330154419px;">     |                |               200               |
     |                |&lt;--------------------------------|</pre><pre style="font-size:13.3333330154419px;">     |                |                |                |</pre><pre style="font-size:13.3333330154419px;">     |                |      200       |                |</pre><pre style="font-size:13.3333330154419px;">     |                |---------------&gt;|                |</pre><pre style="font-size:13.3333330154419px;">     |                |                |                |</pre>     |                |      200       |                |
     |                |&lt;---------------|                |</pre>
                      <pre style="font-size:13.3333330154419px;"><pre style="font-size:13.3333330154419px;">     |       200      |                |                |</pre>     |&lt;---------------|                |                |</pre>
                      <pre style="font-size:13.3333330154419px;"><pre style="font-size:13.3333330154419px;">     |                |                |                |</pre>     |               ACK               |                |
     |--------------------------------&gt;|                |</pre>
                      <pre style="font-size:13.3333330154419px;">     |                |       ACK      |                |
     |                |&lt;---------------|                |
     |                |                |                |</pre>
                      <pre style="font-size:13.3333330154419px;"><pre style="font-size:13.3333330154419px;">     |               ACK               |                |</pre><pre style="font-size:13.3333330154419px;">     |                |                |                |</pre><pre style="font-size:13.3333330154419px;">     |               ACK               |                |</pre><pre style="font-size:13.3333330154419px;">     |                |                |                |</pre><pre style="font-size:13.3333330154419px;">     |               ACK               |                |</pre>     .                .                .                .</pre>
                      <pre style="font-size:13.3333330154419px;"><pre style="font-size:13.3333330154419px;">     .                .                .                .</pre><pre style="font-size:13.3333330154419px;">     .                .                .                .</pre>
     </pre>
                      <pre style="font-size:13.3333330154419px;">
</pre>
                      <pre style="font-size:13.3333330154419px;">Regards</pre>
                      <pre style="font-size:13.3333330154419px;">Hamid R. Hashmi</pre>
                    </div>
                  </div>
                </div>
                <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"
                  rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                <br>
              </blockquote>
            </div>
            <br>
            _______________________________________________
            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></div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>
    <br>
  </body>
</html>