From ea808c2cb877d3ed6542f94d76e355e27b93fdd2 Mon Sep 17 00:00:00 2001 From: Ajay Sabat Date: Wed, 11 Nov 2020 12:46:36 -0800 Subject: [PATCH] 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. --- src/switch_core_media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index e0416e0768..448bacfb23 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -1761,7 +1761,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;