Configuring Local Survival
In the PBX mode, The device can function as the local gateway of an enterprise branch network to implement the local survival function.
Context
As the VoIP technology is rapidly developed and widely used, enterprise users deploy IP phones in the remote branch and deploy the SIP server at the central site to manage all calls of the remote branch. When communication between the branch and the headquarters fails, the local voice gateway in the branch must replace the headquarters SIP server at the central site to manage local voice services. When communication between the branch and headquarters is restored, the headquarters SIP server controls all calls.
In normal situations, the local gateway only provides network data switching and trunk interface functions. SIP terminals located in the branch register with the central node. POTS phones register with the central node through the local gateway agent which enables call outgoing through trunks. Figure 2-70 shows the call process.
If communication between the local gateway and center gateway fails (for example, the network fails or center gateway fails), the local gateway automatically takes charge of the voice service in the branch. After the SIP terminal and analog phone of the branch registers with the local gateway, the outgoing calls of the SIP terminal can be implemented by the local gateway. Figure 2-71 shows the call process.
- On the local survival network, the SIP server must be configured on the SIP terminals (IP phones or IADs). The SIP terminals (IP phones or IADs) register with the center gateway and local gateway in the descending order of priority.
- On the local survival network, configure SIP AT0 trunks for POTS phones.
Prerequisites
- The local survival node has been configured.
- The license controlling the local survival function is loaded.
When the local node synchronizes data with the central node, the central node checks a user according to the user number (telno) reported by the local node. If the user is not registered on the central node, the central node deletes the user according to the user name (pbxuser name).
The central node cannot delete a user whose user name and user number configured on the local node are different. For example, if a user with user name 6000 and user number 5000 is configured on the local node, the central node cannot delete this user. Therefore, it is recommended that you manually delete such users.
Procedure
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view |
- |
2 |
Enter the voice view. |
voice |
- |
3 |
Enter the local survival view. |
local-survival |
- |
4 |
Configure the server IP address and port. |
dataserver ip ip-address port port-number |
Default port value: 8099 |
5 |
Set the server type. |
dataservertype type-value |
Enumerated type. The values are as follows:
Default value: bmp |
6 |
Configure the IP address and port bound to the BIN channel. |
local-address ip ip-value port port-value |
Default port value: 8000 |
7 |
Configure the authentication password for the BIN channel. |
password cipher password-value |
The connection data between center gateway and local gateway must be configured. |
8 |
Configure and enable the synchronization interval of the BIN channel. |
sync-interval synchronization-interval-value |
The BIN channel sends synchronization request to the center gateway at intervals. |
9 |
Configure the transfer mode for the BIN channel. |
transfer transfer-value |
Enumerated type. The values are as follows:
Default value: TLS |
10 |
Configure the server SSL policy to be bound to the BIN channel. |
ssl-server-policy server-policy-name |
This command is valid only when the transfer mode of the BIN channel is set to TLS. |
11 |
Configure the trunk group between the local gateway and center gateway. |
primary-trunk-group trunk-group-name secondary-trunk-group trunk-group-name proxyreg-trunk-group trunk-group-name |
Trunks configured for central and local gateways in this topic are SIP trunks. To delete the trunk group, run the undo primary-trunk-group command. |
12 |
Reset the local survival configuration. |
reset |
- |
13 |
Save the configuration. |
save |
- |
Example
Configure the SIP IP trunk group uc, and SIP AT0 trunk group sipat0 between the local gateway and center gateway, set the IP address and port number of the center gateway U1900 series gateways to 172.16.15.160 and 8099, set the IP address and port of the local gateway to 172.16.15.201 and 8000, set the authentication password for the BIN channel to abcdefgh12345678 and transfer mode to TLS, and bind the client SSL policy client to the BIN channel.
<Huawei> system-view
[Huawei] voice
[Huawei-voice] local-survival
[Huawei-voice-local-survival] dataserver ip 172.16.15.160 port 8099
[Huawei-voice-local-survival] dataservertype U1900
[Huawei-voice-local-survival] primary-trunk-group uc proxyreg-trunk-group sipat0
[Huawei-voice-local-survival] local-address ip 172.16.15.201 port 8000
[Huawei-voice-local-survival] password cipher
Please input user password(16-32 chars):****************
[Huawei-voice-local-survival] sync-interval 2
[Huawei-voice-local-survival] transfer tls
[Huawei-voice-local-survival] ssl-server-policy client
[Huawei-voice-local-survival] reset
[Huawei-voice-local-survival] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the configurations of local survival. |
display voice local-survival status |
The parameter values in the command output are consistent with the settings. |
Check the remaining available time of the license for the best item. |
display voice local-survival lefttime |
NOTE:
The maximum remaining time of local survival is 720 hours, and it is updated every 6 hours. |