[sr-dev] git:master:922e5818: usrloc: fixed number of columns when loading urecord in db mode 3

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


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

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

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

- reported by GH#373

---

Modified: modules/usrloc/udomain.c

---

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

---

diff --git a/modules/usrloc/udomain.c b/modules/usrloc/udomain.c
index 6d135da..3ef2803 100644
--- a/modules/usrloc/udomain.c
+++ b/modules/usrloc/udomain.c
@@ -630,7 +630,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;
@@ -814,7 +814,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