mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 00:41:41 +00:00
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 (!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;
|
needs_crypto = 1;
|
||||||
|
|
||||||
switch_channel_set_variable(session->channel, "rtp_crypto_mandatory", "true");
|
switch_channel_set_variable(session->channel, "rtp_crypto_mandatory", "true");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user