Compare commits

...

2 Commits

Author SHA1 Message Date
ajay-sabat f5bdd3ffcc
Merge ea808c2cb8 into 5cb74797fe 2025-01-17 16:40:19 +00:00
Ajay Sabat ea808c2cb8 Fix [switch_core_media.c]: SRTP media crypto keys are not working
Comparing the user given cypto type string to both name and alias of the default crypto suites supported by the system.
2020-11-11 12:46:36 -08:00
1 changed files with 1 additions and 1 deletions

View File

@ -1647,7 +1647,7 @@ static void switch_core_session_parse_crypto_prefs(switch_core_session_t *sessio
int ok = 0;
for (j = 0; j < CRYPTO_INVALID; j++) {
if (!strcasecmp(fields[i], SUITES[j].name)) {
if (!strcasecmp(fields[i], SUITES[j].name) || !strcasecmp(fields[i], SUITES[j].alias)) {
smh->crypto_suite_order[k++] = SUITES[j].type;
ok++;
break;