set max of calls 10

This commit is contained in:
Danmei Chen 2020-03-19 19:09:15 +01:00
parent 7fdfe63632
commit e0759d7912
3 changed files with 3 additions and 3 deletions

View file

@ -1892,6 +1892,7 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) {
factory = factoryIpad;
}
_configDb = linphone_config_new_for_shared_core(kLinphoneMsgNotificationGroupId.UTF8String, @"linphonerc".UTF8String, factory.UTF8String);
lp_config_clean_entry(_configDb, "misc", "max_calls");
}
#pragma mark - Audio route Functions

View file

@ -69,7 +69,7 @@ class ProviderDelegate: NSObject {
providerConfiguration.iconTemplateImageData = UIImage(named: "callkit_logo")?.pngData()
providerConfiguration.supportedHandleTypes = [.generic]
providerConfiguration.maximumCallsPerCallGroup = 3
providerConfiguration.maximumCallsPerCallGroup = 10
providerConfiguration.maximumCallGroups = 2
//not show app's calls in tel's history
@ -135,7 +135,6 @@ extension ProviderDelegate: CXProviderDelegate {
func provider(_ provider: CXProvider, perform action: CXEndCallAction) {
let uuid = action.callUUID
let callId = callInfos[uuid]?.callId
Log.directLog(BCTBX_LOG_MESSAGE, text: "CallKit: Call ended with call-id: \(String(describing: callId)) an UUID: \(uuid.description).")
// remove call infos first, otherwise CXEndCallAction will be called more than onece
if (callId != nil) {
@ -147,6 +146,7 @@ extension ProviderDelegate: CXProviderDelegate {
if (call != nil) {
do {
try call!.terminate() // TODO PAUL
Log.directLog(BCTBX_LOG_MESSAGE, text: "CallKit: Call ended with call-id: \(String(describing: callId)) an UUID: \(uuid.description).")
} catch {
Log.directLog(BCTBX_LOG_ERROR, text: "CallKit: Call ended \(uuid) failed because \(error)")
}

View file

@ -49,7 +49,6 @@ reg_expires=1314000
[misc]
file_transfer_server_url=https://www.linphone.org:444/lft.php
max_calls=3
real_early_media=1
prefer_basic_chat_room=-1