From 125804412583872b8988f303d5d74c4449d747ac Mon Sep 17 00:00:00 2001 From: Jakub Karolczyk Date: Sun, 14 Sep 2025 15:52:35 +0100 Subject: [PATCH] [core] Fix initialization of rtp_session from_addr --- src/switch_rtp.c | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.47.3