Module: kamailio Branch: 4.3 Commit: 62243d315df63909b079f731f25de23a638bcdf6 URL: https://github.com/kamailio/kamailio/commit/62243d315df63909b079f731f25de23a...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2015-11-19T13:31:35+01:00
rtpproxy: fix mismatching internal value for column setid
- on a report by Jan Hazenberg
(cherry picked from commit b89534385ef881719c85534ab7a32a500be2aa9c)
---
Modified: modules/rtpproxy/rtpproxy_db.c
---
Diff: https://github.com/kamailio/kamailio/commit/62243d315df63909b079f731f25de23a... Patch: https://github.com/kamailio/kamailio/commit/62243d315df63909b079f731f25de23a...
---
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;