<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>In that case, you probably do a wrong fix_nated_contact() or
      similar for the 200 OK reply coming from a not-nated entity.<br>
      <br>
      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 09.09.2015 15:08, Hamid Hashmi
      wrote:<br>
    </div>
    <blockquote cite="mid:BLU182-W137315B31BAF3539CA8A8AE0520@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr">Hi Bogdan
        <div><br>
        </div>
        <div>Yes, UAS is an opensips too, by chance. </div>
        <div><br>
        </div>
        <div>Regards</div>
        <div>Hamid R. Hashmi<br>
          <br>
          <div>
            <hr id="stopSpelling">Date: Wed, 9 Sep 2015 14:47:10 +0300<br>
            From: <a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a><br>
            To: <a class="moz-txt-link-abbreviated" href="mailto:hamid2kviii@hotmail.com">hamid2kviii@hotmail.com</a>; <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>
            Hi Hamid,<br>
            <br>
            I see the UAS is breaking the contact by re-writing it with
            the IP of the proxy. Is the UAS an opensips too, by chance ?<br>
            <br>
            Regards,<br>
            <pre class="ecxmoz-signature">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
            <div class="ecxmoz-cite-prefix">On 09.09.2015 14:21, Hamid
              Hashmi wrote:<br>
            </div>
            <blockquote
              cite="mid:BLU182-W80D515F9DE65A3E6FB4A5E0520@phx.gbl">
              <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
              <div dir="ltr">Bogdan
                <div><br>
                  I used local cache to store the Request URI and then
                  changed the contact Header of 200 OK at Proxy by
                  replacing the contact from RURI. It worked for me. But
                  you can see in 200 OK UAS-Proxy that UAS is changing
                  the Contact with proxy IP. </div>
                <div><br>
                </div>
                <div>
                  <div><font face="Courier New, sans-serif"><b>Bob-Proxy</b></font></div>
                  <div><font face="Courier New, sans-serif"><br>
                    </font></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
                      proxy.com:7000;branch=z9hG4bK9347.84c78b97.0</font></div>
                  <div><font face="Courier New, sans-serif">Via:
                      SIP/2.0/UDP
                      sipuas.com:7000;branch=z9hG4bK9347.4f022b62.0</font></div>
                  <div><font face="Courier New, sans-serif">Via:
                      SIP/2.0/UDP
                      proxy.com:7000;branch=z9hG4bK9347.74c78b97.0</font></div>
                  <div><font face="Courier New, sans-serif">Via:
                      SIP/2.0/UDP
172.16.37.66:5065;received=203.215.176.22;rport=33611;branch=z9hG4bK266489159</font></div>
                  <div><font face="Courier New, sans-serif">Record-Route:

                      &lt;sip:proxy.com:7000;lr;ftag=1397829413&gt;</font></div>
                  <div><font face="Courier New, sans-serif">Record-Route:
                      <a moz-do-not-send="true"
                        class="ecxmoz-txt-link-rfc2396E"
href="mailto:sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2">&lt;sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2&gt;</a></font></div>
                  <div><font face="Courier New, sans-serif">Record-Route:

&lt;sip:proxy.com:7000;lr;ftag=1397829413;EdgeProxy=true&gt;</font></div>
                  <div><font color="#2672ec" face="Courier New,
                      sans-serif">Contact:
                      <a moz-do-not-send="true"
                        class="ecxmoz-txt-link-rfc2396E"
                        href="mailto:sip:923071000202@139.190.68.251:34580;transport=UDP">&lt;sip:923071000202@139.190.68.251:34580;transport=UDP&gt;</a></font></div>
                  <div><font face="Courier New, sans-serif">To: <a
                        moz-do-not-send="true"
                        class="ecxmoz-txt-link-rfc2396E"
                        href="mailto:sip:923071000202@sip.realm.com:7000">&lt;sip:923071000202@sip.realm.com:7000&gt;</a>;tag=ab9efd6a</font></div>
                  <div><font face="Courier New, sans-serif">From:
                      "+923071000201" <a moz-do-not-send="true"
                        class="ecxmoz-txt-link-rfc2396E"
                        href="mailto:sip:+923071000201@sip.realm.com">&lt;sip:+923071000201@sip.realm.com&gt;</a>;tag=1397829413</font></div>
                  <div><font face="Courier New, sans-serif">Call-ID:
                      146889629</font></div>
                  <div><font face="Courier New, sans-serif">CSeq: 21
                      INVITE</font></div>
                  <div><font face="Courier New, sans-serif">Allow:
                      INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE,
                      OPTIONS, INFO, SUBSCRIBE</font></div>
                  <div><font face="Courier New, sans-serif">Content-Type:

                      application/sdp</font></div>
                  <div><font face="Courier New, sans-serif">Supported:
                      replaces, norefersub, extended-refer, timer,
                      outbound, path, X-cisco-serviceuri</font></div>
                  <div><font face="Courier New, sans-serif">User-Agent:
                      Zoiper r30645</font></div>
                  <div><font face="Courier New, sans-serif">Allow-Events:

                      presence, kpml</font></div>
                  <div><font face="Courier New, sans-serif">Content-Length:
                      243</font></div>
                  <div><font face="Courier New, sans-serif"><br>
                    </font></div>
                  <div><font face="Courier New, sans-serif"><b>proxy-UAS</b></font></div>
                  <div><font face="Courier New, sans-serif"><br>
                    </font></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
                      sipuas.com:7000;branch=z9hG4bK9347.4f022b62.0</font></div>
                  <div><font face="Courier New, sans-serif">Via:
                      SIP/2.0/UDP
                      proxy.com:7000;branch=z9hG4bK9347.74c78b97.0</font></div>
                  <div><font face="Courier New, sans-serif">Via:
                      SIP/2.0/UDP
