Module: kamailio
Branch: master
Commit: 6c3e317958c3395a41f1f312e2320c7739759f63
URL:
https://github.com/kamailio/kamailio/commit/6c3e317958c3395a41f1f312e2320c7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-03-09T13:42:51+01:00
uac_redirect: renamed the new default_q_value param to q_value
---
Modified: src/modules/uac_redirect/rd_funcs.c
Modified: src/modules/uac_redirect/uac_redirect.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6c3e317958c3395a41f1f312e2320c7…
Patch:
https://github.com/kamailio/kamailio/commit/6c3e317958c3395a41f1f312e2320c7…
---
diff --git a/src/modules/uac_redirect/rd_funcs.c b/src/modules/uac_redirect/rd_funcs.c
index 5ce2644ec2..7d8e7fd1d4 100644
--- a/src/modules/uac_redirect/rd_funcs.c
+++ b/src/modules/uac_redirect/rd_funcs.c
@@ -33,7 +33,7 @@
extern sruid_t _redirect_sruid;
-extern int default_q_value;
+extern int _redirect_q_value;
#define MAX_CONTACTS_PER_REPLY 16
@@ -147,7 +147,7 @@ static int sort_contacts(hdr_field_t *chdr, contact_t **ct_array,
/* does the contact has a q val? */
q_para = ct_list->q;
if (q_para==0 || q_para->body.len==0) {
- q = default_q_value;
+ q = _redirect_q_value;
} else {
if (str2q( &q, q_para->body.s, q_para->body.len)!=0) {
LM_ERR("invalid q param\n");
diff --git a/src/modules/uac_redirect/uac_redirect.c
b/src/modules/uac_redirect/uac_redirect.c
index 6968f0b7ec..2c4802beab 100644
--- a/src/modules/uac_redirect/uac_redirect.c
+++ b/src/modules/uac_redirect/uac_redirect.c
@@ -54,7 +54,7 @@ int flags_hdr_mode = 0;
#define DENY_RULE_STR "deny"
#define DEFAULT_Q_VALUE 10
-int default_q_value = DEFAULT_Q_VALUE;
+int _redirect_q_value = DEFAULT_Q_VALUE;
/* sruid to get internal uid */
sruid_t _redirect_sruid;
@@ -91,7 +91,7 @@ static param_export_t params[] = {
{"acc_db_table", PARAM_STRING, &acc_db_table },
{"bflags", INT_PARAM, &bflags },
{"flags_hdr_mode", INT_PARAM, &flags_hdr_mode },
- {"default_q_value", INT_PARAM, &default_q_value },
+ {"q_value", INT_PARAM, &_redirect_q_value },
{0, 0, 0}
};