From ecd8aabf5d5c76c8a6528912c702f32dda2bec47 Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 28 May 2013 16:25:39 -0500 Subject: [PATCH] log auto adjust ip and port separate so it doesn't get clobbered on hold/update events --- src/switch_rtp.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.47.2