HX4E/MX8A Series Voice Gateway User Manual
New Rock Technologies, Inc. 49
For details of Source and Number, see Table 2-18.
For details of Number Transformation and Routing Destination, see Table 2-19 and Table 2-20
respectively.
Table 2-18 Routing Table Format
There are three types of source: IP, FXS (Phone/fax) and FXO (Line).
The IP indicates any IP addresses. IP [xxx.xxx.xxx.xxx] indicates a specific address. IP
[xxx.xxx.xxx.xxx:port] indicates an specific IP address and a specific port number.
The FXS or FXO indicates any FXS or FXO port. FXS1, FXO2, FXS [1-2], or similar
indicates a specific port.
a called party number with the form of number. It could be a calling party number with
the form of CPN + number The number may be denoted with digit 0-9,"*",".","#"," x ",
etc., and uses the same regular expression as that of dialing rules. Here are examples of
the form of number:
Designate a specific number: eg.114, or 61202700
Designate a number matching a prefix: such as 61xxxxxx.
Specify a number scope. For example, 268[0-1, 3-9] specifies any 4-digit number
starting with 268 and followed by a digit between 0-1or 3-9
Number matching follows the principle of minimum matching. For example: x matches
any number with at least one digit; xx matches any number with at least two-digit; 12x
matches any number with at least 3-digit starting with 12.
Table 2-19 Number Transformations
Keep number. A positive number behind KEEP means to keep several digits in front of
the number; a negative number means to keep several digits at the end of the number.
Example: FXS 02161202700 KEEP -8
Keep the last 8 digits of the called number 02161202700 for calls from FXS. The
transformed called number is 61202700.
Remove number. A positive number following REMOVE means to remove the first
several digits of the number; a negative number means to remove the latter several
digits of the number.
For example: FXS 021 REMOVE 3
Remove 021 of the called number beginning with 021 for calls from FXS.
Add prefix or suffix to number. A positive number behind ADD is the prefix; a negative
number is suffix.
Example 1:
FXS1 CPNX ADD 021
FXS2 CPNX ADD 010
Add 021 in front of calling numbers for calls from FXS port 1; add 010 in front of
calling numbers for calls from FXS port 2.
Example 2: FXS CPN6120 ADD -8888
Add 8888 at the end of the calling number starting with 6120 for calls from an FXS
(Phone/fax) port.
Number replacement. The replaced number follows REPLACE.
Example: FXS CPN88 REPLACE 2682000
Replace the calling number beginning with 88 for calls from FXS port with 2682000.