[OpenSIPS-Users] Opensips + NAT registration issue

Satish Patel satish.txt at gmail.com
Tue Aug 19 22:10:06 CEST 2014


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).

I am successfully able to register without NAT sip client. following is my
config


# ----- Determining if client is behind NAT -----#
loadmodule "nathelper.so"
modparam("nathelper","natping_interval", 0)
modparam("nathelper","received_avp", "$avp(i:42)")
modparam("registrar","received_avp", "$avp(i:42)")




# Detect NAT
        force_rport();
        if (nat_uac_test("19")) {
                if (is_method("REGISTER") &&
!is_present_hf("Record-Route")) {
                fix_nated_register();
                }
        else {
                fix_nated_contact();
                }
                setflag(5);
        }

...
...

 if (is_method("REGISTER"))
        {
                 if (isflagset(5)) {
                        setbflag(6);
                        setbflag(7);
                };

 if (!save("location"))
                        sl_reply_error();

                exit;
        }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140819/6a309421/attachment.htm>


More information about the Users mailing list