Fixes out-of-sequence version when subs_db_mode <> 3 and fast_notify is enabled.
Version is incremented only when copy is updated in memory. Therefore, currently:
On SUBSCRIBE, subscription is updated first, so NOTIFY body contains newly incremented
version.
But on PUBLISH, aux_body_processing is called first, so NOTIFY body contains previously
stored version.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/917
-- Commit Summary --
* presence: delay aux_body_processing until after subscription has been updated
-- File Changes --
M src/modules/presence/notify.c (42)
M src/modules/presence/notify.h (2)
M src/modules/presence/presence.c (2)
M src/modules/presence/subscribe.c (8)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/917.patch
https://github.com/kamailio/kamailio/pull/917.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/917