[sr-dev] git:master: modules/ims_registrar_scscf: fixed asserted identity comparison to path to not include "sip:"
Richard Good
richard.good at smilecoms.com
Thu Oct 9 11:53:11 CEST 2014
Module: sip-router
Branch: master
Commit: d2b06ddb70ee8edfd0456fb0697167560d608f44
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d2b06ddb70ee8edfd0456fb0697167560d608f44
Author: Richard Good <richard.good at smilecoms.com>
Committer: Richard Good <richard.good at smilecoms.com>
Date: Thu Oct 9 11:52:15 2014 +0200
modules/ims_registrar_scscf: fixed asserted identity comparison to path to not include "sip:"
---
modules/ims_registrar_scscf/registrar_notify.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/ims_registrar_scscf/registrar_notify.c b/modules/ims_registrar_scscf/registrar_notify.c
index 8e80bcf..09e83ef 100644
--- a/modules/ims_registrar_scscf/registrar_notify.c
+++ b/modules/ims_registrar_scscf/registrar_notify.c
@@ -371,9 +371,9 @@ int can_subscribe_to_reg(struct sip_msg *msg, char *_t, char *str2) {
while (c) {
if (c->path.len) {
- for (i = 0; i < c->path.len - asserted_id.len; i++)
- LM_DBG("Path: <%.*s>.\n",
+ LM_DBG("Path: <%.*s>.\n",
c->path.len, c->path.s);
+ for (i = 0; i < c->path.len - (asserted_id.len-4); i++)
//we compare the asserted_id without "sip:" to the path
if (strncasecmp(c->path.s + i, asserted_id.s+4, asserted_id.len-4) == 0) {
LM_DBG("Identity found in Path <%.*s>\n",
More information about the sr-dev
mailing list