Configuring Number Mapping
Number mapping allows the PBX to map external numbers to internal numbers and re-parse numbers and locate called parties according to the matched prefix.
Context
Prerequisites
- A user number has been configured. For details on how to configure a user number, see Configuring a POTS User.
- A call prefix has been configured. For details on how to configure a call prefix, see Configuring a Call Prefix.
- A trunk group has been created and its connection parameters have been configured. For details about the configuration, see Configuring Trunk Groups.
- The long codes allocated by the PSTN to PBX users are 28987000, 28987001, and 28987100.
Procedure
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view | - |
2 |
Enter the voice view. |
voice | - |
3 |
Enter the number mapping view. |
number-map number-map-name |
- |
4 |
Configure internal numbers. |
internal-num internal-num | - |
5 |
Configure external numbers. |
external-num external-num | - |
6 |
Configure an enterprise. |
enterprise enterprise-name | If the intra-office user belongs to the default enterprise, the enterprise parameter does not need to be set; otherwise, set the enterprise parameter to the enterprise to which the user belongs. |
7 |
Enter the voice view. |
quit |
- |
8 |
Enter the call prefix profile view. |
callprefix callprefix-name |
- |
9 |
Enable number mapping. |
special-deal { caller-map long-cli-flag | called-map cld-map-flag | long-caller long-cli-flag } * |
- |
10 |
Save the configuration. |
save | - |
Example
Map 7000 and 7001 to 28987000 and 28987001 of enterprise default respectively, and enable called number mapping for intra-office call prefix 2 and calling number mapping for inter-office call prefix 9.
<Huawei> system-view [Huawei] voice [Huawei-voice] number-map 0 [Huawei-voice-number-map-0] internal-num 7000 [Huawei-voice-number-map-0] external-num 28987000 [Huawei-voice-number-map-0] quit [Huawei-voice] number-map 1 [Huawei-voice-number-map-1] internal-num 7001 [Huawei-voice-number-map-1] external-num 28987001 [Huawei-voice-number-map-1] quit [Huawei-voice] callprefix 2 [Huawei-voice-callprefix-2] special-deal called-map enable [Huawei-voice-callprefix-2] quit [Huawei-voice] callprefix 9 [Huawei-voice-callprefix-9] special-deal caller-map enable [Huawei-voice-callprefix-9] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the number mapping configuration. |
display voice number-map |
[Huawei]display voice number-map
Spec: 250, Records: 2 ------------------------ Internal-num value: 7000 External-num value: 28987000 Enterprise name : default Internal-num value: 7001 External-num value: 28987001 Enterprise name : default |
Verify the call prefix configuration. |
display voice callprefix callprefix-name |
The values of Called map switch for call prefix 7 and Caller map switch for call prefix 9 are consistent with settings. |