共用方式為


SipTrunkRoute(String, String, String, IEnumerable<String>) Constructor

Definition

Initializes a new instance of SipTrunkRoute.

public SipTrunkRoute (string name, string numberPattern, string description = default, System.Collections.Generic.IEnumerable<string> trunks = default);
new Azure.Communication.PhoneNumbers.SipRouting.SipTrunkRoute : string * string * string * seq<string> -> Azure.Communication.PhoneNumbers.SipRouting.SipTrunkRoute
Public Sub New (name As String, numberPattern As String, Optional description As String = Nothing, Optional trunks As IEnumerable(Of String) = Nothing)

Parameters

name
String

Name of the route.

numberPattern
String

Regex number pattern for routing calls. .NET regex format is supported. The regex should match only digits with an optional '+' prefix without spaces. I.e. "^+[1-9][0-9]{3,23}$".

description
String

Exceptions

name or numberPattern is null.

Applies to