[sr-dev] git:master:cffd96cc: tm: use BUILD_NEW_LOCAL_VIA after local request event route execution

Daniel-Constantin Mierla miconda at gmail.com
Wed Feb 17 08:24:30 CET 2021


Module: kamailio
Branch: master
Commit: cffd96cc3944fb15aacee97291e4b2c1bb769fbb
URL: https://github.com/kamailio/kamailio/commit/cffd96cc3944fb15aacee97291e4b2c1bb769fbb

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-02-17T08:23:34+01:00

tm: use BUILD_NEW_LOCAL_VIA after local request event route execution

---

Modified: src/modules/tm/uac.c

---

Diff:  https://github.com/kamailio/kamailio/commit/cffd96cc3944fb15aacee97291e4b2c1bb769fbb.diff
Patch: https://github.com/kamailio/kamailio/commit/cffd96cc3944fb15aacee97291e4b2c1bb769fbb.patch

---

diff --git a/src/modules/tm/uac.c b/src/modules/tm/uac.c
index 40d333b7db..ad6a74c8cb 100644
--- a/src/modules/tm/uac.c
+++ b/src/modules/tm/uac.c
@@ -343,7 +343,8 @@ static inline int t_run_local_req(
 
 		LM_DBG("apply new updates with Via to sip msg\n");
 		buf1 = build_req_buf_from_sip_req(&lreq,
-				(unsigned int*)&buf_len1, &request->dst, BUILD_IN_SHM);
+				(unsigned int*)&buf_len1, &request->dst,
+				BUILD_NEW_LOCAL_VIA|BUILD_IN_SHM);
 		if (likely(buf1)){
 			shm_free(*buf);
 			*buf = buf1;




More information about the sr-dev mailing list