2292 CHAPTER 133: DIAL PLAN CONFIGURATIONn ■ The sub-expression (one digit or digit string) before a control character such as!, +, and % can appear for the corresponding times. For example, (100)+ canmatch 100, 100100, 100100100, and so on. Once any number of them ismatched, the match is considered an exact match. In the longest match mode,the voice gateway will ignore subsequent digits dialed by the subscriber afteran exact match. (For the case that the gateway needs to wait for subscribers tocontinue dialing after an exact match, refer to the T mode.)■ The characters () and (|) are mainly used in regular expressions and you are notallowed to configure it. The character () is an escape character. If you want acontrol character to represent itself, you need to add the escape character ()before it. For example, (+) represents the character (+) itself because (+) is acontrol character in regular expressions. The character (|) means that thecurrent character (string) is the character (string) on either the left or the right.For example, 0860108888|T means that the current character string is either0860108888 or T.■ T mode: The character T in the match-template match-string means that thesystem should wait for more digits until the number exceeds the maximumlength or the dial timer expires.Introduction to NumberSubstitutionAccording to the network requirements, you can first configure a numbersubstitution rule list, and then define specific number substitution rules, dot-matchrules, and preferred number substitution rules for the list. Finally, you can applythese substitution rules globally or to voice entities and voice subscriber lines tosubstitute calling/called numbers flexibly.- Hyphen (connecting element), used to connect two numbers (Thesmaller comes before the larger) to indicate a range of numbers, forexample, 1-9 inclusive.[ ] Delimits a range for matching. It can be used together with signs suchas !, %, and +. For example, [235-9] indicates one number of 2, 3, and5 through 9.( ) Indicates a sub-expression. For example, (086) indicates the characterstring 086. It is usually used together with signs such as !, %, and +. Forexample, (086)!010 can match two character strings 010 and 086010.! A control character, indicating that the sub-expression before it appearsonce or does not appear. For example, (010)!12345678 can match12345678 and 01012345678.+ A control character, indicating that the sub-expression before it appearsone or more times. If the plus sign (+) appears at the head of a number,the number is an E.164 number and the plus sign itself does notrepresent a specific number or number repetition. For example,9876(54)+ can match 987654, 98765454, 9876545454, and so on, and+110022 is an E.164-compliant number.% A control character, indicating that the sub-expression before it appearsmultiple times or does not appear. For example, 9876(54)% can match9876, 987654, 98765454, 9876545454, and so on.Table 80 Meta-charactersMeta-character Meaning