When configuring a linphone account, set the core media encryption to SRTP by default

This commit is contained in:
QuentinArguillere 2022-11-15 16:30:07 +01:00
parent 736059f699
commit 5fb42ce09f

View file

@ -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);