From: matteo brancaleoni Date: Mon, 23 Nov 2015 11:24:29 +0000 (+0100) Subject: FS-8565 update initial rtp from address when auto changing port so we can avoid false... X-Git-Tag: v1.6.6~1^2~69^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7b8394e501ae061926a78a1d45a0be8aafb6907;p=thirdparty%2Ffreeswitch.git FS-8565 update initial rtp from address when auto changing port so we can avoid false later comparisons --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index c04d626a59..d9bb3424ed 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -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);