[sr-dev] git:master:d3abee96: uac: read all 12 columns from uacreg database table

Daniel-Constantin Mierla miconda at gmail.com
Thu May 26 16:32:20 CEST 2016


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

Author: Andrew J Robinson <AndyJRobinson at users.noreply.github.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-05-26T16:30:35+02:00

uac: read all 12 columns from uacreg database table

- fix when the database connector does not have DB_CAP_FETCH capability
- GH #642

---

Modified: modules/uac/uac_reg.c

---

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

---

diff --git a/modules/uac/uac_reg.c b/modules/uac/uac_reg.c
index 86b17e9..f8c30ca 100644
--- a/modules/uac/uac_reg.c
+++ b/modules/uac/uac_reg.c
@@ -1172,7 +1172,7 @@ int uac_reg_load_db(void)
 		}
 	} else {
 		if((ret=reg_dbf.query(reg_db_con, NULL, NULL, NULL, db_cols,
-						0, 10, 0, &db_res))!=0
+						0, 12, 0, &db_res))!=0
 				|| RES_ROW_N(db_res)<=0 )
 		{
 			reg_dbf.free_result(reg_db_con, db_res);




More information about the sr-dev mailing list