Module: sip-router
Branch: master
Commit: 51d7fc62aad21d9bde8ef6f70c1baf40ce9217de
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=51d7fc6…
Author: Richard Good <richard.good(a)smilecoms.com>
Committer: Richard Good <richard.good(a)smilecoms.com>
Date: Tue Nov 25 11:58:24 2014 +0200
modules/ims_usrloc_scscf: writing to db fix for update_impu
When writing to db for update_impu some incorrect fields were used,
now we write the fields directly from the impu_record
---
modules/ims_usrloc_scscf/impurecord.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/ims_usrloc_scscf/impurecord.c
b/modules/ims_usrloc_scscf/impurecord.c
index 6f6ead2..a50cfc4 100644
--- a/modules/ims_usrloc_scscf/impurecord.c
+++ b/modules/ims_usrloc_scscf/impurecord.c
@@ -857,7 +857,7 @@ int update_impurecord(struct udomain* _d, str* public_identity, int
reg_state, i
run_ul_callbacks((*_r)->cbs, UL_IMPU_UPDATE, *_r, NULL);
- if (db_mode == WRITE_THROUGH && db_insert_impurecord(_d, public_identity,
reg_state, barring, s, ccf1, ccf2, ecf1, ecf2, _r) != 0) {
+ if (db_mode == WRITE_THROUGH && db_insert_impurecord(_d,
&(*_r)->public_identity, (*_r)->reg_state, (*_r)->barring, &(*_r)->s,
&(*_r)->ccf1, &(*_r)->ccf2, &(*_r)->ecf1, &(*_r)->ecf2, _r) !=
0) {
LM_ERR("error inserting IMPU [%.*s] into db... continuing",
(*_r)->public_identity.len, (*_r)->public_identity.s);
}