Udostępnij za pośrednictwem


SipRoutingClient.GetTrunkAsync(String, CancellationToken) Method

Definition

Get SipTrunk with provided FQDN.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.PhoneNumbers.SipRouting.SipTrunk>> GetTrunkAsync (string fqdn, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTrunkAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.PhoneNumbers.SipRouting.SipTrunk>>
override this.GetTrunkAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.PhoneNumbers.SipRouting.SipTrunk>>
Public Overridable Function GetTrunkAsync (fqdn As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SipTrunk))

Parameters

fqdn
String

SIP trunk FQDN.

cancellationToken
CancellationToken

Optional cancellation token.

Returns

Trunk configuration.

Exceptions

Route with specified name wasn't found.

Applies to