Configuring a Country Code and an Area Code
After a country code and an area code are configured, the PBX regulates calling and called numbers from different countries or areas.
Context
- Digits are collected at one time. The PBX cannot collect digits one by one.
- The PBX does not support number regulation over an R2 trunk.
- Figure 2-5 shows the calling number regulation process for incoming calls over a trunk.
- Figure 2-6 shows the called number regulation process for incoming calls over a trunk.
- Figure 2-7 shows the intra-office call number regulation process.
Procedure
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view |
- |
2 |
Enter the voice view. |
voice |
- |
3 |
(Optional) Configure a country code. |
country-code country-code-value [ country-name country-name | international-prefix international-prefix-value | national-prefix national-prefix-value ]* |
Before configuring a country code, run the display voice country-code command to view the default country code on the PBX.
NOTE:
The PBX does not support voice services using non-standard country or area codes. If non-standard country or area codes are used, calls may be disconnected. |
4 |
Configure the default country code and area code. |
pbx { default-country-code dcc-value | default-area-code dac-value }* |
By default, the country code is 86 and area code is 755. |
5 |
Enable country code and area code change. |
pbx enable-country-area-transform enable |
- |
6 |
Save the configuration. |
save | - |
Example
<Huawei> system-view [Huawei] voice [Huawei-voice] pbx default-country-code 86 default-area-code 571 [Huawei-voice] pbx enable-country-area-transform enable [Huawei-voice] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the default and configured country codes and area codes. |
display voice pbx country-area-transform |
[Huawei-voice]dis voice pbx country-area-transform Default country code: 86 Default area code: 571 Enable Country Area Transform Flag: enable |