SipRoutingClient.GetTrunkAsync(String, CancellationToken) 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.
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.