Calling Number Discrimination
Calling number discrimination is a type of number change. This service allows the PBX to change outgoing called and calling numbers and to limit the call-out right of a calling party using a prefix.
Context
Calling number discrimination can be used in the following scenarios:
- To show a specific number to the called party, configure the specific number to replace the calling number.
- To change the number as a specific number, configure a new number to replace the called number.
- To control the call-out right for calling numbers over a trunk, configure the call-out right.
Prerequisites
- A PBX user has been configured. For details about the configuration, see Configuring a PBX User.
- A call prefix has been configured. For details about the configuration, see Configuring a Call Prefix.
- The PSTN assigns number 28987000 to the PBX user.
Procedure
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view |
- |
2 |
Enter the voice view. |
voice |
- |
3 |
(Optional) Create an enterprise and enter the enterprise view. |
enterprise enterprise-name |
If the enterprise exists, this command displays the enterprise view directly. The device provides a default enterprise name default. |
4 |
(Optional) Configure a DN set for the enterprise. |
dn-set dn-set-name [ description description ] |
A new enterprise does not have any DN set. You must configure a DN set for the enterprise. The enterprise default has a default DN set named defaultdialplan. |
5 |
(Optional) Return to the voice view. |
quit |
- |
6 |
Create a calling number change plan and enter its name. |
caller-change caller-change-name |
By default, no calling number change plan exists. |
7 |
Configure a call prefix. |
callerprefix callprefix-name |
- |
8 |
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 } |
- |
9 |
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 } |
- |
10 |
(Optional) Configure the calling party call-out right. |
outgoing-right |
By default, the call-out right for calls transferred is used. |
11 |
Save the configuration. |
save |
- |
Example
Crete calling number change plan 0. Bind it to calling prefix 7* for changing the calling numbers to 28987000. Set the called number change rule to deleting the first digit.
<Huawei> system-view [Huawei] voice [Huawei-voice] caller-change 0 [Huawei-voice-caller-change-0] callerprefix 7* [Huawei-voice-caller-change-0] caller del-then-insert 1 32 28987000 [Huawei-voice-caller-change-0] called del 1 1 [Huawei-voice-caller-change-0] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the configuration of calling number change. |
display voice caller-change |
The parameter values in the command output are consistent with the settings. |