[sr-dev] git:4.3:60985a13: usrloc: fixed number of columns when loading urecord in db mode 3

Daniel-Constantin Mierla miconda at gmail.com
Fri Oct 23 14:58:10 CEST 2015


Module: kamailio
Branch: 4.3
Commit: 60985a13878b9ec3b84b565c02be14927ba6357a
URL: https://github.com/kamailio/kamailio/commit/60985a13878b9ec3b84b565c02be14927ba6357a

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-10-23T14:57:22+02:00

usrloc: fixed number of columns when loading urecord in db mode 3

- reported by GH#373

(cherry picked from commit 922e5818b02b6d5e1f082e861f97bc8868f5ae57)

---

Modified: modules/usrloc/udomain.c

---

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

---

diff --git a/modules/usrloc/udomain.c b/modules/usrloc/udomain.c
index 2bb1707..63db924 100644
--- a/modules/usrloc/udomain.c
+++ b/modules/usrloc/udomain.c
@@ -609,7 +609,7 @@ urecord_t* db_load_urecord(db1_con_t* _c, udomain_t* _d, str *_aor)
 		return 0;
 	}
 
-	if (ul_dbf.query(_c, keys, 0, vals, columns, (use_domain)?2:1, 16, order,
+	if (ul_dbf.query(_c, keys, 0, vals, columns, (use_domain)?2:1, 19, order,
 				&res) < 0) {
 		LM_ERR("db_query failed\n");
 		return 0;
@@ -793,7 +793,7 @@ urecord_t* db_load_urecord_by_ruid(db1_con_t* _c, udomain_t* _d, str *_ruid)
 		return 0;
 	}
 
-	if (ul_dbf.query(_c, keys, 0, vals, columns, 1, 18, order,
+	if (ul_dbf.query(_c, keys, 0, vals, columns, 1, 21, order,
 				&res) < 0) {
 		LM_ERR("db_query failed\n");
 		return 0;




More information about the sr-dev mailing list