FS-5755 minor regression

This commit is contained in:
Anthony Minessale 2014-02-25 03:15:44 +05:00
parent 3464c651c0
commit b41d3a2c4a
1 changed files with 3 additions and 2 deletions

View 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;
}
}