Http://www.dbltek.com VoIP FXS+PSTN Gateway
34
The basic syntax is “<
event
>:<
action
>|<
event
>:<
action
>|…”, where
<
event
> defines the event to be matched. A event consists of a sequence of digits. If a
specific digit has a limited range, use the syntax [A-B] where A and B are both digit (0
to 9) and B is greater than A. The length of the input number can be limited by using
“X” to represent each unknown digit. If this field is omitted, it means any event.
<
action
> defines the action to be taken on the number received and it consists of
“–“ (minus), “+” (plus), and digits. “-“ followed by digits means to remove the digits
from the beginning of the number entered. “+” followed by digits means to add the
digits in front of the number entered.
“|” means or and the order of priority is from left to right.
Note: For practical use, it should not be possible to reach the maximum length of the Dial
Plan string.
Examples:
1. Dial Plan = “010:-010” means that the number dialed out will have the first 3
digits ”010” removed when a number with the first digits as “010” is entered.
a) Number entered = “01082121234”, actual number dialed = “82121234”.
b) Number entered = “82121234”, actual number dialed = “82121234”.
2. Dial Plan = “1:+00” means that the number dialed out will have the “00” added in
front of the number entered when a number with the first digit as “1” is entered,.
a) Number entered = “1082121234”, actual number dialed = “00182121234”.
b) Number entered = “82121234”, actual number dialed = “82121234”.
3. Dial Plan = “001:-001+1751” means that the number dialed out will the first 3
digits “001” changed to “1751” when a number with the first digits as “001” is
entered.
a) Number entered = “00182121234”, actual number dialed = “175282121234”.
b) Number entered = “82121234”, actual number dialed = “82121234”.
4. Dial Plan = “XXXX:” means that the input number is limited to 4-digit long and will
be dialed out immediately when the fourth digit is entered.
5. Dial Plan = “13XXX0” means that the input number is restricted to
11-digit long and the first two digits must be “13”. When this condition is
matched, the number dialed out will have a leading “0” added.
a) Number entered = “13901234567”, actual number dialed = “013901234567”.
b) Number entered = “12801234567”, actual number dialed = “12801234567”.