CallAutomationClient.AnswerCallAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AnswerCallAsync(AnswerCallOptions, CancellationToken) |
Answer an incoming call. |
AnswerCallAsync(String, Uri, CancellationToken) |
AnswerCallAsync(AnswerCallOptions, CancellationToken)
- Source:
- CallAutomationClient.cs
- Source:
- CallAutomationClient.cs
Answer an incoming call.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.AnswerCallResult>> AnswerCallAsync (Azure.Communication.CallAutomation.AnswerCallOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member AnswerCallAsync : Azure.Communication.CallAutomation.AnswerCallOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.AnswerCallResult>>
override this.AnswerCallAsync : Azure.Communication.CallAutomation.AnswerCallOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.AnswerCallResult>>
Public Overridable Function AnswerCallAsync (options As AnswerCallOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AnswerCallResult))
Parameters
- options
- AnswerCallOptions
Options for the Answer Call operation.
- 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
AnswerCallAsync(String, Uri, CancellationToken)
- Source:
- CallAutomationClient.cs
- Source:
- CallAutomationClient.cs
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.AnswerCallResult>> AnswerCallAsync (string incomingCallContext, Uri callbackUri, System.Threading.CancellationToken cancellationToken = default);
abstract member AnswerCallAsync : string * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.AnswerCallResult>>
override this.AnswerCallAsync : string * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.AnswerCallResult>>
Public Overridable Function AnswerCallAsync (incomingCallContext As String, callbackUri As Uri, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
Azure SDK for .NET