[OpenSIPS-Users] Location of MySQL query for nathelper
Liviu Chircu
liviu at opensips.org
Wed Feb 11 10:27:00 CET 2015
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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150211/7fbc7e3c/attachment.htm>
More information about the Users
mailing list