How to Connect 3CX and Yeastar S-Series VoIP PBX

Introduction

This article provides step-by-step configuration instructions of how to connect 3CX phone system and Yeastar S-Series VoIP PBX. After connecting 3CX and Yeastar S-Series IPPBX, you can achieve:

  • Making internal calls between 3CX and Yeastar S-Series IPPBX
  • Making outgoing calls from 3CX through Yeastar S-Series IPPBX’s trunks
  • Receiving Yeastar S-Series IPPBX’s incoming calls at 3CX

1.png

In this article, we tested 3CX v15 and Yeastar S100 v30.4.0.15, the two PBX are installed in different places and are connected via VPN network.

  • Yeastar S100 Extensions: 3XXX
  • 3CX Extensions: 0XX

NAT and Port Forwarding

In this article, we connect two PBXs via VPN network in a secure way. If you connect the two remote PBXs via public IP or domain, and the PBXs are behind routers, you need to forward ports on both the two routers.

Check the default ports below.


Port

3CX

Yeastar S-Series VoIP PBX

SIP

UDP 5060

UDP 5060

RTP

UDP 9000-9500

UDP 10000-12000

Note: after successfully forwarding the ports, you need to use the public IP/ domain and forwarded ports to set up SIP trunks.

Intercommunication between 3CX and Yeastar S100

 2.png

Step 1 Create SIP Trunk on 3CX

  1. Log in 3CX Web interface, click SIP Trunks > Add SIP Trunk, set the trunk type and click OK.
    3.png 
    • Country: Generic
    • Provider: Generic SIP Trunk
    • Main Trunk No: main trunk number refers to DID number for the SIP trunk, here we set to “9999”.
  2. Enter name for the SIP trunk and enter Yeastar S100’s IP in the filed Registrar/Server/Gateway Hostname or IP, leave other settings as default.4.png
  3. Click OK and check the trunk status. If the status shows green, then the trunk is successfully connected to Yeastar S100.

Step 2 Create Outbound Rule on 3CX

  1. Click Outbound Rules > Add, create an outbound route.
  2. Set the Rule Name.
  3. Apply the rule to call Yeastar S100 extensions.
    6.png
    • Calls to number starting with prefix: enter the Yeastar S100 extension prefix, the extension format is 3XXX, so we set to “3”.
    • Calls from extension(s): set which extensions are allowed to call through this outbound rule.
  4. Choose make outbound calls on which trunk, here we choose the SIP trunk which is connected to Yeastar S100.7.png
  5. Click OK.

Step 3 Create Inbound Route on 3CX

  1. Click Inbound Rules > Add, create an inbound route to receive incoming calls from Yeastar S100.
  2. Set the rule Name and choose DID/DDI number as the SIP trunk’s Main trunk number.8.png
  3. Select the inbound rule’s destination number, here we set to extension 001.9.png
  4. Click OK.

Step 4 Create SIP Trunk on Yeastar S100

  1. Log in Yeastar S100 web interface, navigate to Settings > PBX > Trunks, click Add to add a new trunk.
  2. Configure the VoIP trunk as the following figure shows.
    10.png
    • Trunk Status: Enabled
    • Trunk Type: Peer Trunk
    • Provider Name: give the trunk a name.
    • Hostname/IP: enter 3CX’s IP address.
    • Domain: enter 3CX’s IP address.
  3. Click Save and Apply.
  4. Go to PBX Monitor, check the trunk status. If the status shows , then the S100 is successfully connected to 3CX.

Step 5 Create Outbound Route on Yeastar S100

  1. Navigate to Settings > PBX > Call Control > Outbound Route, click Add.
  2. Configure the outbound route as the following figure shows.
    11.png
    • Name: give the outbound route a name.
    • Patterns: set to 9999, which is the same with the SIP trunk Main trunk number (DID number) on 3CX.
    • Member Trunks: choose the SIP trunk “3CX”.
    • Member Extensions: select extensions.

Step 6 Test Internal Call Between 3CX and Yeastar S100

Now, you can test internal calls between Yeastar S100 and 3CX. For example:

  • Use 3CX’s extension 001 dial 3001, the extension 3001 will ring.
  • Use Yeastar S100’s extension 3001 dial 9999, the call will be routed to 3CX inbound rule’s destination.

Making Outgoing Calls from 3CX through Yeastar S100’s Trunks

In this section, we will show you how to make outgoing calls from 3CX through Yeastar S100’s trunks. Here we will use Yeastar S100’s FXO trunks to make outgoing calls.

  1. On Yeastar S100, go to PBX Monitor, check if the FXO trunks are ready to be used.
  2. Go to Settings > PBX > Call Control > Outbound Routes, create an outbound route for the FXO trunks. Here we set Dial Pattern as “9.”, and Strip1” digit, which means that you need to dial prefix 9 before the destination number. For example, if you want to call number 123456, you need to dial 9123456.12.png
  3. Go to Settings > PBX > Call Control > Inbound Routes, create an inbound route for 3CX SIP trunk.
    13.png
    • Name: set a name for the inbound route.
    • DID Pattern: set to the same dial pattern of the outbound route in Step2.
    • Member Trunk: choose the 3CX SIP trunk.
    • Destination: set to the outbound route in Step2.
  4. Go to 3CX Outbound Rule, double click the outbound rule “To-S100” to edit it, add call prefix 9. 14.png
  5. Click OK.
  6. Test a call from 3CX extension. For example, call number 123456, you need dial 9123456.

Important:
Please adjust the outbound route order to ensure that you can make outbound calls successfully.

15.png

Receiving Yeastar S100’s Incoming Call at 3CX

In this section, we will introduce how to forward Yeastar S100’s incoming calls to 3CX. We will forward all incoming calls of FXO trunk to 3CX.

  1. On Yeastar S100 Web interface, go to Settings > PBX > Call Control > Outbound Route, create a new outbound route. This outbound route will be used to forward incoming calls to 3CX.16.png
    • Name: specify a name for the outbound route.
    • Patterns: set to “X.”, which will allow all numbers through this outbound route.
    • Member Trunks: choose the 3CX SIP trunk.
    • Member Extensions: choose allowed extensions.
  2. Click Save and Apply.
  3. Go to Settings > PBX > Call Control > Outbound Route, create a new inbound route for the FXO trunks.17.png
    • Name: specify a name for the inbound route.
    • Member Trunk: choose FXO trunks.
    • Destination: choose the outbound route in Step1.
  4. Click Save and Apply.
  5. Edit the FXO trunks, set a DID Number for the trunks. The DID number is used to match the DID Number in 3CX’s inbound route.18.png
  6. Click Save and Apply.
  7. Make a call in the Yeastar S100’s FXO trunks, the call will be forwarded to 3CX’s inbound route destination.
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.