This PR is for a use case when Kamailio is listening dummy network interface and tcp_reuse_port is not used.
In this case, a new TCP connection will be sent from an IP address not listened by Kamailio.

But if you enable tcp_reuse_port=yes in this case new outbound TCP connection will be from the correct IP address.

This PR allows create a new TCP connection from the IP address listened by the Kamailio. In case when Kamailio listens on "dummy" interface.

@ivanuschak could comment about

-			*from = &si->su;
+			memcpy(*from, &si->su, sockaddru_len(si->su));


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3925/c2236443326@github.com>