From 98cff8ad3870d31d6757970d7a5cc74d72ba3b49 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 17 Feb 2014 22:32:41 +0500 Subject: [PATCH] FS-6002 --resolve there is no switch_core_media in stable, this should do it --- src/mod/endpoints/mod_sofia/sofia_glue.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 5f6067848c..24ebe36494 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -1697,6 +1697,12 @@ switch_status_t sofia_glue_tech_proxy_remote_addr(private_object_t *tech_pvt, co switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_DEBUG, "Remote address:port [%s:%d] has not changed.\n", tech_pvt->remote_sdp_audio_ip, tech_pvt->remote_sdp_audio_port); switch_goto_status(SWITCH_STATUS_BREAK, end); + } else if (remote_host && ( (strcmp(remote_host, "0.0.0.0") == 0) || + (strcmp(tech_pvt->remote_sdp_audio_ip, "0.0.0.0") == 0))) { + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_DEBUG, + "Remote address changed from [%s] to [%s]. Ignoring...\n", + tech_pvt->remote_sdp_audio_ip, remote_host); + switch_goto_status(SWITCH_STATUS_BREAK, end); } if ((rport = switch_channel_get_variable(tech_pvt->channel, "sip_remote_audio_rtcp_port"))) {