[Spce-user] NAT detection / NAT ping?

Jirka Jirout jirka.jirout at mac.com
Thu Aug 9 03:08:23 EDT 2012


Hello,

I am having some problems with detection of NAT and consequently with keeping the clients' connections alive.

The primary problem is that NAT is not detected for some connections (mainly small-town wifi providers I would say, users of 3G networks are fine as far as I can tell). This might be a bug in our client, which we might be able to fix later (via field in sip messages), but for now, I wanted to use server-originated NAT-ping to keep the connections alive.

I have modified the config of nathelper in file /etc/kamailio/proxy/kamailio.cfg to NAT-ping all clients, no only those behind NAT:

modparam("nathelper", "natping_interval", 30)
modparam("nathelper", "ping_nated_only", 0)
modparam("nathelper", "sipping_bflag", FLB_NATSIPPING)
modparam("nathelper", "sipping_from", "sip:pinger at sipwise.local")
modparam("nathelper", "received_avp", "$avp(s:received)")
modparam("nathelper", "sipping_method", "INFO")

Of course I have restared the server by using /etc/init.d/kamailio-proxy restart but the server still only pings clients, for which the NAT is correctly detected.

Where did I make an error?

regards, jj




More information about the Spce-user mailing list