Module: sip-router
Branch: master
Commit: bd598ce945d8e5db910ea1a12795c5cdd7d580cf
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bd598ce…
Author: pd <peter.dunkley(a)crocodile-rcs.com>
Committer: pd <peter.dunkley(a)crocodile-rcs.com>
Date: Wed Aug 17 15:01:26 2011 +0100
modules_k/presence, modules_k/presence_xml: Added new exported functions to enable the
online status of a user to be checked
- Exported two new API functions from presence (get_presentity() and
free_presentity()). These functions are used by the new exported
functions.
- Added two new exported functions to presence_xml. pres_check_basic()
enables you to find out whether a users basic status matches the
string you provide. pres_check_activities() enables you to find out
whether any of a users listed activities matches the string you
provide.
pres_check_basic() effectively lets you tell whether a user is
online or offline (based on presence). pres_check_activities()
lets you see what a user is currently doing (for example, is the
user too busy to take a call?).
The results from these exported functions can be used to make
routing decisions. For example, you can choose not to route calls
to users who are away or busy.
---
modules_k/presence/README | 31 +++
modules_k/presence/bind_presence.c | 3 +
modules_k/presence/bind_presence.h | 4 +
modules_k/presence/doc/presence_devel.xml | 45 +++++
modules_k/presence/notify.c | 64 ++----
modules_k/presence/notify.h | 2 +
modules_k/presence_xml/README | 60 ++++++-
modules_k/presence_xml/doc/presence_xml_admin.xml | 88 ++++++++-
modules_k/presence_xml/pres_check.c | 220 +++++++++++++++++++++
modules_k/presence_xml/pres_check.h | 32 +++
modules_k/presence_xml/presence_xml.c | 14 ++-
11 files changed, 515 insertions(+), 48 deletions(-)
Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=bd5…