172.16.37.66:5065;received=203.215.176.22;rport=33611;branch=z9hG4bK266489159</font></div>
                  <div><font face="Courier New, sans-serif">Record-Route:

                      &lt;sip:proxy.com:7000;lr;ftag=1397829413&gt;</font></div>
                  <div><font face="Courier New, sans-serif">Record-Route:
                      <a moz-do-not-send="true"
                        class="ecxmoz-txt-link-rfc2396E"
href="mailto:sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2">&lt;sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2&gt;</a></font></div>
                  <div><font face="Courier New, sans-serif">Record-Route:

&lt;sip:proxy.com:7000;lr;ftag=1397829413;EdgeProxy=true&gt;</font></div>
                  <div><font color="#2672ec" face="Courier New,
                      sans-serif">Contact:
                      <a moz-do-not-send="true"
                        class="ecxmoz-txt-link-rfc2396E"
                        href="mailto:sip:923071000202@139.190.68.251:34580;transport=UDP">&lt;sip:923071000202@139.190.68.251:34580;transport=UDP&gt;</a></font></div>
                  <div><font face="Courier New, sans-serif">To: <a
                        moz-do-not-send="true"
                        class="ecxmoz-txt-link-rfc2396E"
                        href="mailto:sip:923071000202@sip.realm.com:7000">&lt;sip:923071000202@sip.realm.com:7000&gt;</a>;tag=ab9efd6a</font></div>
                  <div><font face="Courier New, sans-serif">From:
                      "+923071000201" <a moz-do-not-send="true"
                        class="ecxmoz-txt-link-rfc2396E"
                        href="mailto:sip:+923071000201@sip.realm.com">&lt;sip:+923071000201@sip.realm.com&gt;</a>;tag=1397829413</font></div>
                  <div><font face="Courier New, sans-serif">Call-ID:
                      146889629</font></div>
                  <div><font face="Courier New, sans-serif">CSeq: 21
                      INVITE</font></div>
                  <div><font face="Courier New, sans-serif">Allow:
                      INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE,
                      OPTIONS, INFO, SUBSCRIBE</font></div>
                  <div><font face="Courier New, sans-serif">Content-Type:

                      application/sdp</font></div>
                  <div><font face="Courier New, sans-serif">Supported:
                      replaces, norefersub, extended-refer, timer,
                      outbound, path, X-cisco-serviceuri</font></div>
                  <div><font face="Courier New, sans-serif">User-Agent:
                      Zoiper r30645</font></div>
                  <div><font face="Courier New, sans-serif">Allow-Events:

                      presence, kpml</font></div>
                  <div><font face="Courier New, sans-serif">Content-Length:
                      243</font></div>
                  <div><font face="Courier New, sans-serif"><br>
                    </font></div>
                  <div><font face="Courier New, sans-serif"><b>UAS-Proxy</b></font></div>
                  <div><font face="Courier New, sans-serif"><br>
                    </font></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
                      proxy.com:7000;branch=z9hG4bK9347.74c78b97.0</font></div>
                  <div><font face="Courier New, sans-serif">Via:
                      SIP/2.0/UDP
172.16.37.66:5065;received=203.215.176.22;rport=33611;branch=z9hG4bK266489159</font></div>
                  <div><font face="Courier New, sans-serif">Record-Route:

                      &lt;sip:proxy.com:7000;lr;ftag=1397829413&gt;</font></div>
                  <div><font face="Courier New, sans-serif">Record-Route:
                      <a moz-do-not-send="true"
                        class="ecxmoz-txt-link-rfc2396E"
href="mailto:sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2">&lt;sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2&gt;</a></font></div>
                  <div><font face="Courier New, sans-serif">Record-Route:

