Configuring a Pre-routing Number Change Plan
Before route selection, complete calling or called number change.
Context
Prerequisites
- A PBX user has been configured. For details on how to configure a PBX user, see Configuring a PBX User.
- An inter-office call prefix has been configured. For details on how to configure an inter-office call prefix, see Configuring a Call Prefix.
Procedure
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view | - |
2 |
Enter the voice view. |
voice | - |
3 |
Create a pre-routing number change plan and enter the pre-routing number change plan view. |
beforeroute-change name |
By default, no pre-routing number change plan is configured. |
4 |
Bind a call prefix to the pre-routing number change plan. |
callprefix callprefix-name |
- |
5 |
Configure a calling number change rule. |
caller { del-then-insert del-offset del-len insert-telnum | del del-offset del-len | insert insert-offset insert-telnum | no-change } |
- |
6 |
Configure a called number change rule. |
called { del-then-insert del-offset del-len insert-telnum | del del-offset del-len | insert insert-offset insert-telnum | no-change } |
- |
7 |
(Optional) Configure an enterprise and a DN set in the pre-routing number change plan. |
call new-attribute { enterprise enterprise-name | dn-set dn-set-name } * | - |
8 |
(Optional) Configure the PBX whether to re-analyze changed numbers. |
call re-analyse reanalyze-value | The PBX supports re-analysis for a maximum of five times. |
9 |
(Optional) Configure the PBX whether to play the two-stage dial tone. |
call dual-dial-tone-flag dual-dial-tone-flag-value | To enable the PBX to play the two-stage dial tone, delete the dialed number. |
10 |
(Optional) Configure a calling number for a pre-routing number change plan. |
condition caller-telno telno-value |
By default, no caller number is configured for a pre-routing change plan. |
11 |
(Optional) Configure a called number that needs to be changed before route selection. |
condition called-telno telno-value |
The prefix of the called number must be the same as the prefix configured in step 4. By default, no called number is configured for a pre-routing change plan. |
12 |
Save the configuration. |
save | - |
Example
Bind call prefix 9 to pre-routing number change plan 0, and configure the PBX to map calling numbers to 28980808 and to delete the first digit from called numbers.
<Huawei> system-view [Huawei] voice [Huawei-voice] beforeroute-change 0 [Huawei-voice-beforeroute-change-0] callprefix 9 [Huawei-voice-beforeroute-change-0] caller del-then-insert 1 32 28980808 [Huawei-voice-beforeroute-change-0] called del 1 1 [Huawei-voice-beforeroute-change-0] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the pre-routing number change plan configuration. |
display voice beforeroute-change [ name ] |
The parameter values in the command output are consistent with the settings. |