[sr-dev] git:master: modules_k/presence: Fixed presence hard-state implementation

Peter Dunkley peter.dunkley at crocodile-rcs.com
Fri Jun 1 12:54:29 CEST 2012


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

Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Date:   Fri Jun  1 11:50:17 2012 +0100

modules_k/presence: Fixed presence hard-state implementation

- Removed modparams added when I did this originally
- Hard-state is still "publish"ed to the presentity table (with expiry
  of -1)
- Removed exported function for updating hard-state presentity and
  added a new type to pres_refresh_watchers instead (also updated
  refreshWatchers MI command)
- Hard-state presentity now fetched using the event->get_pidf_doc()
  function instead of directly from the database
- Also fixed two bugs (from my notifier work) found during testing:
  - query_db_notify() sends NOTIFY requests immediately (instead of
    through notifier tasks)
  - segmentation fault in update_pw_dialogs_dbonlymode() when there
    are no matching dialogs

---

 modules_k/presence/README                 |  386 ++++++++++++-----------------
 modules_k/presence/doc/presence_admin.xml |  157 +++---------
 modules_k/presence/event_list.c           |    3 +-
 modules_k/presence/event_list.h           |    2 +
 modules_k/presence/notify.c               |   57 +++--
 modules_k/presence/presence.c             |  241 ++++++++----------
 modules_k/presence/presence.h             |    5 -
 modules_k/presence/presentity.c           |    2 +-
 modules_k/presence/publish.c              |  153 ++----------
 modules_k/presence/publish.h              |    3 +-
 10 files changed, 371 insertions(+), 638 deletions(-)

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



More information about the sr-dev mailing list