Share via


CallAutomationClient.CreateCall Method

Definition

Overloads

CreateCall(CreateCallOptions, CancellationToken)

Create an outgoing call to target invitee.

CreateCall(CallInvite, Uri, CancellationToken)

Create an outgoing call to target invitee.

CreateCall(CreateCallOptions, CancellationToken)

Source:
CallAutomationClient.cs
Source:
CallAutomationClient.cs

Create an outgoing call to target invitee.

public virtual Azure.Response<Azure.Communication.CallAutomation.CreateCallResult> CreateCall (Azure.Communication.CallAutomation.CreateCallOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateCall : Azure.Communication.CallAutomation.CreateCallOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>
override this.CreateCall : Azure.Communication.CallAutomation.CreateCallOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>
Public Overridable Function CreateCall (options As CreateCallOptions, Optional cancellationToken As CancellationToken = Nothing) As 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

CreateCall(CallInvite, Uri, CancellationToken)

Source:
CallAutomationClient.cs
Source:
CallAutomationClient.cs

Create an outgoing call to target invitee.

public virtual Azure.Response<Azure.Communication.CallAutomation.CreateCallResult> CreateCall (Azure.Communication.CallAutomation.CallInvite callInvite, Uri callbackUri, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateCall : Azure.Communication.CallAutomation.CallInvite * Uri * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>
override this.CreateCall : Azure.Communication.CallAutomation.CallInvite * Uri * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.CreateCallResult>
Public Overridable Function CreateCall (callInvite As CallInvite, callbackUri As Uri, Optional cancellationToken As CancellationToken = Nothing) As 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