FS-5755 Fix regression if rtp_secure_media=false, it will force encryption.

This commit is contained in:
Marc Olivier Chouinard 2014-03-04 09:42:17 -05:00
parent 411a76020a
commit 84c0680153
1 changed files with 1 additions and 1 deletions

View File

@ -2840,7 +2840,7 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
}
if (!switch_channel_test_flag(session->channel, CF_DTLS) && (var = switch_channel_get_variable(session->channel, "rtp_secure_media"))) {
if (strcasecmp(var, "optional")) {
if (!(switch_false(var) || !strcasecmp(var, "optional"))) {
needs_crypto = 1;
switch_channel_set_variable(session->channel, "rtp_crypto_mandatory", "true");