Module: sip-router
Branch: master
Commit: 1323d05b304d2f527ca67036b23beb5967d0e89a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1323d05…
Author: Jason Penton <jason.penton(a)gmail.com>
Committer: Jason Penton <jason.penton(a)gmail.com>
Date: Thu May 22 14:52:43 2014 +0200
modules/ims_usrloc_pcscf: fixed bug, not fetching associated IMPUs from DB during preload
of domain on startup
---
modules/ims_usrloc_pcscf/udomain.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/modules/ims_usrloc_pcscf/udomain.c b/modules/ims_usrloc_pcscf/udomain.c
index dd6ec4d..d655dea 100644
--- a/modules/ims_usrloc_pcscf/udomain.c
+++ b/modules/ims_usrloc_pcscf/udomain.c
@@ -715,18 +715,17 @@ static inline pcontact_info_t* dbrow2info( db_val_t *vals, str
*contact)
if (VAL_NULL(vals+5) || !rx_session_id.s || !rx_session_id.s[0]) {
rx_session_id.len = 0;
rx_session_id.s = 0;
- LM_DBG("2\n");
} else {
rx_session_id.len = strlen(rx_session_id.s);
}
ci.rx_regsession_id = &rx_session_id;
if (VAL_NULL(vals + 6)) {
- LM_CRIT("empty registration state in DB\n");
+ LM_ERR("empty registration state in DB\n");
return 0;
}
ci.reg_state = VAL_INT(vals + 6);
if (VAL_NULL(vals + 7)) {
- LM_CRIT("empty expire\n");
+ LM_ERR("empty expire\n");
return 0;
}
ci.expires = VAL_TIME(vals + 7);
@@ -741,7 +740,7 @@ static inline pcontact_info_t* dbrow2info( db_val_t *vals, str
*contact)
//public IDs - implicit set
implicit_impus.s = (char*) VAL_STRING(vals + 10);
- if (!VAL_NULL(vals + 8) && implicit_impus.s && implicit_impus.s[0]) {
+ if (!VAL_NULL(vals + 10) && implicit_impus.s && implicit_impus.s[0]) {
//how many
n=0;
p = implicit_impus.s;