set limit to 3 for forbidden push

This commit is contained in:
Danmei Chen 2020-04-01 17:25:41 +02:00
parent 8075595fbe
commit f749195935
2 changed files with 3 additions and 3 deletions

View file

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

View file

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