From 5fb42ce09f9e2325d69c1d19e6b484f32717cc0c Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Tue, 15 Nov 2022 16:30:07 +0100 Subject: [PATCH] When configuring a linphone account, set the core media encryption to SRTP by default --- Classes/AssistantView.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Classes/AssistantView.m b/Classes/AssistantView.m index 13bbfc142..eaec0af23 100644 --- a/Classes/AssistantView.m +++ b/Classes/AssistantView.m @@ -521,6 +521,10 @@ static UICompositeViewDescription *compositeDescription = nil; #endif linphone_push_notification_config_set_provider(pushConfig, PROVIDER_NAME); + if (strcmp(creatorDomain, "sip.linphone.org")==0) { + linphone_core_set_media_encryption(LC, LinphoneMediaEncryptionSRTP); + } + new_account = linphone_core_create_account(LC, accountParams); linphone_account_params_unref(accountParams);