Introduction
This article provides step-by-step configuration instructions of how to connect two Yeastar S-Series VoIP PBXs. We tested two S100 and name them S100_A and PBX_B for the following illustration. The two IPPBXs are behind routers, and has their own public IP addresses. You can also connect two IPPBXs via VPN network in a secure way.
Preparation
Since the two PBXs are behind routers, you need to do port forwarding on the both Router_A and Router_B. You need to forward the following ports on both routers:
- SIP port: UDP 5060 (default)
- RTP ports:UDP 10000-12000 (default)
Note: if you connect two PBXs in local network or via VPN network, you don’t need to do port forwarding.
Tip: you can forward web access port (default TCP 8088) on the router to test if the port forwarding is work or not. Try to log in Yeastar S100 remotely by https://Public IP address: 8088, if you cannot log in the IPPBX remotely, please first check your router.
Connecting Two Yeastar S-Series IPPBXs Using SIP Peer Trunk
Configuration on PBX_A
Step 1. Create a SIP Peer Trunk on PBX_A.
- Log in PBX_A web interface, navigate to Settings > PBX > Trunks, click Addto add a new trunk.
- Configure the VoIP trunk as the following figure shows.
- Trunk Status:Enabled
- Trunk Type:Peer Trunk
- Provider Name:give a name for the trunk, “Trunk_For_PBX_B”.
- Hostname/IP:enter PBX_B’s public IP and forwarded SIP port.
- Domain:enter PBX_B’s public IP.
- Click Saveand Apply.
- Go to PBX Monitor, check the trunk status. If the status shows , then the PBX_A is successfully connected to PBX_B.
Step 2. Create an outbound route on PBX_A.
- Navigate to Settings > PBX > Call Control > Outbound Route, click Add.
- Configure the outboundroute as the following figure show
- Name:give a name for the outbound route.
- Patterns:set to “2XXX”, which is the same as the PBX_B’s extension range .
- Member Trunks:choose the SIP trunk “Trunk_For_PBX_B”.
- Member Extensions:select extensions, the selected extensions will be allowed to call PBX_B’s extension.
Configuration on PBX_B
Step 1. Create a SIP Peer Trunk on PBX_B.
- Log in PBX_B web interface, navigate to Settings > PBX > Trunks, click Addto add a new trunk.
- Configure the VoIP trunk as the following figure shows.
- Trunk Status:Enabled
- Trunk Type:Peer Trunk
- Provider Name:give a name for the trunk, “Trunk_For_PBX_A”.
- Hostname/IP:enter PBX_A’s public IP and forwarded SIP port.
- Domain:enter PBX_A’s public IP.
- Click Saveand Apply.
- Go to PBX Monitor, check the trunk status. If the status shows , then the PBX_B is successfully connected to PBX_A.
Step 2. Create an outbound route on PBX_B.
- Navigate to Settings > PBX > Call Control > Outbound Route, click Add.
- Configure the outbound route as the following figure shows.
- Name:give a name for the outbound route.
- Patterns:set to “1XXX”, which is the same with the PBX_A’s extension format.
- Member Trunks:choose the SIP trunk “Trunk_For_PBX_A”.
- Member Extensions:select extensions, the selected extensions will be allowed to call PBX_A’s extension.
Now, you can test internal calls between two PBX_A and PBX_B.
Making Outbound Calls From PBX_A through PBX_B’s Trunk
Users in site A and site B can share trunks, we introduce how to share PBX_B’s trunks for users in site A in this section. Similar configuration can be set if you want to share PBX_A’s trunks for users in site B.
For example, the number of land line or the number of mobile phone in site B are 7-digits numbers, users in site A can use PBX_B’s PSTN trunk or other types of trunk to call the 7-digit numbers, you need to configure as below.
Step 1. Create an outbound route in PBX_A.
- Navigate to Settings > PBX > Call Control > Outbound Route, click Add.
- Configure the outbound route as the following figure shows.
- Name:give a name for the outbound route.
- Dial Patterns:here we set Pattern as “6.” and Strip 1, meaning that the users in site A should dial “6XXXXXXX” to make outgoing calls.
- Member Trunks:choose the SIP trunk “Trunk_For_PBX_B”.
- Member Extensions:select extensions
- Click Saveand Apply.
Step 2. Create an outbound route for local calls in PBX_B.
- Navigate to Settings > PBX > Call Control > Outbound Route, click Add.
- Configure the outbound route as the following figure shows.
- Name:give a name for the outbound route.
- Patterns:set to “XXXXXXX”, this is a 7-digit number format for local numbers in site B.
- Member Trunks:choose the PSTN trunk FXO.
- Member Extensions:select extensions.
- Click Saveand Apply.
Step 3. Create an inbound route in PBX_B.
- Navigate to Settings > PBX > Call Control > Inbound Route, click Add.
- Configure the inbound route as the following figure shows.
- Name:give a name for the outbound route.
- DID Pattern:enter XXXXXXX to match 7-digits numbers from PBX_A.
- Member Trunks:choose the SIP trunk “Trunk_For_PBX_A”.
- Destination: choose the outbound route created in step 2.
- Click Saveand Apply.
Now, the users in site A can dial 6XXXXXXX to make outbound calls through PBX_B’s PSTN trunks.
Making Outbound Calls From PBX_B through PBX_A’s Trunk
Users in site B and site A can share trunks, we introduce how to share PBX_A’s trunks for users in site B in this section.
For example, the number of land line or the number of mobile phone in site A are 7-digits numbers, users in site B can use PBX_A’s PSTN trunk to call the 7-digit local numbers, you need to configure as below.
Step 1. Create an outbound route in PBX_B.
- Navigate to Settings > PBX > Call Control > Outbound Route, click Add.
- Configure the outbound route as the following figure shows.
- Name:give a name for the outbound route.
- Dial Patterns:here we set Pattern as “6.” and Strip 1, meaning that the users in site A should dial “6XXXXXXX” to make outgoing calls.
- Member Trunks:choose the SIP trunk “Trunk_For_PBX_A”.
- Member Extensions:select extensions
- Click Saveand Apply.
Step 2. Create an outbound route for local calls in PBX_A.
- Navigate to Settings > PBX > Call Control > Outbound Route, click Add.
- Configure the outbound route as the following figure shows.
- Name:give a name for the outbound route.
- Patterns:set to “XXXXXXX”, this is a 7-digit number format for local numbers in site B.
- Member Trunks:choose the PSTN trunk FXO.
- Member Extensions:select extensions.
- Click Saveand Apply.
Step 3. Create an inbound route in PBX_A.
- Navigate to Settings > PBX > Call Control > Inbound Route, click Add.
- Configure the inbound route as the following figure shows.
- Name:give a name for the outbound route.
- DID Pattern:enter XXXXXXX to match 7-digits numbers from PBX_B.
- Member Trunks:choose the SIP trunk “Trunk_For_PBX_B”.
- Destination: choose the outbound route created in step 2.
- Click Saveand Apply.
Now, the users in site B can dial 6XXXXXXX to make outbound calls through PBX_A’s PSTN trunks.
7 Comments