Skip to content

Commit 5aee265

Browse files
Merge pull request #2913 from signalwire/fix_from_addr
[core] Fix initialization of rtp_session from_addr
2 parents 7034d6c + 1258044 commit 5aee265

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/switch_rtp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4670,6 +4670,9 @@ SWITCH_DECLARE(switch_rtp_t *) switch_rtp_new(const char *rx_host,
46704670
goto end;
46714671
}
46724672

4673+
/* 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 */
4674+
switch_cp_addr(rtp_session->from_addr, rtp_session->remote_addr);
4675+
46734676
end:
46744677

46754678
if (rtp_session) {

0 commit comments

Comments
 (0)