<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
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="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 14:21, Hamid Hashmi
wrote:<br>
</div>
<blockquote cite="mid:BLU182-W80D515F9DE65A3E6FB4A5E0520@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
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:
<sip:proxy.com:7000;lr;ftag=1397829413></font></div>
<div><font face="Courier New, sans-serif">Record-Route:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2"><sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2></a></font></div>
<div><font face="Courier New, sans-serif">Record-Route:
<sip:proxy.com:7000;lr;ftag=1397829413;EdgeProxy=true></font></div>
<div><font color="#2672ec" face="Courier New, sans-serif">Contact:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000202@139.190.68.251:34580;transport=UDP"><sip:923071000202@139.190.68.251:34580;transport=UDP></a></font></div>
<div><font face="Courier New, sans-serif">To:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000202@sip.realm.com:7000"><sip:923071000202@sip.realm.com:7000></a>;tag=ab9efd6a</font></div>
<div><font face="Courier New, sans-serif">From:
"+923071000201"
<a class="moz-txt-link-rfc2396E" href="mailto:sip:+923071000201@sip.realm.com"><sip:+923071000201@sip.realm.com></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:
<sip:proxy.com:7000;lr;ftag=1397829413></font></div>
<div><font face="Courier New, sans-serif">Record-Route:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2"><sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2></a></font></div>
<div><font face="Courier New, sans-serif">Record-Route:
<sip:proxy.com:7000;lr;ftag=1397829413;EdgeProxy=true></font></div>
<div><font color="#2672ec" face="Courier New, sans-serif">Contact:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000202@139.190.68.251:34580;transport=UDP"><sip:923071000202@139.190.68.251:34580;transport=UDP></a></font></div>
<div><font face="Courier New, sans-serif">To:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000202@sip.realm.com:7000"><sip:923071000202@sip.realm.com:7000></a>;tag=ab9efd6a</font></div>
<div><font face="Courier New, sans-serif">From:
"+923071000201"
<a class="moz-txt-link-rfc2396E" href="mailto:sip:+923071000201@sip.realm.com"><sip:+923071000201@sip.realm.com></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:
<sip:proxy.com:7000;lr;ftag=1397829413></font></div>
<div><font face="Courier New, sans-serif">Record-Route:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2"><sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2></a></font></div>
<div><font face="Courier New, sans-serif">Record-Route:
<sip:proxy.com:7000;lr;ftag=1397829413;EdgeProxy=true></font></div>
<div><font color="#2672ec" face="Courier New, sans-serif">Contact:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000202@proxy.com:7000;transport=UDP"><sip:923071000202@proxy.com:7000;transport=UDP></a></font></div>
<div><font face="Courier New, sans-serif">To:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000202@sip.realm.com:7000"><sip:923071000202@sip.realm.com:7000></a>;tag=ab9efd6a</font></div>
<div><font face="Courier New, sans-serif">From:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000201@sip.realm.com:7000"><sip:923071000201@sip.realm.com:7000></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:
<$var(uri)>;transport=UDP>/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:
<sip:proxy.com:7000;lr;ftag=1397829413></font></div>
<div><font face="Courier New, sans-serif">Record-Route:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2"><sip:923071000202@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2></a></font></div>
<div><font face="Courier New, sans-serif">Record-Route:
<sip:proxy.com:7000;lr;ftag=1397829413;EdgeProxy=true></font></div>
<div><font face="Courier New, sans-serif">To:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000202@sip.realm.com:7000"><sip:923071000202@sip.realm.com:7000></a>;tag=ab9efd6a</font></div>
<div><font face="Courier New, sans-serif">From:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:923071000201@sip.realm.com:7000"><sip:923071000201@sip.realm.com:7000></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 class="moz-txt-link-rfc2396E" href="mailto:sip:923071000202@139.190.68.251:34580;transport=UDP"><sip:923071000202@139.190.68.251:34580;transport=UDP></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>
</body>
</html>