Module: kamailio
Branch: master
Commit: 1b97a0271b27794263b3eff61f4acfa81e66069f
URL:
https://github.com/kamailio/kamailio/commit/1b97a0271b27794263b3eff61f4acfa…
Author: Dennis Yurasov <dennis-y(a)yandex-team.ru>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-06-14T07:09:17+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
---
Modified: src/modules/siptrace/siptrace_send.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1b97a0271b27794263b3eff61f4acfa…
Patch:
https://github.com/kamailio/kamailio/commit/1b97a0271b27794263b3eff61f4acfa…
---
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) {