Shanghai New Rock Technologies Inc. Page58/75
Processing Mode
Description and Example
ADD
Add prefix or suffix to number. The positive number behind ADD is the
prefix; the 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
FXS port.
REPLACE
Number replacement. The replaced number is behind REPLACE.
Example: FXS CPN88 REPLACE 2682000
Replace the calling number beginning with 88 for calls from FXS port to
2682000.
REPLACE
Other use of REPLACE is to replace the specific number based on other
number associated with the call. For example, replacing the calling number
according to the called number.
Examples:
FXS 12345 REPLACE CPN-1/8621
FXS CPN13 REPLACE CDPN0/0
For calls from FXS ports with called party number of 1234, removing one
digit at the rear of the calling number and add 8621; for call s from FXS
ports with calling party number starting with 13, add 0 in front of the called
number.
END or ROUTE
End of number transformation. From top to bottom, number transformation
will be stopped when END or ROUTE is encountered; The call will be
routed according to the default routing when END is met, or the call will
be routed according to the designed routing after ROUTE is met.
Example 1:
FXS 12345 ADD -8001
FXS 12345 REMOVE 4
FXS 12345 END
Add suffix 8001 to the called number starting with 12345 for calls from
FXS ports, then remove four digits in front of the number to end number
transformation.
Example 2:
IP[222.34.55.1] CPNX. REPLACE 2680000
IP[222.34.55.1] CPNX. ROUTE FXS 2
For calls from IP address 222.34.55.1, calling party number is replaced by
2680000, and then the call is routed to FXS port 2 with the new calling
party number.
CODEC
Designate the use of codec, such as PCMU/20/16, where PCMU denotes
G.711, /20 denotes RTP package interval of 20 milliseconds, and /16
denotes echo cancellation with 16 milliseconds window. PCMU/20/0
should be used if echo cancellation is not required to activate.
Example:
IP 6120 CODEC PCMU/20/16
PCMU/20/16 codec will be applied to calls from IP with called party
number starting with 6120.