]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
log auto adjust ip and port separate so it doesn't get clobbered on hold/update events
authorBrian West <brian@freeswitch.org>
Tue, 28 May 2013 21:25:39 +0000 (16:25 -0500)
committerBrian West <brian@freeswitch.org>
Tue, 28 May 2013 21:25:39 +0000 (16:25 -0500)
src/switch_rtp.c

index 2080ba528754eac1f524f1b118482c8343d94dbd..8f2201924c3e6f31aa3a5a5dad90ccb191086f4d 100644 (file)
@@ -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;