Module: kamailio Branch: master Commit: 1f45a99a890b8be305a666ff71f19d97e83e35eb URL: https://github.com/kamailio/kamailio/commit/1f45a99a890b8be305a666ff71f19d97e83e35eb
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2025-12-11T13:54:06+01:00 tm: renamed the new parameter to local_ack_branch_mode - to reflect better its purpose --- Modified: src/modules/tm/t_msgbuilder.c Modified: src/modules/tm/tm.c --- Diff: https://github.com/kamailio/kamailio/commit/1f45a99a890b8be305a666ff71f19d97e83e35eb.diff Patch: https://github.com/kamailio/kamailio/commit/1f45a99a890b8be305a666ff71f19d97e83e35eb.patch --- diff --git a/src/modules/tm/t_msgbuilder.c b/src/modules/tm/t_msgbuilder.c index 1e665b1366e..43f6d284cd9 100644 --- a/src/modules/tm/t_msgbuilder.c +++ b/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--) { diff --git a/src/modules/tm/tm.c b/src/modules/tm/tm.c index dc0718cc8d8..98023592f96 100644 --- a/src/modules/tm/tm.c +++ b/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}, _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
