Module: kamailio
Branch: master
Commit: 88b2ab74801441cb3857245863a5eee2a67c8063
URL:
https://github.com/kamailio/kamailio/commit/88b2ab74801441cb3857245863a5eee…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2015-05-25T12:28:12+02:00
modules/ims_usrloc_scscf: strip off port param when searching for term user
---
Modified: modules/ims_registrar_scscf/lookup.c
---
Diff:
https://github.com/kamailio/kamailio/commit/88b2ab74801441cb3857245863a5eee…
Patch:
https://github.com/kamailio/kamailio/commit/88b2ab74801441cb3857245863a5eee…
---
diff --git a/modules/ims_registrar_scscf/lookup.c b/modules/ims_registrar_scscf/lookup.c
index 83c3f42..a7075f7 100644
--- a/modules/ims_registrar_scscf/lookup.c
+++ b/modules/ims_registrar_scscf/lookup.c
@@ -349,11 +349,10 @@ int term_impu_registered(struct sip_msg* _m, char* _t, char* _s)
else uri = _m->first_line.u.request.uri;
for(i=0;i<uri.len;i++)
- if (uri.s[i]==';' || uri.s[i]=='?') {
+ if (uri.s[i]==';' || uri.s[i]=='?' || (i>3 /*sip:*/ &&
uri.s[i]==':' /*strip port*/)) {
uri.len = i;
break;
}
-
LM_DBG("term_impu_registered: Looking for <%.*s>\n",uri.len,uri.s);
ul.lock_udomain((udomain_t*)_t, &uri);