From 3e499da329b954ef1bbf9dcd3f02060f380cf83e Mon Sep 17 00:00:00 2001
From: Anthony Minessale <anthm@freeswitch.org>
Date: Wed, 26 Feb 2014 21:35:38 +0500
Subject: [PATCH] FS-6275 --resolve  I don't think this is a problem with
 latest firefox + latest master but i'll ensure it with this change.  Anyone
 into testing webrtc should always use master until an official 1.4 is
 released.

---
 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 ffb0b306bd..3a7207be1d 100644
--- a/src/switch_core_media.c
+++ b/src/switch_core_media.c
@@ -3144,7 +3144,7 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
 				//switch_channel_set_variable(session->channel, "rtp_secure_media", "true");
 			}
 
-			if (got_crypto == -1 && got_savp && !got_avp) {
+			if (got_crypto == -1 && got_savp && !got_avp && !got_webrtc) {
 				switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Declining invite with only SAVP because secure media is administratively disabled\n");
 				match = 0;
 				break;