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.
This commit is contained in:
parent
0f7ba14333
commit
ea808c2cb8
|
@ -1761,7 +1761,7 @@ static void switch_core_session_parse_crypto_prefs(switch_core_session_t *sessio
|
||||||
int ok = 0;
|
int ok = 0;
|
||||||
|
|
||||||
for (j = 0; j < CRYPTO_INVALID; j++) {
|
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;
|
smh->crypto_suite_order[k++] = SUITES[j].type;
|
||||||
ok++;
|
ok++;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue