Module: kamailio Branch: master Commit: 3999e927a1ee6f8b0cb97c34f84d113c1333279c URL: https://github.com/kamailio/kamailio/commit/3999e927a1ee6f8b0cb97c34f84d113c...
Author: Carsten Bock carsten@ng-voice.com Committer: Carsten Bock carsten@ng-voice.com Date: 2015-01-27T18:06:26+02:00
ims_registrar_scscf: Set i to 0 before iterating
---
Modified: modules/ims_registrar_scscf/lookup.c
---
Diff: https://github.com/kamailio/kamailio/commit/3999e927a1ee6f8b0cb97c34f84d113c... Patch: https://github.com/kamailio/kamailio/commit/3999e927a1ee6f8b0cb97c34f84d113c...
---
diff --git a/modules/ims_registrar_scscf/lookup.c b/modules/ims_registrar_scscf/lookup.c index 067cb3b..9f2cf2d 100644 --- a/modules/ims_registrar_scscf/lookup.c +++ b/modules/ims_registrar_scscf/lookup.c @@ -94,6 +94,7 @@ int lookup(struct sip_msg* _m, udomain_t* _d) { return -1; } ret = -1; + i = 0;
while (i < MAX_CONTACTS_PER_IMPU && (ptr = r->newcontacts[i])) { if (VALID_CONTACT(ptr, act_time) && allowed_method(_m, ptr)) { @@ -106,6 +107,7 @@ int lookup(struct sip_msg* _m, udomain_t* _d) {
/* look first for an un-expired and suported contact */ if (ptr == 0) { + LM_INFO("No contacts founds for IMPU <%.*s>\n",aor.len,aor.s); /* nothing found */ goto done; }