ESR-Series. User manual
568
•
•
•
•
•
•
•
•
19.7 Dial plan configuration example
Objective:
Configure a dial plan in such a manner that calls to local numbers (connected to the given ESR-12V) are
switched locally and calls to all other directions – through SIP proxy.
Solution:
Create a dial plan:
esr(config)# dialplan pattern firstDialplan
Dial plan is specified by regular expressions:
esr(config-dial-ruleset)# pattern
"<regular expressions>"
For the objective mentioned above, the '<
regular
expressions>' is given by:
“S5, L5 (410[1-3]@{local} | [xABCD*#].S)”
where:
410[1-3]@{local}
– calls to 4101, 4102, 4103 numbers will be switched locally;
[
xABCD*#].
S
– calls to all other numbers will be directed to SIP proxy.
Enable the dial plan:
esr(config-dial-ruleset)# enable
Dial plan configuration is finished.
esr(config-dial-ruleset)# exit
Regular expression structure:
Sxx, Lxx ( ),
where:
xx
– random values of S and L timers;
()
– dialplan limits.
The basis is designators for dialled digits sequence to be written. Sequence of digits is written by several
designators: digits dialled from a phone keyboard: 0, 1, 2, 3, …, 9, # and *.
Bracketed sequence of digits corresponds to any bracketed character.
Example: ([1239]) - corresponds to any of this digits: 1, 2, 3 and 9.
You may specify the hyphenated range of characters. Usually it is used inside the square brackets.
Example 1: (1-5) - any digit from 1 to 5.
Example 2: ([1-39]) – example from previous paragraph with other record format.
‘X’ character corresponds to any digit from 0 to 9.
Example: (1XX) - any three-digit number, starting at 1.
'.' - Previous symbol repeating from 0 to infinity.
The use of # character in dial plan can block the completion of dialling with this key!