From c89f200b400a2429fd9986430f86a7ba077d05e2 Mon Sep 17 00:00:00 2001 From: Mike Jerris Date: Mon, 24 Jun 2019 11:19:09 -0400 Subject: [PATCH] FS-11896: [core] fix media bug add on outbound --- src/switch_core_media_bug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/switch_core_media_bug.c b/src/switch_core_media_bug.c index f30bf4ac23..727d2bccbe 100644 --- a/src/switch_core_media_bug.c +++ b/src/switch_core_media_bug.c @@ -828,8 +828,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_add(switch_core_session_t if (!switch_channel_media_ready(session->channel)) { - if ((switch_channel_direction(session->channel) == SWITCH_CALL_DIRECTION_OUTBOUND) || - switch_channel_pre_answer(session->channel) != SWITCH_STATUS_SUCCESS) { + if (switch_channel_pre_answer(session->channel) != SWITCH_STATUS_SUCCESS) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Cannot establish media. Media bug add failed.\n"); return SWITCH_STATUS_FALSE; }