[sr-dev] git:master:ce33e4c1: modules/ims_usrloc_pcscf: allow contacts with no received params (populated from notify)

jaybeepee jason.penton at gmail.com
Mon Nov 23 11:49:11 CET 2015


Module: kamailio
Branch: master
Commit: ce33e4c19764bc9c2ec41e564199a2d13d74a85e
URL: https://github.com/kamailio/kamailio/commit/ce33e4c19764bc9c2ec41e564199a2d13d74a85e

Author: jaybeepee <jason.penton at gmail.com>
Committer: jaybeepee <jason.penton at gmail.com>
Date: 2015-11-23T12:48:36+02:00

modules/ims_usrloc_pcscf: allow contacts with no received params (populated from notify)

---

Modified: modules/ims_usrloc_pcscf/udomain.c

---

Diff:  https://github.com/kamailio/kamailio/commit/ce33e4c19764bc9c2ec41e564199a2d13d74a85e.diff
Patch: https://github.com/kamailio/kamailio/commit/ce33e4c19764bc9c2ec41e564199a2d13d74a85e.patch

---

diff --git a/modules/ims_usrloc_pcscf/udomain.c b/modules/ims_usrloc_pcscf/udomain.c
index 6aeda65..736f194 100644
--- a/modules/ims_usrloc_pcscf/udomain.c
+++ b/modules/ims_usrloc_pcscf/udomain.c
@@ -665,8 +665,8 @@ static inline pcontact_info_t* dbrow2info( db_val_t *vals, str *contact)
         ci.via_prot = VAL_INT(vals + 3);
 	received.s = (char*) VAL_STRING(vals + 4);
 	if (VAL_NULL(vals+4) || !received.s || !received.s[0]) {
-            LM_ERR("Empty received for contact [%.*s].... ignoring\n", contact->len, contact->s);
-            return 0;
+		LM_DBG("Empty received for contact [%.*s]....\n", contact->len, contact->s);	/*this could happen if you have been notified about a contact from S-CSCF*/
+		received.len = 0;
 	} else {
 		received.len = strlen(received.s);
 	}




More information about the sr-dev mailing list