다음을 통해 공유


CallAutomationClient class

CallAutomationClient는 Azure Communication CallAutomation 서비스에 대한 클라이언트를 나타냅니다.

생성자

CallAutomationClient(string, CallAutomationClientOptions)

CallAutomationClient 클래스의 새 인스턴스를 초기화합니다.

CallAutomationClient(string, TokenCredential | KeyCredential, CallAutomationClientOptions)

TokenCredential 또는 KeyCredential을 사용하여 CallAutomationClient 클래스의 새 인스턴스를 초기화합니다.

메서드

answerCall(string, string, AnswerCallOptions)

통화에 응답합니다.

connectCall(CallLocator, string, ConnectCallOptions)

회의실 통화에 대한 연결을 만듭니다.

createCall(CallInvite, string, CreateCallOptions)

원본에서 대상 ID로 나가는 호출을 만듭니다.

createGroupCall(CommunicationIdentifier[], string, CreateCallOptions)

원본에서 대상 ID 그룹으로 나가는 호출을 만듭니다.

getCallConnection(string)

CallConnection의 새 인스턴스를 초기화합니다.

getCallRecording()

CallRecording의 새 인스턴스를 초기화합니다.

getSourceIdentity()

통화 만들기 및 응답에 사용되는 원본 ID 가져오기

redirectCall(string, CallInvite, OperationOptions)

통화를 리디렉션합니다.

rejectCall(string, RejectCallOptions)

통화를 거부합니다.

생성자 세부 정보

CallAutomationClient(string, CallAutomationClientOptions)

CallAutomationClient 클래스의 새 인스턴스를 초기화합니다.

new CallAutomationClient(connectionString: string, options?: CallAutomationClientOptions)

매개 변수

connectionString

string

Azure Communication Service 리소스에 연결할 연결 문자열입니다. 예: "endpoint=https://contoso.eastus.communications.azure.net/; accesskey=secret";

options
CallAutomationClientOptions

선택적. HTTP 파이프라인을 구성하는 옵션입니다.

CallAutomationClient(string, TokenCredential | KeyCredential, CallAutomationClientOptions)

TokenCredential 또는 KeyCredential을 사용하여 CallAutomationClient 클래스의 새 인스턴스를 초기화합니다.

new CallAutomationClient(endpoint: string, credential: TokenCredential | KeyCredential, options?: CallAutomationClientOptions)

매개 변수

endpoint

string

서비스의 엔드포인트(예: https://contoso.eastus.communications.azure.net)입니다.

credential

TokenCredential | KeyCredential

서비스에 대한 요청을 인증하는 데 사용되는 TokenCredential 또는 KeyCredential입니다.

options
CallAutomationClientOptions

선택적. HTTP 파이프라인을 구성하는 옵션입니다.

메서드 세부 정보

answerCall(string, string, AnswerCallOptions)

통화에 응답합니다.

function answerCall(incomingCallContext: string, callbackUrl: string, options?: AnswerCallOptions): Promise<CallResult>

매개 변수

incomingCallContext

string

호출과 연결된 컨텍스트입니다.

callbackUrl

string

콜백 URL입니다.

options
AnswerCallOptions

추가 요청 옵션에는 answerCall api 옵션이 포함됩니다.

반환

Promise<CallResult>

connectCall(CallLocator, string, ConnectCallOptions)

회의실 통화에 대한 연결을 만듭니다.

function connectCall(callLocator: CallLocator, callbackUrl: string, options?: ConnectCallOptions): Promise<CallResult>

매개 변수

callLocator
CallLocator

로케이터를 호출하여 연결을 만듭니다.

callbackUrl

string

콜백 URL

options
ConnectCallOptions

추가 요청 옵션에는 연결 api 옵션이 포함됩니다.

반환

Promise<CallResult>

createCall(CallInvite, string, CreateCallOptions)

원본에서 대상 ID로 나가는 호출을 만듭니다.

function createCall(targetParticipant: CallInvite, callbackUrl: string, options?: CreateCallOptions): Promise<CallResult>

매개 변수

targetParticipant
CallInvite

단일 대상입니다.

callbackUrl

string

콜백 URL입니다.

options
CreateCallOptions

추가 요청 옵션에는 createCallConnection api 옵션이 포함됩니다.

반환

Promise<CallResult>

createGroupCall(CommunicationIdentifier[], string, CreateCallOptions)

원본에서 대상 ID 그룹으로 나가는 호출을 만듭니다.

function createGroupCall(targetParticipants: CommunicationIdentifier[], callbackUrl: string, options?: CreateCallOptions): Promise<CallResult>

매개 변수

targetParticipants

CommunicationIdentifier[]

대상 ID 그룹입니다.

callbackUrl

string

콜백 URL입니다.

options
CreateCallOptions

추가 요청 옵션에는 createCallConnection api 옵션이 포함됩니다.

반환

Promise<CallResult>

getCallConnection(string)

CallConnection의 새 인스턴스를 초기화합니다.

function getCallConnection(callConnectionId: string): CallConnection

매개 변수

callConnectionId

string

CallConnection 인스턴스의 CallConnection ID입니다. (예: 421CONTOSO-cRD6-4RDc-a078-99dRANDOMf).

반환

getCallRecording()

CallRecording의 새 인스턴스를 초기화합니다.

function getCallRecording(): CallRecording

반환

getSourceIdentity()

통화 만들기 및 응답에 사용되는 원본 ID 가져오기

function getSourceIdentity(): undefined | CommunicationUserIdentifier

반환

redirectCall(string, CallInvite, OperationOptions)

통화를 리디렉션합니다.

function redirectCall(incomingCallContext: string, targetParticipant: CallInvite, options?: OperationOptions): Promise<void>

매개 변수

incomingCallContext

string

호출과 연결된 컨텍스트입니다.

targetParticipant
CallInvite

호출을 리디렉션할 대상 ID입니다.

options
OperationOptions

추가 요청 옵션에는 redirectCall api 옵션이 포함됩니다.

반환

Promise<void>

rejectCall(string, RejectCallOptions)

통화를 거부합니다.

function rejectCall(incomingCallContext: string, options?: RejectCallOptions): Promise<void>

매개 변수

incomingCallContext

string

호출과 연결된 컨텍스트입니다.

options
RejectCallOptions

추가 요청 옵션에는 rejectCall api 옵션이 포함됩니다.

반환

Promise<void>