mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 16:15:04 +00:00
add optional rtp_secure_media_suites variable clobbered by rtp_secure_media with mandatory|optional:<suites>
This commit is contained in:
parent
9611390244
commit
656cb2ac03
@ -1101,6 +1101,10 @@ static void switch_core_session_parse_crypto_prefs(switch_core_session_t *sessio
|
|||||||
*suites++ = '\0';
|
*suites++ = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (zstr(suites)) {
|
||||||
|
suites = (char *) switch_channel_get_variable(session->channel, "rtp_secure_media_suites");
|
||||||
|
}
|
||||||
|
|
||||||
if (zstr(val) || !strcasecmp(val, "optional")) {
|
if (zstr(val) || !strcasecmp(val, "optional")) {
|
||||||
smh->crypto_mode = CRYPTO_MODE_OPTIONAL;
|
smh->crypto_mode = CRYPTO_MODE_OPTIONAL;
|
||||||
} else if (switch_true(val) || !strcasecmp(val, "mandatory")) {
|
} else if (switch_true(val) || !strcasecmp(val, "mandatory")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user