[OpenSER-Users] Can't get sipping working in nathelper module

Pablo Guijarro Enríquez pge at moviquity.com
Tue Jun 3 09:07:07 CEST 2008


Hi,

 

I’m using OpenSER v1.3.1 and sipping does not work with my configuration.
Here is a sample:

 

loadmodule "usrloc.so"

loadmodule "nathelper.so"




 

modparam("nathelper", "natping_interval", 10)

#modparam("nathelper", "ping_nated_only", 1)

modparam("nathelper", "sipping_bflag", 7)

modparam("nathelper", "sipping_from", "sip:pinger at cmovil.net")

modparam("nathelper", "received_avp", "$avp(i:801)")

modparam("registrar", "received_avp", "$avp(i:801)")

modparam("usrloc", "db_mode",   2)

modparam("usrloc", "nat_bflag", 6)




route {

 

            if (!mf_process_maxfwd_header("10")) {

                        sl_send_reply("483","Too Many Hops");

                        exit;

            }

 

            # for clients behind nats

            if ( nat_uac_test("1") ) {

                        if (method=="REGISTER") {

                                   fix_nated_register();

                                   setbflag(6);

                                   setbflag(7);

                        } else if ( method=="SUBSCRIBE" || method=="PUBLISH”
) {

                                   fix_nated_contact();

                                   setbflag(6);

                                   setbflag(7);

                        };

            };

...

}

...

 

TCP clients register without problems and NAT users are identified properly.
Routing for them works fine and so on, but I cannot see any ping packet
leaving OpenSER to keep the TCP connection alive. Is there something
missing?

 

Thank in advance.

 

Pablo

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20080603/e59523a9/attachment.htm 


More information about the Users mailing list