Module: kamailio
Branch: 5.7
Commit: da7944e2f4c7e6f344d125da325c388e1836662f
URL:
https://github.com/kamailio/kamailio/commit/da7944e2f4c7e6f344d125da325c388…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-05-18T10:56:23Z
dispatcher: fix force send socket functionality, was not working in some TCP scenarios
(cherry picked from commit 6183319381573e42b882d05ae1748539f7547d8c)
---
Modified: src/modules/dispatcher/dispatch.c
---
Diff:
https://github.com/kamailio/kamailio/commit/da7944e2f4c7e6f344d125da325c388…
Patch:
https://github.com/kamailio/kamailio/commit/da7944e2f4c7e6f344d125da325c388…
---
diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c
index 484322f0ec7..87d12b786d2 100644
--- a/src/modules/dispatcher/dispatch.c
+++ b/src/modules/dispatcher/dispatch.c
@@ -1860,7 +1860,8 @@ static inline int ds_push_dst(sip_msg_t *msg, str *uri,
socket_info_t *sock,
break;
}
if(sock) {
- msg->force_send_socket = sock;
+ LM_DBG("set send socket to %.*s\n", sock->sock_str.len,
sock->sock_str.s);
+ set_force_socket(msg, sock);
}
return 0;
}