mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Use ZRTP by default when SRTP is disabled.
This commit is contained in:
parent
64366d0053
commit
6955003457
2 changed files with 2 additions and 1 deletions
|
|
@ -597,7 +597,7 @@ void networkReachabilityCallBack(SCNetworkReachabilityRef target, SCNetworkReach
|
|||
ms_warning("Disable video for phones prior to iPhone 3GS");
|
||||
}
|
||||
bool enableSrtp = [[NSUserDefaults standardUserDefaults] boolForKey:@"enable_srtp_preference"];
|
||||
linphone_core_set_media_encryption(theLinphoneCore, enableSrtp?LinphoneMediaEncryptionSRTP:LinphoneMediaEncryptionNone);
|
||||
linphone_core_set_media_encryption(theLinphoneCore, enableSrtp?LinphoneMediaEncryptionSRTP:LinphoneMediaEncryptionZRTP);
|
||||
|
||||
UIDevice* device = [UIDevice currentDevice];
|
||||
bool backgroundSupported = false;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ default_proxy=-1
|
|||
register_only_when_network_is_up=1
|
||||
auto_net_state_mon=0
|
||||
keepalive_period=30000
|
||||
media_encryption=zrtp
|
||||
|
||||
[rtp]
|
||||
audio_rtp_port=7076
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue