Hello Dovid,
nathelper uses the usrloc module in order to fetch the contacts to be
pinged. That being said:
1) if your usrloc "db_mode" parameter is set to 0, 1 or 2, then contacts
are simply fetched from memory and pinged (no SQL queries!)
2) if usrloc works in "db_mode" 3, each pinging iteration does a "SELECT
*" SQL operation. The code is in modules/usrloc/dlist.c -
get_all_db_ucontacts().
If you are in case 1), then only thing left to "tweak" is the
get_all_mem_ucontacts(). LM_INFO() is your best friend there :)
Best regards,
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 10.02.2015 23:15, Dovid Bender wrote:
Hi,
We are using nathelper to ping where OpenSipS thinks a device is
behind NAT. I am trying to tweak the query that OpenSipS uses but I
was unable to find it. Where in the source code is the query?
TIA.
Dovid
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users