Share via


CallAutomationClient.AnswerCall Method

Definition

Overloads

AnswerCall(AnswerCallOptions, CancellationToken)

Answer an incoming call.

AnswerCall(String, Uri, CancellationToken)

AnswerCall(AnswerCallOptions, CancellationToken)

Source:
CallAutomationClient.cs
Source:
CallAutomationClient.cs

Answer an incoming call.

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

Parameters

options
AnswerCallOptions

Options for the AnswerCall operations.

cancellationToken
CancellationToken

The cancellation token

Returns

Exceptions

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

options is null.

options CallbackUri is not formatted correctly.

Applies to

AnswerCall(String, Uri, CancellationToken)

Source:
CallAutomationClient.cs
Source:
CallAutomationClient.cs
public virtual Azure.Response<Azure.Communication.CallAutomation.AnswerCallResult> AnswerCall (string incomingCallContext, Uri callbackUri, System.Threading.CancellationToken cancellationToken = default);
abstract member AnswerCall : string * Uri * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.AnswerCallResult>
override this.AnswerCall : string * Uri * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.AnswerCallResult>
Public Overridable Function AnswerCall (incomingCallContext As String, callbackUri As Uri, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AnswerCallResult)

Parameters

incomingCallContext
String

The incoming call context

callbackUri
Uri

The callback Uri to receive status notifications.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

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

callbackUri callbackUri is not formatted correctly.

incomingCallContext is null.

Applies to