Configuring Long and Short Codes
A short code is used by intra-office users, and a long code is used to display numbers of outgoing calls or used by inter-office users.
Context
Prerequisites
- A PBX user has been configured. For details on how to configure a PBX user, see Configuring a PBX User.
- A call prefix has been configured. For details on how to configure a call prefix, see Configuring a Call Prefix.
- The long codes allocated by the PSTN to PBX users are 28987000 and 28987001.
Procedure
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view | - |
2 |
Enter the voice view. |
voice | - |
3 |
Enter the user view. |
pbxuser name |
- |
4 |
Configure a long code. |
telno telno-value [ long-telno long-telno-value ] |
- |
5 |
Enter the voice view. |
quit |
- |
6 |
Enter the call prefix profile view. |
callprefix callprefix-name |
- |
7 |
Configure the PBX to display the long code of a calling number. |
special-deal long-caller enable |
By default, the PBX does not display the long code of a calling number. |
8 |
Save the configuration. |
save |
- |
Example
<Huawei> system-view [Huawei] voice [Huawei-voice] pbxuser 7000 [Huawei-voice-pbxuser-user7000] telno 7000 long-telno 28987000 [Huawei-voice-pbxuser-user7000] quit [Huawei-voice] callprefix 9 [Huawei-voice-callprefix-9] special-deal long-caller enable [Huawei-voice-callprefix-9] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the PBX user configuration. |
display voice pbxuser pbxuser-name |
The configured value of Long telno is displayed. [Huawei-voice]display voice pbxuser 7000
PBX user : 7000 Enterprise : default Port : 4/0/1 Sipue Type : Dn-set : DefaultDialPlan Telephone number : 7000 Long telno : 28987000 |
Verify the call prefix configuration. |
display voice callprefix callprefix-name |
The configured value of Long cli switch is displayed. [Huawei-voice]display voice callprefix 9
Callprefix : 9 Enterprise : default Dn-set : DefaultDialPlan Prefix : 9 Call category : Basic service Call attribute : 1(Local) Minimum length : 1 Maximum length : 15 Ring delay(s) : 0 Long cli switch : enable |