FS-5755 Fix regression if rtp_secure_media=false, it will force encryption.
This commit is contained in:
parent
411a76020a
commit
84c0680153
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue