Route Target Regular Expressions
The pattern-matching notation of regular expressions makes it possible to quickly parse large amounts of text to find specific character patterns; to extract, edit, replace, or delete text substrings; or, to add the extracted strings to a collection in order to generate a report. You use .NET regular expressions to specify the pattern of the specific (target) phone numbers that can use a route for outbound calls. To specify a target regular expression for target phone numbers, you specify a combination of symbols and variables that represent the target numbers and their dialing patterns.
For example, if you wanted to set up a calling policy to limit users in Redmond to local calls in the Redmond area, you could specify ^\+1(425|206|253)(\d{7})$ as the Target regular expression. This would specify that the route could be used to place calls to the 425, 206, and 253 area codes. The following table show sample corresponding values for the Name, Description, Gateways, and Phone usages elements that could be used for this route.
Route Name | Description | Target Regular Expression | Gateways | Phone Usages |
Redmond Local Route | Calls to numbers in the local Redmond area | ^\+1(425|206|253)(\d{7})$ | Red-GW1 | RedmondLocal |
Learn More Online
Click to expand or collapse
For details about specifying a route target regular expression using .NET regular expressions, and samples and descriptions of route target regular expressions (such as for creating a failover route, dialing 911, setting up an international gateway, or blocking calls to specific numbers), see the Office Communications Server Technical Library.
No comments:
Post a Comment