Configuring a SIP Server
This section describes how to configure parameters of a SIP server, including the IP address, URI, and home domain. SIP server is an important entity in the SIP protocol architecture. The PBX can function as the SIP server to accept registration information of SIP users, save the information in the address information database, and manage and maintain users' registration information.
Prerequisites
You have finished Configuring Media and Signaling IP Address Pools.
Procedure
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view |
- |
2 |
(Optional) Create an SSL policy |
ssl policy policy-name [ type { client | server } ] |
|
3 |
Enter the voice view. |
voice |
- |
4 |
Enter the SIP server view. |
sipserver |
- |
5 |
Configure a signaling IP address and signaling port number for the SIP server. |
signalling-address { ip ip-address | addr-name addr-name-value } port port-value |
The signaling IP address must be selected from the signaling IP address pool configured on an interface. |
6 |
Configure a signaling domain name for the SIP server that uses a dynamic signaling IP address. |
signalling-domain signaling-domain-value |
If the SIP server uses a dynamic signaling IP address, you must configure a signaling domain name for the SIP server. |
7 |
Configure a media IP address for the SIP server. |
media-ip { ip-address | addr-name addr-name-value } |
The media IP address must be selected from the media IP address pool configured on an interface. |
8 |
Configure a uniform resource identifier (URI) for the SIP server. |
register-uri uri |
SIP users use this URI to register with the SIP server. |
9 |
Configure the home domain for the SIP server. |
home-domain domain |
The SIP server uses the home domain name as the user domain name in the From field in SIP message headers. |
10 |
(Optional) Enable registration status subscription. |
number-parameter 56 1 |
To use the registration status subscription function, set Registration status Subscription on SIP terminals to Enable. By default, registration status subscription is not enabled. |
11 |
(Optional) Configure the transfer mode for a SIP server. |
transfer transfer-value |
To configures an SSL policy of server type or client type when the SIP server uses TLS, set the transfer mode for a SIP server to TLS. |
12 |
(Optional) Configure the reliable connection mode for the SIP server. |
cs-mode cs-mode-value |
When the transfer mode for a SIP server is TCP or TLS, this command needs to be configured.
|
13 |
(Optional) Configure an SSL policy of server type or client type when the SIP server uses TLS. |
|
|
14 |
Reset the SIP server. |
reset |
- |
15 |
Save the configuration. |
save |
- |
Example
# Configure a SIP server. Set its signaling IP address to 192.168.1.3, signaling port number to 5060, media IP address to 192.168.1.3, registration URI to abcd.com, and home domain to abcd.com.
<Huawei> system-view [Huawei] voice [Huawei-voice] sipserver [Huawei-voice-sipserver] signalling-address ip 192.168.1.3 port 5060 [Huawei-voice-sipserver] media-ip 192.168.1.3 [Huawei-voice-sipserver] register-uri abcd.com [Huawei-voice-sipserver] home-domain abcd.com [Huawei-voice-sipserver] reset [Huawei-voice-sipserver] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Check the configuration of a SIP server. |
display voice sipserver |
The parameter values in the command output are consistent with the settings. If the configuration information (Config) is inconsistent with the running information (Running), the current configuration does not take effect. Run the reset command to reset the SIP server for the configuration to take effect. |