From: Brian West Date: Tue, 28 May 2013 21:25:39 +0000 (-0500) Subject: log auto adjust ip and port separate so it doesn't get clobbered on hold/update events X-Git-Tag: v1.4.1~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ecd8aabf5d5c76c8a6528912c702f32dda2bec47;p=thirdparty%2Ffreeswitch.git log auto adjust ip and port separate so it doesn't get clobbered on hold/update events --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 2080ba5287..8f2201924c 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -932,9 +932,11 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d if (channel) { switch_channel_set_variable(channel, "remote_media_ip_reported", switch_channel_get_variable(channel, "remote_media_ip")); switch_channel_set_variable(channel, "remote_media_ip", host); + switch_channel_set_variable(channel, "rtp_auto_adjust_ip", host); switch_snprintf(adj_port, sizeof(adj_port), "%u", port); switch_channel_set_variable(channel, "remote_media_port_reported", switch_channel_get_variable(channel, "remote_media_port")); switch_channel_set_variable(channel, "remote_media_port", adj_port); + switch_channel_set_variable(channel, "rtp_auto_adjust_port", adj_port); switch_channel_set_variable(channel, "rtp_auto_candidate_adjust", "true"); } rtp_session->auto_adj_used = 1;