[sr-dev] [kamailio/kamailio] presence: delay aux_body_processing until after subscription has been updated (#917)

Charles Chance notifications at github.com
Sat Jan 7 01:07:40 CET 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20170106/fb7d8cf6/attachment.html>


More information about the sr-dev mailing list