[sr-dev] git:4.2:59b4a0dc: rtpproxy: fix mismatching internal value for column setid

Daniel-Constantin Mierla miconda at gmail.com
Thu Nov 19 13:33:05 CET 2015


Module: kamailio
Branch: 4.2
Commit: 59b4a0dce403358950e8dc474438246a109715da
URL: https://github.com/kamailio/kamailio/commit/59b4a0dce403358950e8dc474438246a109715da

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-11-19T13:32:38+01:00

rtpproxy: fix mismatching internal value for column setid

- on a report by Jan Hazenberg

(cherry picked from commit b89534385ef881719c85534ab7a32a500be2aa9c)
(cherry picked from commit 62243d315df63909b079f731f25de23a638bcdf6)

---

Modified: modules/rtpproxy/rtpproxy_db.c

---

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

---

diff --git a/modules/rtpproxy/rtpproxy_db.c b/modules/rtpproxy/rtpproxy_db.c
index 02dcde1..2034ee4 100644
--- a/modules/rtpproxy/rtpproxy_db.c
+++ b/modules/rtpproxy/rtpproxy_db.c
@@ -34,7 +34,7 @@ static db1_con_t *rtpp_db_handle = NULL;
 
 str rtpp_db_url = {NULL, 0};
 str rtpp_table_name = str_init("rtpproxy");
-str rtpp_set_name_col = str_init("set_name");
+str rtpp_setid_col = str_init("setid");
 str rtpp_url_col = str_init("url");
 str rtpp_weight_col = str_init("weight");
 str rtpp_flags_col = str_init("flags");
@@ -67,7 +67,7 @@ static int rtpp_load_db(void)
 	db1_res_t *res = NULL;
 	db_val_t *values = NULL;
 	db_row_t *rows = NULL;
-	db_key_t query_cols[] = {&rtpp_set_name_col, &rtpp_url_col, &rtpp_weight_col, &rtpp_flags_col};
+	db_key_t query_cols[] = {&rtpp_setid_col, &rtpp_url_col, &rtpp_weight_col, &rtpp_flags_col};
 
 	str set, url;
 	int weight, flags;




More information about the sr-dev mailing list