Partager via


CallMedia.SendDtmfTones Method

Definition

Overloads

SendDtmfTones(SendDtmfTonesOptions, CancellationToken)

Send Dtmf tones with sendDtmfTonesOptions and configurations.

SendDtmfTones(IEnumerable<DtmfTone>, CommunicationIdentifier, CancellationToken)

Send Dtmf tones.

SendDtmfTones(SendDtmfTonesOptions, CancellationToken)

Source:
CallMedia.cs
Source:
CallMedia.cs

Send Dtmf tones with sendDtmfTonesOptions and configurations.

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

Parameters

options
SendDtmfTonesOptions

An optional object containing SendDtmfTones options and configurations.

cancellationToken
CancellationToken

An optional CancellationToken to cancel the request.

Returns

Returns a Response containing a SendDtmfResult object indicating the result of the send operation.

Applies to

SendDtmfTones(IEnumerable<DtmfTone>, CommunicationIdentifier, CancellationToken)

Source:
CallMedia.cs
Source:
CallMedia.cs

Send Dtmf tones.

public virtual Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult> SendDtmfTones (System.Collections.Generic.IEnumerable<Azure.Communication.CallAutomation.DtmfTone> tones, Azure.Communication.CommunicationIdentifier targetParticipant, System.Threading.CancellationToken cancellationToken = default);
abstract member SendDtmfTones : seq<Azure.Communication.CallAutomation.DtmfTone> * Azure.Communication.CommunicationIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult>
override this.SendDtmfTones : seq<Azure.Communication.CallAutomation.DtmfTone> * Azure.Communication.CommunicationIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.SendDtmfTonesResult>
Public Overridable Function SendDtmfTones (tones As IEnumerable(Of DtmfTone), targetParticipant As CommunicationIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SendDtmfTonesResult)

Parameters

tones
IEnumerable<DtmfTone>

A list of Tones to be sent.

targetParticipant
CommunicationIdentifier

A target participant identifier for starting continuous Dtmf recognition.

cancellationToken
CancellationToken

An optional CancellationToken to cancel the request.

Returns

Returns a Response containing a SendDtmfResult object indicating the result of the send operation.

Applies to