Merge pull request #2913 from signalwire/fix_from_addr

[core] Fix initialization of rtp_session from_addr
This commit is contained in:
Jakub Karolczyk
2025-09-14 16:14:10 +01:00
committed by GitHub

View File

@@ -4670,6 +4670,9 @@ SWITCH_DECLARE(switch_rtp_t *) switch_rtp_new(const char *rx_host,
goto end; 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: end:
if (rtp_session) { if (rtp_session) {