mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 02:58:07 +00:00
Reset CallKit UUID on invite resend
This commit is contained in:
parent
57b7b857bc
commit
ed08190ff4
2 changed files with 8 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import Foundation
|
||||
|
||||
public enum AppGitInfo {
|
||||
public static let branch = "feature/mwi"
|
||||
public static let commit = "742aa8025"
|
||||
public static let branch = "master"
|
||||
public static let commit = "57b7b857b"
|
||||
public static let tag = "6.1.0-alpha"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -433,6 +433,7 @@ class TelecomManager: ObservableObject {
|
|||
func onCallStateChanged(core: Core, call: Call, state cstate: Call.State, message: String) {
|
||||
let callLog = call.callLog
|
||||
let callId = callLog?.callId ?? ""
|
||||
|
||||
if !callInProgress && participantsInvited {
|
||||
if let remoteAddress = call.remoteAddress {
|
||||
let uuid = UUID()
|
||||
|
|
@ -621,6 +622,11 @@ class TelecomManager: ObservableObject {
|
|||
|
||||
Log.info("CallKit: outgoing call started connecting with uuid \(uuid!) and callId \(callId)")
|
||||
providerDelegate.reportOutgoingCallStartedConnecting(uuid: uuid!)
|
||||
} else if callId != "" && cstate == .OutgoingInit {
|
||||
if let uuidTmp = providerDelegate.uuids["\(callId)"] {
|
||||
providerDelegate.uuids.removeValue(forKey: callId)
|
||||
providerDelegate.uuids.updateValue(uuidTmp, forKey: "")
|
||||
}
|
||||
} else {
|
||||
referedToCall = callId
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue