]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11896: [core] fix media bug add on outbound
authorMike Jerris <mike@signalwire.com>
Mon, 24 Jun 2019 15:19:09 +0000 (11:19 -0400)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Jul 2019 20:27:11 +0000 (00:27 +0400)
src/switch_core_media_bug.c

index f30bf4ac23f2811c1aecb42daac8c20bca2add30..727d2bccbeee70ff12a4fd4daeea0c64da0dfaba 100644 (file)
@@ -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;
                }