[Spce-user] NAT detection / NAT ping?

Jon Bonilla (Manwe) jbonilla at sipwise.com
Mon Sep 3 04:48:22 EDT 2012

El Thu, 09 Aug 2012 09:08:23 +0200
Jirka Jirout <jirka.jirout at mac.com> escribió:

> 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?

Are you clients using TCP? I've been detecting recently some situation in which
NAT was incorrectly detected for the TCP transport. I didn't check it in depth

More information about the Spce-user mailing list