From: Jakub Karolczyk Date: Sun, 14 Sep 2025 14:52:35 +0000 (+0100) Subject: [core] Fix initialization of rtp_session from_addr X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2913%2Fhead;p=thirdparty%2Ffreeswitch.git [core] Fix initialization of rtp_session from_addr --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 46e13253b7..28cd41383c 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -4670,6 +4670,9 @@ SWITCH_DECLARE(switch_rtp_t *) switch_rtp_new(const char *rx_host, goto end; } + /* once we have the remote_addr set, change from_addr to it, since this is the one we should expect incoming packets from later on */ + switch_cp_addr(rtp_session->from_addr, rtp_session->remote_addr); + end: if (rtp_session) {