Module: kamailio
Branch: 5.6
Commit: d13a0b21d3a2d9c5f453957490c06d924af7e043
URL:
https://github.com/kamailio/kamailio/commit/d13a0b21d3a2d9c5f453957490c06d9…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-05-18T10:56:54Z
dispatcher: fix force send socket functionality, was not working in some TCP scenarios
(cherry picked from commit 6183319381573e42b882d05ae1748539f7547d8c)
(cherry picked from commit da7944e2f4c7e6f344d125da325c388e1836662f)
---
Modified: src/modules/dispatcher/dispatch.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d13a0b21d3a2d9c5f453957490c06d9…
Patch:
https://github.com/kamailio/kamailio/commit/d13a0b21d3a2d9c5f453957490c06d9…
---
diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c
index 8f06f6f5cbb..7ed3d09fc71 100644
--- a/src/modules/dispatcher/dispatch.c
+++ b/src/modules/dispatcher/dispatch.c
@@ -1859,7 +1859,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;
}