[SR-Users] Kamailio does not delete expired contacts

Daniel-Constantin Mierla miconda at gmail.com
Mon Nov 24 11:48:46 CET 2014


Hello,

On 20/11/14 05:16, Bui Minh Yen wrote:
> Hi everyone,
>
> I am using Kamailio-4.1.5. I met a problem that Kamailio does not
> delete expired contact. I enable log file for module usrloc and see
> that, about 1 first hour, timer callback of usrloc module working fine
> (delete all expired contacts). But after that, it is not called -->
> Expired contacts in shared memory and database are not deleted.

for how long did you wait?

In db_mode 2, the records in database are deleted on a timer, if you
want them to be visible immediately in the database, then use db_mode 1.

Cheers,
Daniel

>
> I configured usrloc module like that:
> # ----- usrloc params -----
> modparam("usrloc", "db_url", DBURL)
> modparam("usrloc", "db_mode", 2)
> modparam("usrloc", "use_domain", MULTIDOMAIN)
> modparam("usrloc", "db_ops_ruid", 1)
>
> Could you help me to fix this problem!
>
> Thanks so much!
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20141124/1a4bf2b7/attachment.html>


More information about the sr-users mailing list