&lt;sip:proxy.com:7000;lr;ftag=1397829413;EdgeProxy=true&gt;</font></div>
                  <div><font color="#2672ec" face="Courier New,
                      sans-serif">Contact: <a moz-do-not-send="true"
                        class="ecxmoz-txt-link-rfc2396E"
                        href="mailto:sip:923071000202@proxy.com:7000;transport=UDP">&lt;sip:923071000202@proxy.com:7000;transport=UDP&gt;</a></font></div>
                  <div><font face="Courier New, sans-serif">To: <a
                        moz-do-not-send="true"
                        class="ecxmoz-txt-link-rfc2396E"
                        href="mailto:sip:923071000202@sip.realm.com:7000">&lt;sip:923071000202@sip.realm.com:7000&gt;</a>;tag=ab9efd6a</font></div>
                  <div><font face="Courier New, sans-serif">From: <a
                        moz-do-not-send="true"
                        class="ecxmoz-txt-link-rfc2396E"
                        href="mailto:sip:923071000201@sip.realm.com:7000">&lt;sip:923071000201@sip.realm.com:7000&gt;</a>;tag=1397829413</font></div>
                  <div><font face="Courier New, sans-serif">Call-ID:
                      146889629</font></div>
                  <div><font face="Courier New, sans-serif">CSeq: 21
                      INVITE</font></div>
                  <div><font face="Courier New, sans-serif">Allow:
                      INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE,
                      OPTIONS, INFO, SUBSCRIBE</font></div>
                  <div><font face="Courier New, sans-serif">Content-Type:

                      application/sdp</font></div>
                  <div><font face="Courier New, sans-serif">Supported:
                      replaces, norefersub, extended-refer, timer,
                      outbound, path, X-cisco-serviceuri</font></div>
                  <div><font face="Courier New, sans-serif">User-Agent:
                      Zoiper r30645</font></div>
                  <div><font face="Courier New, sans-serif">Allow-Events:

                      presence, kpml</font></div>
                  <div><font face="Courier New, sans-serif">Content-Length:
                      257</font></div>
                  <div><font face="Courier New, sans-serif"><br>
                    </font></div>
                  <div><font face="Courier New, sans-serif"><b>Proxy-Alice </b></font><b
                      style="font-size:12pt;"><font color="#d24726">#
                        remove_hf("Contact");  append_hf("Contact:
                        &lt;$var(uri)&gt;;transport=UDP&gt;/r/n");</font></b></div>
                  <div><font face="Courier New, sans-serif"><br>
                    </font></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
172.16.37.66:5065;received=203.215.176.22;rport=33611;branch=z9hG4bK266489159</font></div>
                  <div><font face="Courier New, sans-serif">Record-Route:

                      &lt;sip:proxy.com:7000;lr;ftag=1397829413&gt;</font></div>
                  <div><font face="Courier New, sans-serif">Record-Route:
                      <a moz-do-not-send="true"
                        class="ecxmoz-txt-link-rfc2396E"
href="mailto:sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2">&lt;sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2&gt;</a></font></div>
                  <div><font face="Courier New, sans-serif">Record-Route:

&lt;sip:proxy.com:7000;lr;ftag=1397829413;EdgeProxy=true&gt;</font></div>
                  <div><font face="Courier New, sans-serif">To: <a
                        moz-do-not-send="true"
                        class="ecxmoz-txt-link-rfc2396E"
                        href="mailto:sip:923071000202@sip.realm.com:7000">&lt;sip:923071000202@sip.realm.com:7000&gt;</a>;tag=ab9efd6a</font></div>
                  <div><font face="Courier New, sans-serif">From: <a
                        moz-do-not-send="true"
                        class="ecxmoz-txt-link-rfc2396E"
                        href="mailto:sip:923071000201@sip.realm.com:7000">&lt;sip:923071000201@sip.realm.com:7000&gt;</a>;tag=1397829413</font></div>
                  <div><font face="Courier New, sans-serif">Call-ID:
                      146889629</font></div>
                  <div><font face="Courier New, sans-serif">CSeq: 21
                      INVITE</font></div>
                  <div><font face="Courier New, sans-serif">Allow:
                      INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE,
                      OPTIONS, INFO, SUBSCRIBE</font></div>
                  <div><font face="Courier New, sans-serif">Content-Type:

                      application/sdp</font></div>
                  <div><font face="Courier New, sans-serif">Supported:
                      replaces, norefersub, extended-refer, timer,
                      outbound, path, X-cisco-serviceuri</font></div>
                  <div><font face="Courier New, sans-serif">User-Agent:
                      Zoiper r30645</font></div>
                  <div><font face="Courier New, sans-serif">Allow-Events:

                      presence, kpml</font></div>
                  <div><font face="Courier New, sans-serif">Content-Length:
                      257</font></div>
                  <div><font face="Courier New, sans-serif"><font
                        color="#2672ec">Contact: <a
                          moz-do-not-send="true"
                          class="ecxmoz-txt-link-rfc2396E"
                          href="mailto:sip:923071000202@139.190.68.251:34580;transport=UDP">&lt;sip:923071000202@139.190.68.251:34580;transport=UDP&gt;</a></font> </font></div>
                  <div><br>
                  </div>
                  <div><font face="Courier New, sans-serif"><br>
                    </font></div>
                  <div>Regards</div>
                  <div>Hamid R. Hashmi</div>
                  <br>
                </div>
              </div>
            </blockquote>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>