From 417ef16de5ca4a0b15da6b9ea6f8fbabc741ae48 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 19 Dec 2013 21:32:37 +0500 Subject: [PATCH] FS-6054 --- src/switch_core_media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 7ecaa5123a..56c8d72ad4 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -3739,7 +3739,7 @@ SWITCH_DECLARE(int) switch_core_media_toggle_hold(switch_core_session_t *session if (!switch_media_handle_test_media_flag(smh, SCMF_DISABLE_RTP_AUTOADJ) && !((val = switch_channel_get_variable(session->channel, "disable_rtp_auto_adjust")) && switch_true(val)) && - !switch_channel_test_flag(session->channel, CF_WEBRTC)) { + !switch_channel_test_flag(session->channel, CF_WEBRTC) && a_engine->rtp_session) { /* Reactivate the NAT buster flag. */ switch_rtp_set_flag(a_engine->rtp_session, SWITCH_RTP_FLAG_AUTOADJ); }