From f7491959357e88590926b0803c51a9c96b6bd140 Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Wed, 1 Apr 2020 17:25:41 +0200 Subject: [PATCH] set limit to 3 for forbidden push --- Classes/LinphoneAppDelegate.m | 4 ++-- Classes/PhoneMainView.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index c6de201be..577db8a4f 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -164,8 +164,8 @@ self.voipRegistry.desiredPushTypes = [NSSet setWithObject:PKPushTypeVoIP]; int num = [LinphoneManager.instance lpConfigIntForKey:@"unexpected_pushkit" withDefault:0]; - if (num > 2) { - LOGW(@"[PushKit] unexpected pushkit notifications received %d, please clean your sip account.", num); + if (num > 3) { + LOGI(@"[PushKit] unexpected pushkit notifications received %d, please clean your sip account.", num); } // Register for remote notifications. diff --git a/Classes/PhoneMainView.m b/Classes/PhoneMainView.m index 77751a760..6593e6cae 100644 --- a/Classes/PhoneMainView.m +++ b/Classes/PhoneMainView.m @@ -363,7 +363,7 @@ static RootViewManager *rootViewManagerInstance = nil; case LinphoneCallIncomingReceived: if (!CallManager.callKitEnabled) { [self displayIncomingCall:call]; - } else if ([LinphoneManager.instance lpConfigIntForKey:@"unexpected_pushkit" withDefault:0] > 2) { + } else if ([LinphoneManager.instance lpConfigIntForKey:@"unexpected_pushkit" withDefault:0] > 3) { dispatch_async(dispatch_get_main_queue(), ^{ linphone_call_decline(call, LinphoneReasonUnknown); UIAlertController *errView =