Module: sip-router Branch: master Commit: ea45a9b0ff6851d01e09aa62dfe9e7e006552609 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ea45a9b0...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Tue Sep 3 23:16:50 2013 +0200
pua: basic framework for handling xcap-diff event
---
modules/pua/add_events.c | 8 ++++++++ modules/pua/hash.h | 3 +++ 2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/modules/pua/add_events.c b/modules/pua/add_events.c index 76a12db..b802232 100644 --- a/modules/pua/add_events.c +++ b/modules/pua/add_events.c @@ -98,6 +98,14 @@ int pua_add_events(void) } } + /* add xcap-diff */ + if(add_pua_event(XCAPDIFF_EVENT, "xcap-diff", + "application/xcap-diff+xml", 0)< 0) + { + LM_ERR("while adding event xcap-diff\n"); + return -1; + } + return 0;
} diff --git a/modules/pua/hash.h b/modules/pua/hash.h index 9912eba..65020be 100644 --- a/modules/pua/hash.h +++ b/modules/pua/hash.h @@ -42,6 +42,7 @@ #define CONFERENCE_EVENT 1<<4 #define DIALOG_EVENT 1<<5 #define REGINFO_EVENT 1<<6 +#define XCAPDIFF_EVENT 1<<7
#define UL_PUBLISH 1<<0 #define BLA_PUBLISH 1<<1 @@ -57,6 +58,8 @@ #define PURPLE_PUBLISH 1<<11 #define REGINFO_PUBLISH 1<<12 #define REGINFO_SUBSCRIBE 1<<13 +#define XCAPDIFF_PUBLISH 1<<14 +#define XCAPDIFF_SUBSCRIBE 1<<15
#define NO_UPDATEDB_FLAG 1<<0 #define UPDATEDB_FLAG 1<<1