共用方式為


SipTrunkRoute Constructors

Definition

Overloads

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

Source:
SipTrunkRoute.cs
Source:
SipTrunkRoute.cs

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}$".

<param name="description">Description of the routing setting for the users.</param><param name="trunks">List of trunks on the route.</param>
description
String

Exceptions

name or numberPattern is null.

Applies to

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

Source:
SipTrunkRoute.cs

Initializes a new instance of SipTrunkRoute.

public SipTrunkRoute(string name, string numberPattern, string description = default, System.Collections.Generic.IEnumerable<string> trunks = default, string callerIdOverride = default);
new Azure.Communication.PhoneNumbers.SipRouting.SipTrunkRoute : string * string * string * seq<string> * 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, Optional callerIdOverride As 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

Description of the routing setting for the users.

trunks
IEnumerable<String>

List of trunks on the route.

callerIdOverride
String

This value will override caller ID of outgoing call specified at runtime.

Exceptions

name or numberPattern is null.

Applies to