35
4.4.7.1 Basic Dial Rule
1. If there are many rules, it can be separated with symbol '|'. For example:
"00:-00|0:-0+86|:+86755"
2. System try to match the rule from left to right and stop match when meet the satisfied
rule, otherwise continue.
3. Rule grammar model is "AA
:
-aa+bb", For example: "0:-0+86". In front of "
:
","AA" is the
number to match, and what is operated is realized by the following. If it math the rule,
the system will delete the symbol of "aa",and add "bb"; or continue. There is nothing
after the symbol of "
:
", such as "00:", it means system do nothing and quit when match
the symbol. System will operate directly when no string before symbol of "
:
", such as
":+86755".
4. There is no limited range for the dialing out rule of the match definition, the language is
"[A-B]A:-aa+bb" or "A[A-B]:-aa+bb".
Template:
1. Rule: "0:|:+0755"
A. input "02083185711" , output "02083185711"
B. input "83185700" , output "075583185700"
2. Rule: "00:-00|0"-0+86|:+86755"
A. input "008522343318", output "8522343318";
B. input "02083185711", output "862083185711";
C. input "83185700", output "8675583185700".
3. Rule: "00:|0:-0+0086|:+0086755".
A. input "008522343318", output "008522343318";
B. input "02083185711", output "00862083185711";
C. input "83185700", output "008675583185700".
4. Rule: "0:|1[3-9]:+0|[2-8]:+0755|:+0755".
A. input "076322343318", output "076322343318";
B. input "13044557766", output "013044557766";
or input "13644557766", output "013644557766"
C. input "23185700", output "075523185700".
or input "73185700", output "075573185700"
4.4.7.2 How to limit code bit
If you want to limit the bit of every telephone number in the HT-822P, you could set the dial
rule as follow: "AAXXXXXX:-aa+bb" , "AAXXXXXX" is the description for the matching