Skip to content

Commit

Permalink
modules/ims_usrloc_scscf: strip off port param when searching for ter…
Browse files Browse the repository at this point in the history
…m user
  • Loading branch information
jaybeepee committed May 25, 2015
1 parent 15b0626 commit 88b2ab7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/ims_registrar_scscf/lookup.c
Expand Up @@ -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);
Expand Down

0 comments on commit 88b2ab7

Please sign in to comment.