Configuring a Post-routing Number Change Plan
After 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.
- An inter-office trunk group has been configured. For details on how to configure an inter-office trunk group, see Configuring Trunk Groups.
Procedure
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view | - |
2 |
Enter the voice view. |
voice | - |
3 |
Create a post-routing number change plan and enter the post-routing number change plan view. |
afterroute-change name |
By default, no post-routing number change plan is configured. |
4 |
Bind a call prefix to the post-routing number change plan. |
callprefix callprefix-name |
- |
5 |
Bind a trunk group to the post-routing number change plan. |
trunk-group trunk-group-name |
- |
6 |
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 } | - |
7 |
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 } |
- |
8 |
(Optional) Configure a calling number for a post-routing number change plan. |
condition caller-telno telno-value |
- |
9 |
Save the configuration. |
save | - |
Example
<Huawei> system-view [Huawei] voice [Huawei-voice] afterroute-change 0 [Huawei-voice-afterroute-change-0] callprefix 8 [Huawei-voice-afterroute-change-0] trunk-group sipip [Huawei-voice-afterroute-change-0] caller del-then-insert 1 32 28980808 [Huawei-voice-afterroute-change-0] called insert 1 12523 [Huawei-voice-afterroute-change-0] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the post-routing number change plan configuration. |
display voice afterroute-change [ name ] |
The parameter values in the command output are consistent with the settings. |