<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>In my configuration I have something like this:</p>
<p><br>
</p>
<p>#### USeR LOCation module<br>
loadmodule "usrloc.so"<br>
modparam("usrloc", "nat_bflag", "NAT")<br>
modparam("usrloc", "db_mode", 1)<br>
modparam("usrloc", "db_url", "sqlite:///usr/local/opensips/db/sisc.sqlite") # CUSTOMIZE ME<br>
<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>route{<br>
<br>
<br>
force_rport();<br>
if (nat_uac_test("23")) {<br>
if (is_method("REGISTER")) {<br>
fix_nated_register();<br>
setbflag(NAT);<br>
} else {<br>
fix_nated_contact();<br>
setflag(NAT);<br>
}<br>
}</p>
<p><br>
</p>
<p><br>
</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p><br>
</p>
<p>onreply_route[handle_nat] {<br>
if (nat_uac_test("1"))<br>
fix_nated_contact();<br>
#if ( isflagset(NAT) )<br>
#rtpproxy_answer("ro");<br>
xlog("incoming reply\n");<br>
}<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>Hopefully it can give you a direction to follow.<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: +55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>De:</b> users-bounces@lists.opensips.org <users-bounces@lists.opensips.org> em nome de Husnain Taseer <husnain.taseer@gmail.com><br>
<b>Enviado:</b> sexta-feira, 5 de fevereiro de 2016 15:06<br>
<b>Para:</b> users@lists.opensips.org<br>
<b>Assunto:</b> [OpenSIPS-Users] NAT handling for internally generated messages in local_route</font>
<div> </div>
</div>
<div>
<div dir="ltr">Dear Users,
<div>I am facing the same issue as discussed in the below thread few years ago.</div>
<div><br>
</div>
<div><a id="LPlnk609805" href="http://opensips.org/pipermail/users/2009-March/003648.html">http://opensips.org/pipermail/users/2009-March/003648.html</a><br>
</div>
<div><br>
</div>
<div>I am setting $DLG_timeout for every call so after this amount of seconds BYE is generated by TM module and sent to both caller and callee. But if callee or caller are behind NAT then the contact IP address (in their respective contact fields in dialog
table) is private because of which opensips is sending BYE to their private addresses which is not reaching them and call don't disconnects. Is there any solution available to handle this issue.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Husnain Taseer</div>
<div>VoIP Developer</div>
</div>
</div>
</div>
</div>
</body>
</html>