Module: sip-router
Branch: master
Commit: 63ab6b482bf2be1fb706dfe4ff0dd27caf79a26f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=63ab6b4…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Thu Apr 19 17:57:00 2012 +0100
modules_k/presence: Updated handle_subscribe() so that an optional parameter can be used
to specify watcher URI
- This means that you can use URIs from different SIP headers
(for example, P-Asserted-Identity:) as the watcher URI.
- If the parameter to handle_subscribe() is not use the From:
URI is used as the watcher URI.
---
modules_k/presence/README | 15 ++-
modules_k/presence/bind_presence.c | 1 +
modules_k/presence/bind_presence.h | 4 +-
modules_k/presence/doc/presence_admin.xml | 10 ++-
modules_k/presence/hash.c | 12 ++-
modules_k/presence/notify.c | 47 ++++++---
modules_k/presence/notify.h | 2 +
modules_k/presence/presence.c | 75 ++++++++------
modules_k/presence/subscribe.c | 152 +++++++++++++++++++++++------
modules_k/presence/subscribe.h | 11 ++-
10 files changed, 235 insertions(+), 94 deletions(-)
Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=63a…