diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index c1b8e7d6d..e6444ed08 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -2626,6 +2626,7 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) { if (linphone_core_get_calls_nb(theLinphoneCore) < 1 && floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_9_x_Max && self.providerDelegate.callKitCalls < 1) { + self.providerDelegate.callKitCalls++; NSUUID *uuid = [NSUUID UUID]; [LinphoneManager.instance.providerDelegate.uuids setObject:uuid forKey:@""]; LinphoneManager.instance.providerDelegate.pendingAddr = linphone_address_clone(iaddr); diff --git a/Classes/ProviderDelegate.m b/Classes/ProviderDelegate.m index a182b8f59..9f02e5d17 100644 --- a/Classes/ProviderDelegate.m +++ b/Classes/ProviderDelegate.m @@ -97,7 +97,6 @@ - (void)provider:(CXProvider *)provider performStartCallAction:(CXStartCallAction *)action { LOGD(@"CallKit : Starting Call"); - self.callKitCalls++; // To restart Audio Unit [self configAudioSession:[AVAudioSession sharedInstance]]; [action fulfill];