mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
fix call not be ended
This commit is contained in:
parent
bcb2112ffd
commit
13535fa2c4
2 changed files with 11 additions and 1 deletions
|
|
@ -332,6 +332,11 @@ import AVFoundation
|
|||
}
|
||||
}
|
||||
|
||||
@objc func removeAllCallInfos() {
|
||||
providerDelegate.callInfos.removeAll()
|
||||
providerDelegate.uuids.removeAll()
|
||||
}
|
||||
|
||||
// To be removed.
|
||||
static func configAudioSession(audioSession: AVAudioSession) {
|
||||
do {
|
||||
|
|
@ -462,7 +467,11 @@ class CoreManager: CoreDelegate {
|
|||
|
||||
if (CallManager.callKitEnabled()) {
|
||||
// end CallKit
|
||||
let uuid = CallManager.instance().providerDelegate.uuids["\(callId!)"]
|
||||
var uuid = CallManager.instance().providerDelegate.uuids["\(callId!)"]
|
||||
if uuid == nil {
|
||||
// the call not yet connected
|
||||
uuid = CallManager.instance().providerDelegate.uuids[""]
|
||||
}
|
||||
if (uuid != nil) {
|
||||
let transaction = CXTransaction(action:
|
||||
CXEndCallAction(call: uuid!))
|
||||
|
|
|
|||
|
|
@ -311,6 +311,7 @@
|
|||
LOGI(@"%@", NSStringFromSelector(_cmd));
|
||||
LinphoneManager.instance.conf = TRUE;
|
||||
linphone_core_terminate_all_calls(LC);
|
||||
[CallManager.instance removeAllCallInfos];
|
||||
|
||||
// !!! Will be removed after push notification job finished
|
||||
// destroyLinphoneCore automatically unregister proxies but if we are using
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue