[sr-dev] git:master:b8953438: rtpproxy: fix mismatching internal value for column setid
Daniel-Constantin Mierla
miconda at gmail.com
Thu Nov 19 13:31:23 CET 2015
Module: kamailio
Branch: master
Commit: b89534385ef881719c85534ab7a32a500be2aa9c
URL: https://github.com/kamailio/kamailio/commit/b89534385ef881719c85534ab7a32a500be2aa9c
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-11-19T13:31:10+01:00
rtpproxy: fix mismatching internal value for column setid
- on a report by Jan Hazenberg
---
Modified: modules/rtpproxy/rtpproxy_db.c
---
Diff: https://github.com/kamailio/kamailio/commit/b89534385ef881719c85534ab7a32a500be2aa9c.diff
Patch: https://github.com/kamailio/kamailio/commit/b89534385ef881719c85534ab7a32a500be2aa9c.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