Use ZRTP by default when SRTP is disabled.

This commit is contained in:
Guillaume Beraudo 2011-12-15 11:53:28 +01:00
parent 64366d0053
commit 6955003457
2 changed files with 2 additions and 1 deletions

View file

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

View file

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