in Education by
When a user end a call from the CallKit UI the app ends the call and the actual VOIP call also end. But when I end the call from my custom UI the VOIP call ends but the CallKit is still active. How do I end the CallKit session from my custom UI? This is what happens when I press end call on the CallKit UI: func provider(_ provider: CXProvider, perform action: CXEndCallAction) { XCPjsua.shared()?.endCall() action.fulfill() } This is what happens when I end call from my custom UI (Should I close CallKit here?): - (void)endcall { [[XCPjsua sharedXCPjsua] endCall]; } JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
If you want to end the call from your custom UI you should do that through a CXTransaction: let callController = CXCallController() let endCallAction = CXEndCallAction(call: aUUID) callController.request( CXTransaction(action: endCallAction), completion: { error in if let error = error { print("Error: \(error)") } else { print("Success") } }) this will cause provider(_ provider: CXProvider, perform action: CXEndCallAction) to be called. In all other cases (i.e. remote ended, unanswered, etc... - see CXCallEndedReason) you should only report the ended call: let provider: CXProvider provider.reportCall(with: call.uuid, endedAt: Date(), reason: .remoteEnded) in this case provider(_ provider: CXProvider, perform action: CXEndCallAction) will not be called.

Related questions

0 votes
    Which of the following method cancels an ongoing watchPosition call? A - geolocation.getCurrentPosition() B - geolocation. ... geolocation.clearPosition() D - None of the above....
asked Dec 3, 2020 in Technology by JackTerrance
0 votes
    I am learning about OAuth2 and OpenID Connect by experimenting with ASP.NET Core and IdentityServer4. So far ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 21, 2022 in Education by JackTerrance
0 votes
    I have an activity A that launches B with an Intent. (B is a MapActivity and has some async code ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    I'm designing a service that will comprise a cloud-based database (with a UI for us to manage the data), ... sit behind mobile apps. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    The required resources for communication between end systems are reserved for the duration of the session between end ... Circuit switching C. Line switching D. Frequency switching...
asked Jan 6, 2023 in Education by JackTerrance
0 votes
    I'd like to ensure my RAII class is always allocated on the stack. How do I prevent a class from ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    I'd like to ensure my RAII class is always allocated on the stack. How do I prevent a class from ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    How do I call Objective-C code from Swift?...
asked Mar 9, 2021 in Technology by JackTerrance
0 votes
    Currently, I am using the terminal emulator command but I want to share the current session with other Tasksbots and ... of doing this? Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    In Twilio Rest API for each call there is a response which uniquely identify calls Twilio-Request-Id: ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 19, 2022 in Education by JackTerrance
0 votes
    I'm working with a code generator that produces C++ and a CMakeLists.txt file, unfortunately I cannot ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    I gave this CSS class to some input fields .searchField { display: inline-block; } This is their ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    It's a sad fact of life on Scala that if you instantiate a List[Int], you can verify that your ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 4, 2022 in Education by JackTerrance
0 votes
    When I attempt to load data into BigQuery from Google Cloud Storage it asks for the Google Cloud Storage URI ... Developers Console? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    In , forecasts are made taking into account the estimates of current weather related events and ongoing ... proposed by,electromagnetic theory engineering physics,Science nptel...
asked Nov 7, 2021 in Education by JackTerrance
...