From 190b31871d3f892fda2dad71bfa68c091724fa90 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 11 Feb 2013 21:25:54 -0600 Subject: [PATCH] fix auto-select of wan.auto when no candidates defined --- src/switch_core_media.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 25cba4de1d..26516af017 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -1853,7 +1853,6 @@ static void check_ice(switch_media_handle_t *smh, switch_media_type_t type, sdp_ if (!engine->cand_acl_count) { engine->cand_acl[engine->cand_acl_count++] = "wan.auto"; switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(smh->session), SWITCH_LOG_WARNING, "NO candidate ACL defined, Defaulting to wan.auto\n"); - goto end; } @@ -1969,8 +1968,6 @@ static void check_ice(switch_media_handle_t *smh, switch_media_type_t type, sdp_ } - end: - if (!got_rtcp_mux) { engine->rtcp_mux = -1; }