[OpenSER-Devel] usrloc get_all_db_ucontacts frequency

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Mar 7 21:32:29 CET 2008


Hi Juha,

For DB_ONLY mode, the "timer_interval" - which is used in WRITE_BACK for 
flushing - is used for deleting the expired contacts. This is how it 
works not.

The get_all_db_ucontacts() you see every minute is actually because of 
distributed NAT pinging :) - instead of taking all contacts once at 
every n seconds, nathelper takes every seconds a subset of contacts (but 
taking care to scan all contacts within n seconds).

So, no worry, not all contacts are load every second :)...

Regards,
Bogdan


Juha Heinanen wrote:
> Bogdan-Andrei Iancu writes:
>
>  > On the other hand, get_all_db_ucontacts() is not triggered by usrloc 
>  > module, but by nathelper and mediaproxy, for generating the NAT
>  > pings.
>
> ok.  no matter whoever causes get_all_db_ucontacts() every second, it
> looks like a good idea to make the interval configurable for db_mode=3
> case.  loading ALL contacts (which may be MANY) every second sound
> really heavy.
>
> -- juha
>
>   




More information about the Devel mailing list