CallAutomationClient.CreateCallAsync Method

Definition

Overloads

CreateCallAsync(CallInvite, Uri, CancellationToken)

Create an outgoing call to target invitee.

CreateCallAsync(CreateCallOptions, CancellationToken)

Create an outgoing call to target invitee.

CreateCallAsync(CallInvite, Uri, CancellationToken)

Source:
CallAutomationClient.cs
Source:
CallAutomationClient.cs

Create an outgoing call to target invitee.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>> CreateCallAsync (Azure.Communication.CallAutomation.CallInvite callInvite, Uri callbackUri, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateCallAsync : Azure.Communication.CallAutomation.CallInvite * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>>
override this.CreateCallAsync : Azure.Communication.CallAutomation.CallInvite * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>>
Public Overridable Function CreateCallAsync (callInvite As CallInvite, callbackUri As Uri, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CreateCallResult))

Parameters

callInvite
CallInvite
callbackUri
Uri
cancellationToken
CancellationToken

Returns

Exceptions

callInvite is null.

callbackUri CallbackUri is not formatted correctly or empty.

The server returned an error. See Message for details returned from the server.

Applies to

CreateCallAsync(CreateCallOptions, CancellationToken)

Source:
CallAutomationClient.cs
Source:
CallAutomationClient.cs

Create an outgoing call to target invitee.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>> CreateCallAsync (Azure.Communication.CallAutomation.CreateCallOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateCallAsync : Azure.Communication.CallAutomation.CreateCallOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>>
override this.CreateCallAsync : Azure.Communication.CallAutomation.CreateCallOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>>
Public Overridable Function CreateCallAsync (options As CreateCallOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CreateCallResult))

Parameters

options
CreateCallOptions

Options for the CreateCall request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

options is null.

options CallbackUri is not formatted correctly.

The server returned an error. See Message for details returned from the server.

Applies to