[sr-dev] [kamailio/kamailio] Presence: Fix startup inconsistency in presentity hash table (#809)

Stefan Kohlhauser notifications at github.com
Tue Oct 4 09:35:23 CEST 2016


pres_htable_restore(): Remove check of expired presentity entries when
initially filling the hash table to represent the number of expired +
valid entries. Because hash.c::delete_phtable() decrements publ_count on
removal of _every_ expired DB entry.
get_p_notify_body(): Compensate the fix on hash table restore by
checking for the expires time on building the NOTIFY. This also fixes a
problem when a SUBSCRIBE is received for an expired entry before the
cleaner can remove the entry from the DB.
You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/809

-- Commit Summary --

  * Presence: Fix startup inconsistency in presentity hash table

-- File Changes --

    M modules/presence/notify.c (17)
    M modules/presence/presentity.c (3)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/809.patch
https://github.com/kamailio/kamailio/pull/809.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/809
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20161004/2e081100/attachment.html>


More information about the sr-dev mailing list