FS-8565 update initial rtp from address when auto changing port so we can avoid false later comparisons

This commit is contained in:
matteo brancaleoni 2015-11-23 12:24:29 +01:00
parent 08816959aa
commit d7b8394e50
1 changed files with 1 additions and 0 deletions

View File

@ -2888,6 +2888,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_remote_address(switch_rtp_t *rtp_
switch_mutex_lock(rtp_session->write_mutex);
rtp_session->remote_addr = remote_addr;
switch_cp_addr(rtp_session->rtp_from_addr, rtp_session->remote_addr);
if (change_adv_addr) {
rtp_session->remote_host_str = switch_core_strdup(rtp_session->pool, host);