@ivanuschak commented on this pull request.
@@ -204,6 +204,10 @@ static inline int
msg_send_buffer(
goto error;
}
+ if(!dst->id) {
+ dst->id = con->id;
+ }
+
This change is needed for siptrace. Below in this file at the line 334 `dst` is passed as
an argument to the `SREV_NET_DATA_SENT` related function call.
If the tcp connection ID is assigned to `dst` param then the tcp_connection search is
correct and we have a proper siptrace with HAPROXY IP addresses (IP address of client and
IP address of HAPROXY) , otherwise tcp connection search is based on real IP addresses (IP
addresses of haproxy and IP address of kamailio) and in this case the siptrace contains
not the correct IP-addresses.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3731#discussion_r1470968031
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3731/review/1850820243(a)github.com>