ADTRAN AOS Version R10.1.0 Command Reference Manual page 1139

Adtran operating system (aos)
Table of Contents

Advertisement

Command Reference Guide
The special characters ( ), -, and + are always ignored in the template. The following are example template
entries using wildcards:
1) 555-81XX matches 555-8100 to 555-8199.
2) 555-812[012] matches 555-8120 to 555-8122.
3) NXX-XXXX matches 7 digit local.
4) 1-NXX-NXX-XXXX matches long distance calls in North America.
In regular expressions number matching, the match strings are encapsulated by paired / (slash) symbols.
This indicates that the pattern is to be treated as a regular expression. Using regular expressions allows
greater flexibility in matching multiple number templates with fewer expressions.
AOS is compatible with Perl compatible regular expressions (PCREs). More information on
understanding and using regular expressions is available at http://www.pcre.org.
The use of quotation marks in a command syntax, when entering a string is not necessary
unless the string requires using a space or ?. Using either of these characters outside of
quotation marks is interpreted by the CLI as commands and not recognized as part of the
string. The use of quotation marks in the following examples are provided to cover all
possible user-entered strings. These examples can be entered without the quotation marks
and function in the same manner.
Usage Examples
The following example uses the traditional number matching method to match a 7-digit number beginning
with 555 and replace it with 5551111:
(config)#ip sip proxy failover match-alias "555XXXX" substitute "5551111"
The following example uses the regular expression number matching method to match a 7-digit number
beginning with 555 and replace it with 5551111:
(config)#ip sip proxy failover match-alias "/555\d{4}/" substitute "/5551111/"
60000CRG0-35E
Copyright © 2012 ADTRAN, Inc.
Global Configuration Mode Command Set
1139

Advertisement

Table of Contents
loading

Related Products for ADTRAN AOS Version R10.1.0

This manual is also suitable for:

Aos r10.1.0

Table of Contents