mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
end call when registration failed
This commit is contained in:
parent
ed0fe3bb69
commit
7936214997
1 changed files with 4 additions and 3 deletions
|
|
@ -92,9 +92,10 @@ class ProviderDelegate: NSObject {
|
|||
provider.reportNewIncomingCall(with: uuid, update: update) { error in
|
||||
if error == nil {
|
||||
if CallManager.instance().endCallkit {
|
||||
CallManager.instance().providerDelegate.endCall(uuid: uuid)
|
||||
} else {
|
||||
CallManager.instance().providerDelegate.endCallNotExist(uuid: uuid, timeout: .now() + 20)
|
||||
let call = CallManager.instance().lc?.getCallByCallid(callId: callId!)
|
||||
if (call?.state == .PushIncomingReceived) {
|
||||
try? call?.terminate()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Log.directLog(BCTBX_LOG_ERROR, text: "CallKit: cannot complete incoming call with call-id: [\(String(describing: callId))] and UUID: [\(uuid.description)] from [\(handle)] caused by [\(error!.localizedDescription)]")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue