<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi.</p>
<p><br>
</p>
<p>I have OpenSIPS 2.2 and a softphone (S1) behind a NAT. The softphone is registered on such SIP proxy. Proxy and S1 are in the same local network.</p>
<p><br>
</p>
<p>There is another softphone (S2) located somewhere on Internet.</p>
<p><br>
</p>
<p>When S2 calls S1, S1 receives the SIP INVITE normally. When the call is answered S1 sends SIP 200 OK to S2. However, the 'Contact' header field in the SIP 200 OK message has an address not reachable by S2. Such address is valid only in the the local network.
 In this case, S2 doesn't send a SIP ACK to S1, probably due to that invalid address on the 'Contact' header field.</p>
<p><br>
</p>
<p>I suspect that I have to use a OpenSIPS module, related to NAT questions, and try to fix the value of 'Contact' header field. Am I correct?</p>
<p><br>
</p>
<p>I am not using any Stun server yet.</p>
<p><br>
</p>
<p>What should I do?</p>
<p>What about the 'Via' header fields? Should I fix it too, using the OpenSIPS?</p>
<p><br>
</p>
<p>Any hint will be very helpful, because I'm not expert in SIP.</p>
<p><br>
</p>
<p>Best regards.<br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: &#43;55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</div>
</body>
</html>