Configuring a Call Prefix
After intra-office and inter-office prefixes are configured on the PBX, intra-office users can call each other, and intra-office users can call inter-office users.
Context
A call prefix is a string of consecutive digits starting from the first digit of a called number. It can be the first digit or several digits starting from the first digit of a called number. That is, a call prefix is a subset of a called number. For example, you can define either of the following intra-office call prefixes for the called number 1234:
- First digit: 1
- First two digits: 12
- First three digits: 123
- Called number: 1234
A group of call prefixes configured on the PBX constitutes a DN set. If the preceding call prefixes all exist in the DN set, the PBX analyzes the called number according to the longest match principle. For example, a user calls 1234. If call prefixes 1, 12, and 1234 are configured in a DN set, the PBX matches the called number with the call prefix 1234 according to the longest match principle.
Call prefixes are classified into the following types:
- Intra-office call prefix: is applicable to scenarios where intra-office and inter-office users call intra-office users. For example, the intra-office number range is 7000 to 7099. You can configure the intra-office call prefix 7. You need to dial only the intra-office user number such as 7001 when calling an intra-office user.
- Inter-office call prefix: Inter-office call prefixes are used by intra-office users to make outgoing calls, for example, intra-office users make local calls, national toll calls, and international toll calls. Assuming that the inter-office call prefix is 9, intra-office user 7000 can dial 912345678 when calling inter-office user 12345678. The PBX parses and changes the number (for example, delete 9) to make outgoing calls, as shown in Figure 2-15.
A call prefix can be flexibly configured, and depends on the user number plan.
Procedure
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view | - |
2 |
Enter the voice view. |
voice | - |
3 |
Create a call prefix profile and enter the call prefix profile view. |
callprefix callprefix-name | - |
4 |
Configure a call prefix. |
prefix prefix | - |
5 |
Configure the call type and call attribute for the call prefix. |
call-type category callcategory attribute attribute | - |
6 |
Set the length of a number that can be parsed. |
digit-length minimum-length-value maximum-length-value | The length of a number that can be parsed contains the call prefix. For example, when the length of a number that can be parsed is 5 and the call prefix is 88, the PBX parses 88***. The maximum length of a number that can be parsed must be larger than or equal to the minimum length of a number that can be parsed. |
7 |
(Optional) Configure the enterprise and DN set that the call prefix belongs to. |
enterprise enterprise-name [ dn-set dn-set-name ] | By default, a call prefix belongs to the enterprise default and DN set DefaultDialPlan. You need to perform this step only when multiple enterprises and DN sets are configured. For details on how to configure an enterprise and a DN set, see Configuring an Enterprise and a DN Set. |
8 |
(Optional) Configure the interactive voice response (IVR) service to transfer inter-office calls. |
vuoutgoingright { { inter value | local value | idd value | ddd value } * | all value } | If in step 5, you run the call-type command to set vu-service to the IVR service, run the vuoutgoingright command to enable the IVR to transfer inter-office calls. |
9 |
(Optional) Configure the function of rerouting upon a call failure. |
re-route re-route-value | By default, the function of rerouting upon a call failure is disabled. |
10 |
(Optional) Configure the function of the called party payment. |
collectcall collectcall-value | By default, the function of the called party payment is disabled. |
11 |
Save the configuration. |
save | - |
Example
Set the intra-office call prefix to 7 and inter-office call prefix to 9.
<Huawei> system-view [Huawei] voice [Huawei-voice] callprefix 7 [Huawei-voice-callprefix-7] prefix 7 [Huawei-voice-callprefix-7] call-type category basic-service attribute 0 [Huawei-voice-callprefix-7] digit-length 3 4 [Huawei-voice-callprefix-7] quit [Huawei-voice] callprefix 9 [Huawei-voice-callprefix-9] prefix 9 [Huawei-voice-callprefix-9] call-type category basic-service attribute 1 [Huawei-voice-callprefix-9] digit-length 1 15 [Huawei-voice-callprefix-9] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the call prefix configuration. |
display voice callprefix [ callprefix-name ] | The parameter values in the command output are consistent with the setting. |