Also, if I didn't get it wrong, it works only with in-memory records, if the usrloc is configured in db-only mode, it does not work with current patch, right?

To remove old contacts i've used delete_ucontact from usrloc api. This function checks db_mode and removes contact from db in case of DB_ONLY mode and just updates expiration in case of WRITE_BACK.

But the issue would be that the hash tables will not be in memory, so you will not get in this way to call the delete_ucontact() function. This function is called via a different code path for db only mode.
Tnx, good remark. It shows that I missed how DB_ONLY mode works. Will spent some time to examine it. Just remembered that kamailio can close connection from its side due to tcp_connection_lifetime parameter. Haven't checked where how it works.

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to