ESR service routers. ESR-Series. Functionality description. Version 1.12.0
427
•
•
esr(config-voice-port-fxs)# exit
13.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. Dialed digits sequence is recording using
several designations: numbers dialed from the phone keypad: 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.
The use of # character in dial plan can block the completion of dialing with this key!