Configuring a SIP User
After a number and call right are configured for a Session Initiation Protocol (SIP) user, the SIP user device such as an IP phone can make incoming and outgoing calls.
Context
A SIP user connects calls on the SIP server through SIP. SIP user devices can be IP phones, eSpace software terminals, and POTS phones connected to the eSpace IAD. The PBX as the SIP server receives registration and session requests of SIP users.
As shown in Figure 2-13, the PBX connects to SIP users.
The PBX can control call-in and call-out rights. Calls are classified into intra-office calls, local calls, national toll calls, international toll calls and local survival call.
Procedure
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view | - |
2 |
Enter the voice view. |
voice | - |
3 |
(Optional) Create SIP users in a batch. |
pbxuser-batch sipue pbxuser name sipue eid-value number num-value | You can run this command to create multiple SIP users and allocate consecutive user numbers to the SIP users. It is recommended that eid-value (device identifier) be the same as name (user name). By default, no SIP user is created. |
4 |
Create a SIP user, (optional) specify the enterprise that the SIP user belongs to, and enter the SIP user view. |
pbxuser name sipue [ enterprise enterprise-name ] | By default, a SIP user belongs to the enterprise default. You need to configure enterprise enterprise-name parameter only when multiple enterprises share the PBX. For details on how to configure an enterprise, see Configuring an Enterprise and a DN Set. After a SIP user is created, you can run this command to enter the SIP user view. |
5 |
Configure a device identifier. |
sipue eid-value | It is recommended that the device identifier be the same as the user name. If you create SIP users in a batch, this step is optional. |
6 |
Configure a telephone number and long code. |
telno telno-value [ long-telno long-telno-value ] | A long code is allocated by a carrier. After a long code is configured, external users can dial the long code to call users. They do not need to dial the switchboard number and extension number. If you create SIP users in a batch, this step is optional. |
7 |
Configure an authentication password. |
eid-para password cipher password-value | After creating a SIP user, configure an authentication password for the user. If no authentication password is configured, the user account may be stolen by unauthorized users. |
8 |
(Optional) Configure the call-in right. |
call-right in { { inter inter-value | local local-value | ddd ddd-value | idd idd-value } * | all } | By default, intra-office, local, national, and international incoming calls are all allowed. |
9 |
(Optional) Configure the call-out right. |
call-right out { { inter inter-value | local local-value | ddd ddd-value | idd idd-value } * | all } | By default, only intra-office and local call can be made. |
10 |
(Optional) Bind a DN set to the SIP user. |
dn-set dn-set-name | By default, a SIP user belongs to the DN set DefaultDialPlan. You need to perform this step only when a DN set is created. For details on how to configure a DN set, see Configuring an Enterprise and a DN Set. |
11 |
(Optional) Configure the user type. |
user-type type | By default, users are common users. |
12 |
(Optional) Configure the name of a SIP user. |
user-name user-name-value | You can run this command to configure a name for a SIP user. When a remote user has enabled the name identification presentation service, the configured name will be displayed on the phone of the remote user. By default, the name of SIP user is not configured. |
13 |
(Optional) Configure the description. |
eid-para description description | By default, the description of a user is not configured. |
14 |
Save the configuration. |
save | - |
Example
<Huawei> system-view [Huawei] voice [Huawei-voice] pbxuser 7100 sipue [Huawei-voice-pbxuser-7100] sipue 7100 [Huawei-voice-pbxuser-7100] telno 7100 long-telno 28987100 [Huawei-voice-pbxuser-7100] eid-para password cipher Please input user password(6-64 chars): ****** [Huawei-voice-pbxuser-7100] call-right out ddd enable [Huawei-voice-pbxuser-7100] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the SIP user configuration. |
display voice pbxuser [ pbxuser-name ] | The parameter values in the command output are consistent with the setting. |