Print

Example - How the To TelURI rules process numbers that use RegEx

The following table describes how To TelURI rules process numbers that use RegEx in Example - To TelURI rules that use RegEx.

A This rule uses a RegEx pattern to specify that Call Control Services is to look for a string starting with 4969710, matching an extension that starts with 0 through 5 and is 1 to 4 digits in length.

The parentheses around the extension indicate a group, which is correlated with the $1 in the replacement string. The $1 says to replace the matching string (the entire E.164 number) with the group designated by the parentheses (the extension).

B This rule uses a RegEx pattern to specify that Call Control Services is to look for a string starting with 4969, followed by 1 or more digits.

The parentheses again correlate with the $1 in the replacement string, which says to take the group (the E.164 number without country code or city code) and to add a 0 in front of it (the ARS code).

C This rule uses a simple pattern match. The asterisk in the Min and Max length permits a number of any length. The pattern indicates that Call Control Services is to look for a string starting with 49. When it detects 49, it deletes the first 2 digits, and replaces them with 00.
D This rule uses a wildcard pattern match. The asterisk in the Min and Max length permits a number of any length, and the asterisk in the pattern permits pattern of digits. When any number that does not satisfy the first 3 rules (A,B, and C) is detected, Call Control Services deletes the first digit and replaces it with 000.