From 1bf8383c44b4c1c5702c4f9ab7e518818f006b6d Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Mon, 6 Feb 2017 17:16:13 +0100 Subject: [PATCH] Do not display CallKit error screen but ours --- Classes/LinphoneManager.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 71c7aeaa9..d95fcefe6 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -864,9 +864,12 @@ static void linphone_iphone_display_status(struct _LinphoneCore *lc, const char [self.providerDelegate.uuids removeObjectForKey:callId2]; [self.providerDelegate.calls removeObjectForKey:uuid]; - [self.providerDelegate.provider reportCallWithUUID:uuid - endedAtDate:NULL - reason:CXCallEndedReasonRemoteEnded]; + + CXEndCallAction *act = [[CXEndCallAction alloc] initWithCallUUID:uuid]; + CXTransaction *tr = [[CXTransaction alloc] initWithAction:act]; + [LinphoneManager.instance.providerDelegate.controller requestTransaction:tr + completion:^(NSError *err){ + }]; } } else { if (data != nil && data->notification != nil) {