]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6002 -master
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 17 Feb 2014 17:25:19 +0000 (22:25 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 17 Feb 2014 17:25:19 +0000 (22:25 +0500)
src/switch_core_media.c

index c8fc87bc8c230e8272b92a553a58602e68e8cd0d..a55730ba0f02b8e22a996a6fc185386e1a97316c 100644 (file)
@@ -4078,6 +4078,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_proxy_remote_addr(switch_core_
                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Remote address:port [%s:%d] has not changed.\n",
                                                          a_engine->cur_payload_map->remote_sdp_ip, a_engine->cur_payload_map->remote_sdp_port);
                        switch_goto_status(SWITCH_STATUS_BREAK, end);
+               } else if (remote_host && ( (strcmp(remote_host, "0.0.0.0") == 0) ||
+                                                                       (strcmp(a_engine->cur_payload_map->remote_sdp_ip, "0.0.0.0") == 0))) {
+                       
+                       switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,
+                                                         "Remote address changed from [%s] to [%s]. Ignoring...\n",
+                                                         a_engine->cur_payload_map->remote_sdp_ip, remote_host);
+                       switch_goto_status(SWITCH_STATUS_BREAK, end);
                }
 
                if ((rport = switch_channel_get_variable(session->channel, "rtp_remote_audio_rtcp_port"))) {