Module: kamailio
Branch: 5.8
Commit: 2606c4e07e598ea41cb5a8814e3587bf49f94c1e
URL:
https://github.com/kamailio/kamailio/commit/2606c4e07e598ea41cb5a8814e3587b…
Author: Dennis Yurasov <dennis-y(a)yandex-team.ru>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-06-19T10:57:25+02:00
siptrace: add SND_F_FORCE_SOCKET flag if send_sock_name/send_sock_address config
parameters are used
- send_sock_name/send_sock_address is ineffective for tcp based transports if
SND_F_FORCE_SOCKET flag is not set
(cherry picked from commit 1b97a0271b27794263b3eff61f4acfa81e66069f)
---
Modified: src/modules/siptrace/siptrace_send.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2606c4e07e598ea41cb5a8814e3587b…
Patch:
https://github.com/kamailio/kamailio/commit/2606c4e07e598ea41cb5a8814e3587b…
---
diff --git a/src/modules/siptrace/siptrace_send.c b/src/modules/siptrace/siptrace_send.c
index d8a5f974bb3..4f9726de254 100644
--- a/src/modules/siptrace/siptrace_send.c
+++ b/src/modules/siptrace/siptrace_send.c
@@ -357,6 +357,8 @@ int trace_send_duplicate(char *buf, int len, dest_info_t *dst2)
pdst->to.s.sa_family, pdst->proto);
goto error;
}
+ } else {
+ pdst->send_flags.f |= SND_F_FORCE_SOCKET;
}
if(msg_send_buffer(pdst, buf, len, 1) < 0) {