]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5755 minor regression
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 24 Feb 2014 22:15:44 +0000 (03:15 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 24 Feb 2014 22:15:48 +0000 (03:15 +0500)
src/switch_core_media.c

index e0830fa0cea56a5cd04436d4abfd2b27769d56e3..fec11bb729ffe8ece78c0129b2d26d24104a207b 100644 (file)
@@ -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;
                }
        }