Set up Mirroring at bundled SIP Servers
Note:- If there are interface addresses set on
primary server Brekeke PBX admintool>[SIP Server]>[Configuration]>[System]>[Network]->[Interface address],
and these addresses will still need after failover, make sure the same interface addresses are also set on secondary server Brekeke PBX. - At router which both Brekeke PBX are behind, set port forwarding to the VITRUAL_IP_ADDRESS
- The user authentication accounts set on primary server will not be mirrored on secondary server side.
Please use shared database or other solutions for mirroring on authentication settings.
Mirroring settings at both primary and secondary Brekeke PBX bundled SIP Servers.
- At [SIP Server]>[Configuration]>[Mirroring], set
---------------------------------------------------
On/Off: on
Role: "primary" or "secondary" according to the machine role
Virtual IP Address: VIRTUAL_IP_ADDRESS
Pair IP Address: the other sever IP address in the same IP segment
on primary server set SECONDARY_ IP_ADDRESS;
on secondary server, set PRIMARY_IP_ADDRESS
Mirroring Request Pattern: ^REGISTER
---------------------------------------------------
The setting of [Mirroring Request Pattern] cannot be changed. Only REGISTER SIP requests on primary server can be mirrored on the secondary Brekeke PBX bundled SIP Server. This will make both primary and secondary server have the same registered clients.
Example:
PRIMARY_IP_ADDRESS: 192.168.200.10 /255.255.255.0 and 172.16.0.10 / 255.255.0.0
SECONDARY_IP_ADDRESS: 192.168.200.20 / 255.255.255.0
VIRTRUAL_IP_ADDRESS: primary IP, 172.16.0.10 / 255.255.0.0
Gateway IP address: 172.16.0.1/255.255.0.0
At pirmary server [SIP Server]>[Configuration]>[Mirroring], set
---------------------------------------------------
On/Off: on
Role: primary
Virtual IP Address: 172.16.0.10 (VIRTRUAL_IP_ADDRESS)
Pair IP Address: 192.168.200.20 (SECONDARY_IP_ADDRESS)
Mirroring Request Pattern: ^REGISTER
---------------------------------------------------
At secondary server [SIP Server]>[Configuration]>[Mirroring], set
---------------------------------------------------
On/Off: on
Role: secondary
Virtual IP Address: 172.16.0.10 (VIRTRUAL_IP_ADDRESS)
Pair IP Address: 192.168.200.10 (PRIMARY_IP_ADDRESS)
Mirroring Request Pattern: ^REGISTER
--------------------------------------------------- - press [Save and Update] button
- Add the following dial plan rule on secondary SIP Server, and click [Apply Rules] button
Rule: reject non-mirroring REGISTER
-------------------------
[Matching Patterns]
$mirroring = false
$primary = false
$request = ^REGISTER
[Deploy Patterns]
$action = 200
------------------------- - If Authentication for REGISTER is used, set the same realm at both PBX bundled SIP Servers
[SIP Server]>[configuration]>[SIP]>[Authentication]>[Realm(ex. domain name)] - Restart primary server machine
- Restart secondary server machine
Primary Brekeke PBX bundled SIP Sever > [Server Status] > [mirroring-role]: primary
Secondary Brekeke PBX bundled SIP Server > [Server Status] > [mirroring-role]: secondary
Access Brekeke PBX admintool from Virtual IP address, it will be primary server.
Test mirroring:
- Register UAs to Virtual IP address or router's global IP address, the registration record will show on both primary and secondary servers.
- Delete any registered client record from primary server, the update also shows on the secondary server
- when there is call, the session will only show on primary server because [Mirroring Request Pattern] is only for REGISTER. No session will keep on secondary server.

