[sr-dev] db version of nat pinger

Juha Heinanen jh at tutpro.com
Sat Sep 15 20:53:17 CEST 2012

Juha Heinanen writes:

> so it does not help that nathelper has "natping_socket" module param
> defined, because nathelper does not get a chance to override the
> socket.

this was not true.  the warning

Sep 15 21:44:18 siika /usr/sbin/sip-proxy[14911]: WARNING: usrloc [dlist.c:232]: non-local socket <udp:>...ignoring

is not correct.  the entry is NOT ignored and nathelper module starts to
ping the contact fine:

U 2012/09/15 21:45:58.441183 ->

should i just go ahead and remove the above warning?  after that it
appears that dispatcher can be used to do nat pinging.

one more thing.  the all contacts query that usrloc makes looks like

120915 21:48:04	 1397 Query	select received, contact, socket, cflags, path, ruid from location where expires > '2012-09-15 21:48:04' and cflags & 0 = 0 and id % 20 = 0

there is currently no index for expires and cflags.  should i add one or
both of them?

-- juha

More information about the sr-dev mailing list