From b41d3a2c4a9759dc72c6e48cb8e316a09df3cd0f Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 25 Feb 2014 03:15:44 +0500 Subject: [PATCH] FS-5755 minor regression --- src/switch_core_media.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index e0830fa0ce..fec11bb729 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -2753,8 +2753,9 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s return 0; } - if ((var = switch_channel_get_variable(session->channel, "rtp_secure_media"))) { - if (!switch_true(var)) { + if (sdp_type == SDP_TYPE_REQUEST && (var = switch_channel_get_variable(session->channel, "rtp_secure_media"))) { + if (!switch_true(var) && strcasecmp(var, SWITCH_RTP_CRYPTO_KEY_32) && + strcasecmp(var, SWITCH_RTP_CRYPTO_KEY_80) && strcasecmp(var, SWITCH_RTP_CRYPTO_KEY_8)) { got_crypto = -1; } }