]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] Fix initialization of rtp_session from_addr 2913/head
authorJakub Karolczyk <jakub.karolczyk@signalwire.com>
Sun, 14 Sep 2025 14:52:35 +0000 (15:52 +0100)
committerJakub Karolczyk <jakub.karolczyk@signalwire.com>
Sun, 14 Sep 2025 14:52:35 +0000 (15:52 +0100)
src/switch_rtp.c

index 46e13253b73ac6a689f56d2ee696a05e7e8893ad..28cd41383cf7d5d01af7df11adb529216d946a83 100644 (file)
@@ -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) {