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