[SR-Users] unregister user when kamailio looses TCP connection.
Vitaliy Aleksandrov
vitalik.voip at gmail.com
Tue Aug 27 12:42:19 CEST 2013
> 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.
More information about the sr-users
mailing list