Some improvements on the handling of contacts on S-CSCF database, namely
- Clean the contact table at startup if impu_contact table is empty
- if the contact is in state DELAYED_DELETE but still has ref_count > 0 in memory, it could mean that it has not been decremented before due to a failure to get a lock. This way we are leaking a contact on the DB and in memory. When the contact is expired and in DELAYED_DELETE, we do a query to check if it is really still referenced on impu_contact table. If not, we mark contact for deletion.
- Add an helper function to print the actual state of a contact instead of the index of the enum
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/730
Commit Summary
- ims_usrloc_scscf: Remove all unlinked contacts
- ims_usrloc_scscf: Double check contact refs on DB
- ims_usrloc_scscf: Print contact state as string
File Changes
Patch Links:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.