Browse code

uac_redirect: renamed the new default_q_value param to q_value

Daniel-Constantin Mierla authored on 09/03/2021 12:42:51
Showing 2 changed files
... ...
@@ -33,7 +33,7 @@
33 33
 
34 34
 
35 35
 extern sruid_t _redirect_sruid;
36
-extern int default_q_value;
36
+extern int _redirect_q_value;
37 37
 
38 38
 #define MAX_CONTACTS_PER_REPLY   16
39 39
 
... ...
@@ -147,7 +147,7 @@ static int sort_contacts(hdr_field_t *chdr, contact_t **ct_array,
147 147
 			/* does the contact has a q val? */
148 148
 			q_para = ct_list->q;
149 149
 			if (q_para==0 || q_para->body.len==0) {
150
-				q = default_q_value;
150
+				q = _redirect_q_value;
151 151
 			} else {
152 152
 				if (str2q( &q, q_para->body.s, q_para->body.len)!=0) {
153 153
 					LM_ERR("invalid q param\n");
... ...
@@ -54,7 +54,7 @@ int flags_hdr_mode = 0;
54 54
 #define DENY_RULE_STR   "deny"
55 55
 #define DEFAULT_Q_VALUE 10
56 56
 
57
-int default_q_value = DEFAULT_Q_VALUE;
57
+int _redirect_q_value = DEFAULT_Q_VALUE;
58 58
 
59 59
 /* sruid to get internal uid */
60 60
 sruid_t _redirect_sruid;
... ...
@@ -91,7 +91,7 @@ static param_export_t params[] = {
91 91
 	{"acc_db_table",    PARAM_STRING,  &acc_db_table     },
92 92
 	{"bflags",    		INT_PARAM,  &bflags			  },
93 93
 	{"flags_hdr_mode",	INT_PARAM,  &flags_hdr_mode	  },
94
-	{"default_q_value", INT_PARAM,  &default_q_value     },
94
+	{"q_value",         INT_PARAM,  &_redirect_q_value   },
95 95
 	{0, 0, 0}
96 96
 };
97 97