Module: sip-router
Branch: master
Commit: 6a82057688023c2786809d8508217799c6d41c65
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6a82057…
Author: Richard Good <richard.good(a)smilecoms.com>
Committer: Richard Good <richard.good(a)smilecoms.com>
Date: Fri May 23 18:01:42 2014 +0200
modules:ims_registrar_pcscf: added support for notification event deactivated
---
modules/ims_registrar_pcscf/notify.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/ims_registrar_pcscf/notify.c b/modules/ims_registrar_pcscf/notify.c
index 9b2973e..6cdd9b0 100644
--- a/modules/ims_registrar_pcscf/notify.c
+++ b/modules/ims_registrar_pcscf/notify.c
@@ -68,6 +68,7 @@
#define EVENT_CREATED 3
#define EVENT_REFRESHED 4
#define EVENT_EXPIRED 5
+#define EVENT_DEACTIVATED 6
#define RESULT_ERROR -1
#define RESULT_CONTACTS_FOUND 1
@@ -182,6 +183,9 @@ int reginfo_parse_event(char * s) {
if (strncmp(s, "registered", 10) == 0) return EVENT_REGISTERED;
if (strncmp(s, "terminated", 10) == 0) return EVENT_TERMINATED;
break;
+ case 11:
+ if (strncmp(s, "deactivated", 11) == 0) return EVENT_DEACTIVATED;
+ break;
case 12:
if (strncmp(s, "unregistered", 12) == 0) return EVENT_UNREGISTERED;
break;