func startCall()

in AzureCommunicationUI/sdk/AzureCommunicationUICalling/Sources/Service/Calling/AzureCommunicationCalling/CallingSDKWrapper.swift [51:70]


    func startCall(isCameraPreferred: Bool, isAudioPreferred: Bool) async throws {
        logger.debug("Reset Subjects in callingEventsHandler")
        if let callingEventsHandler = self.callingEventsHandler
            as? CallingSDKEventsHandler {
            callingEventsHandler.setupProperties()
        }
        logger.debug( "Starting call")
        if callConfiguration.compositeCallType == .groupCall ||
            callConfiguration.compositeCallType == .teamsMeeting ||
            callConfiguration.compositeCallType == .roomsCall {
            try await joinCall(isCameraPreferred: isCameraPreferred, isAudioPreferred: isAudioPreferred)
        } else if callConfiguration.compositeCallType == .oneToNOutgoing {
            try await outgoingCall(isCameraPreferred: isCameraPreferred, isAudioPreferred: isAudioPreferred)
        } else if callConfiguration.compositeCallType == .oneToOneIncoming {
            try await incomingCall(isCameraPreferred: isCameraPreferred, isAudioPreferred: isAudioPreferred)
        } else {
            logger.error("Unknown calltype access")
            throw CallCompositeInternalError.callJoinFailed
        }
    }