Class SipTrunkRoute
java.lang.Object
com.azure.communication.phonenumbers.siprouting.models.SipTrunkRoute
Represents a trunk route for routing calls.
-
Constructor Summary
ConstructorDescriptionSipTrunkRoute
(String name, String numberPattern) Constructor with required properties. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Gets or sets description of the route.getName()
Get the name property: Gets or sets name of the route.Get the numberPattern property: Gets or sets regex number pattern for routing calls.Get the trunks property: Gets or sets list of SIP trunks for routing calls.setDescription
(String description) Set the description property: Gets or sets description of the route.Set the trunks property: Gets or sets list of SIP trunks for routing calls.
-
Constructor Details
-
SipTrunkRoute
Constructor with required properties.- Parameters:
name
- the name of the route.numberPattern
- the regex number pattern for routing calls.
-
-
Method Details
-
getDescription
Get the description property: Gets or sets description of the route.- Returns:
- the description value.
-
setDescription
Set the description property: Gets or sets description of the route.- Parameters:
description
- the description value to set.- Returns:
- the SipTrunkRoute object itself.
-
getName
Get the name property: Gets or sets name of the route.- Returns:
- the name value.
-
getNumberPattern
Get the numberPattern property: Gets or sets 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}$".- Returns:
- the numberPattern value.
-
getTrunks
Get the trunks property: Gets or sets list of SIP trunks for routing calls. Trunks are represented as FQDN.- Returns:
- the trunks value.
-
setTrunks
Set the trunks property: Gets or sets list of SIP trunks for routing calls. Trunks are represented as FQDN.- Parameters:
trunks
- the trunks value to set.- Returns:
- the SipTrunkRoute object itself.
-