Prechádzať zdrojové kódy

tm: renamed the new parameter to local_ack_branch_mode

- to reflect better its purpose
Daniel-Constantin Mierla 1 týždeň pred
rodič
commit
1f45a99a89
2 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  1. 2 2
      src/modules/tm/t_msgbuilder.c
  2. 2 2
      src/modules/tm/tm.c

+ 2 - 2
src/modules/tm/t_msgbuilder.c

@@ -73,7 +73,7 @@
 	} while(0)
 
 extern int tm_headers_mode;
-extern int tm_ack_branch_mode;
+extern int tm_local_ack_branch_mode;
 
 /* Build a local request based on a previous request; main
  * customers of this function are local ACK and local CANCEL
@@ -1824,7 +1824,7 @@ int t_calc_branch_ack(struct cell *t, int b, char *branch, int *branch_len)
 	char md5b[MD5_LEN + 1];
 	int i = 0;
 
-	if(tm_ack_branch_mode == 1) {
+	if(tm_local_ack_branch_mode == 1) {
 		memcpy(md5b, t->md5, MD5_LEN);
 		md5b[MD5_LEN] = '\0';
 		for(i = MD5_LEN - 1; i < 4; i--) {

+ 2 - 2
src/modules/tm/tm.c

@@ -253,7 +253,7 @@ int tm_dns_reuse_rcv_socket = 0;
 
 int tm_headers_mode = 0;
 
-int tm_ack_branch_mode = 0;
+int tm_local_ack_branch_mode = 0;
 
 static rpc_export_t tm_rpc[];
 
@@ -516,6 +516,7 @@ static param_export_t params[] = {
 	{"contact_flows_avp", PARAM_STR, &contact_flows_avp},
 	{"disable_6xx_block", PARAM_INT, &default_tm_cfg.disable_6xx},
 	{"local_ack_mode", PARAM_INT, &default_tm_cfg.local_ack_mode},
+	{"local_ack_branch_mode", PARAM_INT, &tm_local_ack_branch_mode},
 	{"failure_reply_mode", PARAM_INT, &failure_reply_mode},
 	{"faked_reply_prio", PARAM_INT, &faked_reply_prio},
 	{"remap_503_500", PARAM_INT, &tm_remap_503_500},
@@ -525,7 +526,6 @@ static param_export_t params[] = {
 	{"e2e_cancel_reason", PARAM_INT, &default_tm_cfg.e2e_cancel_reason},
 	{"e2e_cancel_hop_by_hop", PARAM_INT, &tm_e2e_cancel_hop_by_hop},
 	{"headers_mode", PARAM_INT, &tm_headers_mode},
-	{"ack_branch_mode", PARAM_INT, &tm_ack_branch_mode},
 	{"xavp_contact", PARAM_STR, &ulattrs_xavp_name},
 	{"event_callback", PARAM_STR, &tm_event_callback},
 	{"relay_100", PARAM_INT, &default_tm_cfg.relay_100},