forked from mirrors/linphone-iphone
set limit to 3 for forbidden push
This commit is contained in:
parent
8075595fbe
commit
f749195935
2 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue