Module: kamailio Branch: 6.1 Commit: c116205815df569fb40d01b989a4958a12bf0710 URL: https://github.com/kamailio/kamailio/commit/c116205815df569fb40d01b989a4958a12bf0710
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-03-05T17:21:22+01:00 tm: disable char substitution for tm uac rpc - undocumented unexpected behaviour - can be enabled with compile option (considered to be modparam if needed) (cherry picked from commit 6796c967ab07616a9e749858de58f5e920ea9fdf) --- Modified: src/modules/tm/rpc_uac.c --- Diff: https://github.com/kamailio/kamailio/commit/c116205815df569fb40d01b989a4958a12bf0710.diff Patch: https://github.com/kamailio/kamailio/commit/c116205815df569fb40d01b989a4958a12bf0710.patch --- diff --git a/src/modules/tm/rpc_uac.c b/src/modules/tm/rpc_uac.c index 67556c09564..3fc5d205a1d 100644 --- a/src/modules/tm/rpc_uac.c +++ b/src/modules/tm/rpc_uac.c @@ -34,6 +34,9 @@ /* RPC substitution char (used in rpc_t_uac headers) */ #define SUBST_CHAR '!' +#ifndef TM_RPC_SUBST_CHAR_ON +#define TM_RPC_SUBST_CHAR_ON 0 +#endif #define TM_RPC_RESPONSE_LIFETIME 300 #define TM_RPC_RESPONSE_TIMERSTEP 10 @@ -739,7 +742,7 @@ static void rpc_t_uac_attrs_helper( < 0) goto error; if(get_hfblock(tattrs->nexthop.len ? &tattrs->nexthop : &tattrs->ruri, - faked_msg.headers, PROTO_NONE, ssock, 1, &hfb) + faked_msg.headers, PROTO_NONE, ssock, TM_RPC_SUBST_CHAR_ON, &hfb) < 0) { rpc->fault(c, 500, "Failed to build headers block"); goto error; _______________________________________________ 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!
