[sr-dev] git:master: modules_k/presence: Dedicated notifier processes

Peter Dunkley peter.dunkley at crocodile-rcs.com
Tue May 8 17:55:48 CEST 2012


Module: sip-router
Branch: master
Commit: 8485536f1fd56127e38101d48d02afbacd5f4f6d
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8485536f1fd56127e38101d48d02afbacd5f4f6d

Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Date:   Tue May  8 16:47:07 2012 +0100

modules_k/presence: Dedicated notifier processes

- This fixes a bug in presence where, when subs_db_mode is database
  only, under high loads with lots of presentity changes you can get
  several different NOTIFY requests sent with the same CSeq.
- The dedicated notifier processes only work when in database only
  mode.
- The dedicated notifier processes are enabled (with one notifier
  process) by default when in database only mode.
- You can disable the dedicated notifier processes by setting the
  "notifier_processes" modparam to 0.
- The notifier processes are executed on a timer and deal with a
  small amount of the outstanding notifications each time they run.
  By default (changeable through the "waitn_time" modparam) all
  dialogs are processed every five seconds.  This means it will take
  between 0 and five seconds (on average 2.5 seconds) between a
  presentity or dialog update occurring and a NOTIFY request being
  sent.

---

 modules_k/presence/README                 |  246 +++++---
 modules_k/presence/doc/presence_admin.xml |   85 +++-
 modules_k/presence/notify.c               | 1054 ++++++++++++++++++++++++++++-
 modules_k/presence/notify.h               |    4 +
 modules_k/presence/presence.c             |  116 +++-
 modules_k/presence/presence.h             |    7 +
 modules_k/presence/presentity.c           |  246 +++++++-
 modules_k/presence/presentity.h           |    2 +
 modules_k/presence/publish.c              |   70 ++-
 modules_k/presence/subscribe.c            |  200 +++++-
 modules_k/presence/subscribe.h            |    1 +
 11 files changed, 1837 insertions(+), 194 deletions(-)

Diff:   http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=8485536f1fd56127e38101d48d02afbacd5f4f6d



More information about the sr-dev mailing list