<div dir="ltr"><div>I have just install OpenSIPs 1.11.x on Public network and server running on Public IP but somehow i am not able to register SIP client behind NAT (dynamic NAT one to many). <br><br></div>I am successfully able to register without NAT sip client. following is my config<br>
<br><br># ----- Determining if client is behind NAT -----#<br>loadmodule "nathelper.so"<br>modparam("nathelper","natping_interval", 0)<br>modparam("nathelper","received_avp", "$avp(i:42)")<br>
modparam("registrar","received_avp", "$avp(i:42)")<br><br><br><br><br># Detect NAT<br> force_rport();<br> if (nat_uac_test("19")) {<br> if (is_method("REGISTER") && !is_present_hf("Record-Route")) {<br>
fix_nated_register();<br> }<br> else {<br> fix_nated_contact();<br> }<br> setflag(5);<br> }<br><br>...<br>...<br><br> if (is_method("REGISTER"))<br>
{<br> if (isflagset(5)) {<br> setbflag(6);<br> setbflag(7);<br> };<br><br> if (!save("location"))<br> sl_reply_error();<br>
<br> exit;<br> }<br><br></div>