Configuring SIP Trunk Groups
The PBX supports three types of SIP trunk groups: SIP AT0, SIP PRA, and SIP IP.
Configuring a SIP AT0 Trunk Group
A SIP AT0 trunk group implements voice communication between PBX users and inter-office users. A SIP AT0 trunk connects the PBX to the carrier network by forging a SIP user. SIP users can register on the carrier network separately.
Background
The PBX can add several trunks of the same type to a trunk group, which are invoked by call routes. Even if there is only one trunk, a trunk group needs to be configured to facilitate trunk management.
After an enterprise applies for SIP users from the carrier, configure a SIP AT0 trunk group to implement voice communication between PBX users and inter-office users. A SIP AT0 trunk group, similar to an AT0 trunk group based on POTS users, works over the IP network and uses SIP.
The SIP users are separately registered on the carrier network such as the IMS network. Then trunks of the SIP AT0 trunk group are formed. The carrier network connects to common SIP users, and does not learn about the private network. An enterprise user occupies one trunk of the SIP AT0 trunk group to make outgoing calls. Incoming calls are transmitted to the enterprise switchboard or an enterprise user.
By default, a SIP AT0 trunk allocated by the carrier network to the PBX cannot support multiple calls at the same time. For example, when a SIP AT0 trunk is used for the automatic switchboard, multiple calls cannot be set up using the automatic switchboard. If a SIP AT0 trunk group needs to support multiple concurrent calls, configure the SIP AT0 multi-call service. For details, see trunk-sipat0.
Table 2-6 describes the transport protocols that can be used by a SIP AT0 trunk.
Transport Protocol |
Description |
---|---|
UDP |
Connectionless transport-layer protocol that provides event-based, simplified, and unreliable information transmission. When UDP is used to transmit data, each datagram is independent and contains the source and destination. Because UDP is unreliable, data may not reach the destination, and the time data reaches the destination and data integrity cannot be ensured. |
TCP |
Connection-oriented protocol. Before data transmission, both ends must establish a virtual channel. |
The PBX connects to the IMS network through a SIP AT0 trunk group, as shown in Figure 2-22.
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 |
(Optional) Configure the mappings between ISDN cause values and SIP error codes. |
cause-mapping { isdn-cause isdn-cause-value | sip-response sip-response-value } * |
- |
5 |
Create a SIP AT0 trunk group and enter the SIP AT0 trunk group view. |
trunk-group trunk-group-name [ sip trunk-circuit ] |
If a SIP AT0 trunk group already exists, this command directly displays the SIP AT0 trunk group view. |
6 |
Configure the signaling IP address and port number at the local end. |
signalling-address { ip ip-address | addr-name signal-addr-name-value } port port-value |
- |
7 |
Configure the media IP address or dynamic media IP address name at the local end. |
media-ip { ip-address | addr-name addr-name-value } |
- |
8 |
Configure the remote IP address and port number in static or DNS mode. |
peer-address static primary-ip-address primary-port-value [ secondary secondary-ip-address secondary-port-value ] |
Use the static mode. The data of the trunk group must be the same as the data at the remote end. |
peer-address { dns-a primary-domain-value primary-port-value [ secondary secondary-domain-value secondary-port-value ] | dns-srv domain-value | dns-naptr domain-value } |
Use the DNS mode. The data of the trunk group must be the same as the data at the remote end. If the DNS mode is used, the SIP AT0 trunk group can be redirected for registration. The registration redirection process of a SIP AT0 trunk group is the same as that of a SIP AG. For details, see SIP AG Registration Redirection Process. |
||
9 |
Configure the home domain to which the SIP IP trunk group of the peer device belongs. |
home-domain value |
Set the parameter based on the requirements of the remote end. |
10 |
Configure a registrar URI. |
register-uri register-uri-value |
Set the parameter based on the requirements of the remote end. |
11 |
Bind a trunk to a SIP AT0 trunk group. |
trunk-sipat0 register-id { password cipher cipher-password | caller-telno [ enterprise enterprise-name ] telno-value | default-called-telno default-called-telno-value | max-calls max-calls-value } * |
You can specify default-called-telno to transmit incoming calls over a trunk to an intra-office user (dedicated access) or access number of the switchboard (switchboard access). If register-id is set to esn, the system automatically replaces the esn with the actual ESN. |
12 |
Configure the user name format for authentication. |
number-parameter 19 numpara-value |
If the user information provided by the IMS for registration is a number, such as +865717000, set this parameter to 0. If the user information is in User number@Domain name format, such as +865717000@abcd.com, set this parameter to 1. Set this parameter to 2 for other formats. Enumerated type. The options are as follows:
|
13 |
Reset the SIP AT0 trunk group. |
reset |
You must reset the SIP AT0 trunk group to make new or modified parameters of the SIP AT0 trunk group take effect. |
14 |
(Optional) Configure the enterprise and DN set that the SIP AT0 trunk group belongs to. |
enterprise enterprise-name [ dn-set dn-set-name ] |
By default, a SIP IP trunk group 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. |
15 |
(Optional) Configure a transport protocol for the SIP trunk group. |
transfer transfer-value |
By default, a transport protocol for the SIP trunk group is UDP. |
16 |
(Optional) Configure the reliable connection mode. |
cs-mode mode-value |
When the transfer mode for a SIP server is TCP or TLS, this command needs to be configured.
|
17 |
(Optional) Configure an SSL policy of server type or client type when a trunk group uses TLS. |
|
|
18 |
(Optional) Configure a trunk group circuit selection mode. |
select-mode select-mode-value |
The following circuit selection modes are available:
|
19 |
(Optional) Configure the default country code and area code. |
country-code country-code-value area-code area-code-value |
This command configures the country code and area code for incoming calls over a SIP AT0 trunk group. When incoming calls do not carry the country code and area code, the PBX adds the configured country code and area code so that intra-office users can view calls and call back through call display. |
21 |
(Optional) Configure the description for the SIP AT0 trunk group. |
description desc-value |
- |
22 |
(Optional) Configure trunk groups that are associated with the SIP AT0 trunk group. |
circuit-state-relate trunk-group-name |
This command associates other trunk groups with the SIP AT0 trunk group. When the status of the SIP AT0 trunk group changes, status of the associated trunk groups also changes. The SIP AT0 trunk group can be associated only with PRA trunk groups or BRA trunk groups. By default, the SIP AT0 trunk group is not associated with any trunk group. |
23 |
Save the configuration. |
save |
- |
Example
Configure a SIP AT0 trunk group named sipat0 that connects the enterprise and IMS network of the carrier, and set the signaling and media IP addresses and signaling port number at the local end to 192.168.1.3 and 5061 respectively. The SIP user number allocated by the carrier is 56623000, and the authentication password is 123456. When an external user makes a call to 56623000, the phone of user A (phone number: 7222) rings. If an external user wants to make a call to an intra-office user other than user A, the external user can make a call to user A and ask user A to transfer the call to the target user. Set the IP address and port number of the IMS network to 192.168.10.10 and 5060 respectively. Set the user name format for authentication to 0 (Userinfo).
<Huawei> system-view [Huawei] voice [Huawei-voice] trunk-group sipat0 sip trunk-circuit [Huawei-voice-trunkgroup-sipat0] signalling-address ip 192.168.1.3 port 5061 [Huawei-voice-trunkgroup-sipat0] media-ip 192.168.1.3 [Huawei-voice-trunkgroup-sipat0] peer-address static 192.168.10.10 5060 [Huawei-voice-trunkgroup-sipat0] register-uri abcd.com [Huawei-voice-trunkgroup-sipat0] home-domain abcd.com [Huawei-voice-trunkgroup-sipat0] trunk-sipat0 56623000 default-called-telno 7222 password cipher Please input user password(1-32 chars):****** [Huawei-voice-trunkgroup-sipat0] number-parameter 19 0 [Huawei-voice-trunkgroup-sipat0] reset [Huawei-voice-trunkgroup-sipat0] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Check the SIP AT0 trunk group configuration. |
display voice trunk-group [ name [ para-value ] ] |
The parameter values in the command output are consistent with the settings. |
Configuring a SIP PRA Trunk Group
A SIP PRA trunk group implements voice communication between PBX users and inter-office users. A SIP PRA trunk connects the PBX to the carrier network by forging a SIP user. SIP users can register on the carrier network separately.
Context
The PBX can add several trunks of the same type to a trunk group, which are invoked by call routes. Even if there is only one trunk, a trunk group needs to be configured to facilitate trunk management.
After an enterprise applies for SIP users from the carrier, configure a SIP PRA trunk group to implement voice communication between PBX users and inter-office users.
Unlike a SIP AT0 trunk group, a SIP PRA trunk group uses trunk group registration. That is, the SIP PRA trunk group sends a registration message to complete number registration of a group of SIP users. Then trunks of the SIP PRA trunk group are formed. The carrier network connects to common SIP users, and does not learn about the private network. An enterprise user occupies one trunk of the SIP PRA trunk group to make outgoing calls. Incoming calls are transmitted to the enterprise switchboard or an enterprise user.
Table 2-7 describes the transport protocols that can be used by a SIP PRA trunk.
Transport Protocol |
Description |
---|---|
UDP |
Connectionless transport-layer protocol that provides event-based, simplified, and unreliable information transmission. When UDP is used to transmit data, each datagram is independent and contains the source and destination. Because UDP is unreliable, data may not reach the destination, and the time data reaches the destination and data integrity cannot be ensured. |
TCP |
Connection-oriented protocol. Before data transmission, both ends must establish a virtual channel. |
The PBX connects to the IMS network through a SIP PRA trunk group, as shown in Figure 2-23.
Procedure
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view | - |
2 |
Enter the voice view. |
voice | - |
3 |
(Optional) Configure the mappings between ISDN cause values and SIP error codes. |
cause-mapping { isdn-cause isdn-cause-value | sip-response sip-response-value } * | - |
4 |
Create a SIP PRA trunk group and enter the SIP PRA trunk group view. |
trunk-group trunk-group-name [ sip trunk-group ] | If a SIP PRA trunk group already exists, this command directly displays the SIP PRA trunk group view. |
5 |
Configure the signaling IP address and port number at the local end. |
signalling-address { ip ip-address | addr-name signal-addr-name-value } port port-value | - |
6 |
Configure the media IP address or dynamic media IP address name at the local end. |
media-ip { ip-address | addr-name addr-name-value } | - |
7 |
Configure the remote IP address and port number in static or DNS mode. |
peer-address static primary-ip-address primary-port-value [ secondary secondary-ip-address secondary-port-value ] | Use the static mode. The data of the trunk group must be the same as the data at the remote end. |
peer-address { dns-a primary-domain-value primary-port-value [ secondary secondary-domain-value secondary-port-value ] | dns-srv domain-value | dns-naptr domain-value } | Use the DNS mode. The data of the trunk group must be the same as the data at the remote end. If the DNS mode is used, the SIP PRA trunk group can be redirected for registration. The registration redirection process of a SIP PRA trunk group is the same as that of a SIP AG. For details, see SIP AG Registration Redirection Process. |
||
8 |
Configure the home domain to which the SIP IP trunk group of the peer device belongs. |
home-domain value | Set the parameter based on the requirements of the remote end. |
9 |
Configure a registrar URI. |
register-uri register-uri-value | Set the parameter based on the requirements of the remote end. |
10 |
Configure a group registration ID and authentication password. |
register-id register-uri-value [ password cipher password-value ] | A SIP PRA trunk uses the group registration mode, and you must configure a group registration ID and authentication password for it. The group registration ID and authentication password need to be obtained from the service provider, for example, carrier of the IMS network. |
11 |
Specifies the user name format for user authentication for the trunk group. |
number-parameter 19 num-para | Enumerated type. The options are as follows:
The default value is 0. |
12 |
Specifies the mode of checking the proxy server for the trunk group. |
number-parameter 33 num-para | Enumerated type. The options are as follows:
The default value is 2. The probe mode takes effect only when the IMS Core dual-homing function is not supported. If the server is configured to support the IMS Core dual-homing function, the OPTIONS and REGISTER modes are used. The probe mode is the default mode in a common process. The REGISTER mode is the default mode in the DT process. |
13 |
Reset the SIP PRA trunk group. |
reset | You must reset the SIP PRA trunk group to make new or modified parameters of the SIP PRA trunk group take effect. |
14 |
(Optional) Configure the authentication digest user name. |
digest-username digest-username-value | If no authentication digest user name is configured, the trunk group sends the encrypted registration ID to the peer device for authentication. |
15 |
(Optional) Configure the enterprise and DN set that the SIP PRA trunk group belongs to. |
enterprise enterprise-name [ dn-set dn-set-name ] | By default, a SIP IP trunk group 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. |
16 |
(Optional) Configure a transport protocol for the SIP trunk group. |
transfer transfer-value | The PBX supports the following transport protocols for a SIP trunk group: UDP (default), and TCP. |
17 |
(Optional) Configure the reliable connection mode. |
cs-mode mode-value | Configure this parameter when the transport protocol of the trunk group is TCP. The reliable connection modes include client, server, and client_server. |
18 |
(Optional) Configure a trunk group circuit selection mode. |
select-mode select-mode-value | The following circuit selection modes are available:
|
19 |
(Optional) Configure the default country code and area code. |
country-code country-code-value area-code area-code-value | This command configures the country code and area code for incoming calls over a SIP PRA trunk group. When incoming calls do not carry the country code and area code, the PBX adds the configured country code and area code so that intra-office users can view calls and call back through call display. |
20 |
(Optional) Configure the description for the SIP PRA trunk group. |
description desc-value | - |
21 |
(Optional) Configure trunk groups that are associated with the SIP PRA trunk group. |
circuit-state-relate trunk-group-name | This command associates other trunk groups with the SIP PRA trunk group. When the status of the SIP PRA trunk group changes, status of the associated trunk groups also changes. The SIP PRA trunk group can be associated only with PRA trunk groups or BRA trunk groups. By default, the SIP PRA trunk group is not associated with any trunk group. |
22 |
Save the configuration. |
save | - |
On the PBX, the same sipue user as the one on the IMS needs to be added, and this user needs to register with the PBX.
Example
An enterprise connects to the IMS network of a carrier through a SIP PRA trunk group named sippra, and the group registration ID is 81234567. The signaling and media IP addresses are both 192.168.1.3, and the signaling port number is 5062. The IP address of the IMS network is 192.168.10.10, and the port number is 5060. The home domain and registrar URI of the peer trunk group are both abcd.com.
<Huawei> system-view [Huawei] voice [Huawei-voice] trunk-group sippra sip trunk-group [Huawei-voice-trunkgroup-sippra] signalling-address ip 192.168.1.3 port 5062 [Huawei-voice-trunkgroup-sippra] media-ip 192.168.1.3 [Huawei-voice-trunkgroup-sippra] peer-address static 192.168.10.10 5060 [Huawei-voice-trunkgroup-sippra] home-domain abcd.com [Huawei-voice-trunkgroup-sippra] register-uri abcd.com [Huawei-voice-trunkgroup-sippra] register-id 81234567 password cipher Please input user password(1-32 chars):****** [Huawei-voice-trunkgroup-sippra] reset [Huawei-voice-trunkgroup-sippra] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the SIP PRA trunk group configuration. |
display voice trunk-group [ name [ para-value ] ] | The parameter values in the command output are consistent with the settings. |
Configuring a SIP IP Trunk Group
A SIP IP trunk group implements voice communication between PBX users and inter-office users. A SIP IP trunk is a packet trunk that uses SIP based on IP.
Context
The PBX and the peer device connected by a SIP IP trunk have equivalent positions. That is, the PBX at one end of a SIP IP trunk does not need to register with the device at the other end. Unlike a circuit trunk that defines a physical channel, a SIP IP trunk defines a logical channel and solves authentication and addressing problems between local and remote offices.
When you configure a SIP IP trunk for the PBX, the remote end must be the device supporting SIP IP trunks.
Table 2-8 describes the transport protocols that can be used by a SIP IP trunk.
Transport Protocol |
Description |
---|---|
UDP |
Connectionless transport-layer protocol that provides event-based, simplified, and unreliable information transmission. When UDP is used to transmit data, each datagram is independent and contains the source and destination. Because UDP is unreliable, data may not reach the destination, and the time data reaches the destination and data integrity cannot be ensured. |
TCP |
Connection-oriented protocol. Before data transmission, both ends must establish a virtual channel. |
The PBX can add several trunks of the same type to a trunk group, which are invoked by call routes. Even if there is only one trunk, a trunk group needs to be configured to facilitate trunk management.
The PBX connects to the remote device through SIP IP trunk groups, as shown in Figure 2-24.
Procedure
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view |
- |
2 |
Enter the voice view. |
voice |
- |
3 |
(Optional) Configure the mappings between ISDN cause values and SIP error codes. |
cause-mapping { isdn-cause isdn-cause-value | sip-response sip-response-value } * |
- |
4 |
Create a SIP IP trunk group and enter the SIP IP trunk group view. |
trunk-group trunk-group-name [ sip no-register ] |
If a SIP IP trunk group already exists, this command directly displays the SIP IP trunk group view. |
5 |
Configure the signaling IP address and port number at the local end. |
signalling-address { ip ip-address | addr-name signal-addr-name-value } port port-value |
- |
6 |
Configure the media IP address or dynamic media IP address name at the local end. |
media-ip { ip-address | addr-name addr-name-value } |
- |
7 |
Configure the remote IP address and port number in static or DNS mode. |
peer-address static primary-ip-address primary-port-value [ secondary secondary-ip-address secondary-port-value ] |
Use the static mode. The data of the trunk group must be the same as the data at the remote end. |
peer-address { dns-a primary-domain-value primary-port-value [ secondary secondary-domain-value secondary-port-value ] | dns-srv domain-value | dns-naptr domain-value } |
Use the DNS mode. The data of the trunk group must be the same as the data at the remote end. |
||
8 |
Configure the home domain to which the SIP IP trunk group of the peer device belongs. |
home-domain value |
Set the parameter based on the requirements of the remote end. |
9 |
Configure a registrar URI. |
register-uri register-uri-value |
Set the parameter based on the requirements of the remote end. |
10 |
Reset the SIP IP trunk group. |
reset |
You must reset the SIP IP trunk group to make new or modified parameters of the SIP IP trunk group take effect. |
11 |
(Optional) Configure the enterprise and DN set that the SIP IP trunk group belongs to. |
enterprise enterprise-name [ dn-set dn-set-name ] |
By default, a SIP IP trunk group 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. |
12 |
(Optional) Configure a transport protocol for the SIP trunk group. |
transfer transfer-value |
The PBX supports the following transport protocols for a SIP trunk group: UDP (default) and TCP. |
13 |
(Optional) Configure the reliable connection mode. |
cs-mode mode-value |
Configure this parameter when the transport protocol of the trunk group is TCP. The reliable connection modes include client, server, and client_server. |
14 |
(Optional) Configure a trunk group circuit selection mode. |
select-mode select-mode-value |
The following circuit selection modes are available:
|
15 |
(Optional) Configure the default country code and area code. |
country-code country-code-value area-code area-code-value |
This command configures the country code and area code for incoming calls over a SIP IP trunk group. When incoming calls do not carry the country code and area code, the PBX adds the configured country code and area code so that intra-office users can view calls and call back through call display. |
16 |
(Optional) Configure the description for the SIP IP trunk group. |
description desc-value |
- |
17 |
(Optional) Configure trunk groups that are associated with the SIP IP trunk group. |
circuit-state-relate trunk-group-name |
This command associates the SIP IP trunk group with other trunk groups. When the status of the SIP IP trunk group changes, status of the associated trunk groups changes synchronously. The SIP IP trunk group can be associated only with PRA trunk groups or BRA trunk groups. By default, the SIP IP trunk group is not associated with any trunk group. |
18 |
Save the configuration. |
save |
- |
Example
An enterprise network connects an IP PBX through a SIP IP trunk group named sipip01. The signaling and media IP addresses are both 192.168.1.3, and the signaling port number is 5063. The IP address of the peer IP PBX is 192.168.10.10, and its port number is 5060. The home domain and registrar URI of the peer trunk group are both abcd.com.
<Huawei> system-view [Huawei] voice [Huawei-voice] trunk-group sipip01 sip no-register [Huawei-voice-trunkgroup-sipip01] signalling-address ip 192.168.1.3 port 5063 [Huawei-voice-trunkgroup-sipip01] media-ip 192.168.1.3 [Huawei-voice-trunkgroup-sipip01] peer-address static 192.168.10.10 5060 [Huawei-voice-trunkgroup-sipip01] home-domain abcd.com [Huawei-voice-trunkgroup-sipip01] register-uri abcd.com [Huawei-voice-trunkgroup-sipip01] reset [Huawei-voice-trunkgroup-sipip01] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the SIP IP trunk group configuration. |
display voice trunk-group [ name [ para-value ] ] |
The parameter values in the command output are consistent with the settings. |