How to Connect Two Yeastar S-Series VoIP PBXs

 

 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.

 2.png

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.

 3.png

  • 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.

 7.png

  • 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.

  1. Navigate to Settings > PBX > Call Control > Outbound Route, click Add.
  2. 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
  1. Click Saveand Apply.

Step 2. Create an outbound route for local calls in PBX_B.

  1. Navigate to Settings > PBX > Call Control > Outbound Route, click Add.
  2. 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.
  1. Click Saveand Apply.

Step 3. Create an inbound route in PBX_B.

  1. Navigate to Settings > PBX > Call Control > Inbound Route, click Add.
  2. Configure the inbound route as the following figure shows.

 13.png

  • 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.
  1. 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.

  1. Navigate to Settings > PBX > Call Control > Outbound Route, click Add.
  2. 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
  1. Click Saveand Apply.

Step 2. Create an outbound route for local calls in PBX_A.

  1. Navigate to Settings > PBX > Call Control > Outbound Route, click Add.
  2. 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.
  1. Click Saveand Apply.

Step 3. Create an inbound route in PBX_A.

  1. Navigate to Settings > PBX > Call Control > Inbound Route, click Add.
  2. 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.
  1. Click Saveand Apply.

Now, the users in site B can dial 6XXXXXXX to make outbound calls through PBX_A’s PSTN trunks.

 

Have more questions? Submit a request

7 Comments

  • -1
    Avatar

    Can i connect 8 branch together sir?

  • 0
    Avatar

    Can I connect same extension in one yeastar PBX & another is asterisk ( free PBX) Ex. Yeastar extension 2000 & same extension 2000 in asterisk. I tested long time call go from yeastar to asterisk PBX but call not come in from asterisk PBX to yeastar. Same extension number issue.

  • 0
    Avatar

    is it possible to do the same through u100 to s100 ?

  • 0
    Avatar

    can I use one E1 module in one pbx and use it by two pbx ?

  • 0
    Avatar

    I have the same question like samer shaheer rasheed yacoub

     

    Rasheed

    is it possible to do the same through u100 to s100 ?

     

    Please assist

  • 0
    Avatar

    I just followed this guide. Thank you for writing it. However there are two more steps that have to be done before it will work. 

    1. On both PBXs, under Settings, PBX, Call Control, Outbound Routes you must move the trunk you created (Trunk_For_PBX_A, Trunk_For_PBX_B, etc) above any other routes such as the default Routeout, especially if you are using FXO. If you don't when you dial an internal extension on the other system it will attempt to use the FXO(in my case) and fail.

    2. On both PBXs, under Settings, PBX, Extensions, edit each extension (that needs to dial/receive interoffice calls), go to advanced tab on each and check NAT.

    Hopefully these additional steps will save someone time in the future!

  • 0
    Avatar

    Can I make calls between two centrals in two cities without adding code?

Please sign in to leave a comment.