How to Connect Yeastar TB VoIP Gateway to 3CX

1. Introduction

The guide provides step-by-step configuration instructions of how to connect TB gateway and 3CX. The BRI trunk on TB gateway will be extended on 3CX phone system. With the connection you can achieve:

Make outbound calls via the BRI trunk on Yeastar TB200

Receive incoming calls from the BRI trunk on Yeastar TB200

Integration Modes

3CX and TB gateway use the Service provider mode to connect with each other

Firmware version:

In the guide, we tested TB200 and 3CX.

TB200: 18.18.0.3

3CX: 15.0.60903.0

Description:

IP address of 3CX: http://192.168.9.17:5000

IP address of TB200: 192.168.9.65

BRI main line number: 5503300

Figure 1 TB200 and 3CX connection

2. Connect Yeastar TB and 3CX

2.1 Create a SPS trunk on TB200 to 3CX

Path: Gateway> VoIP Settings> VoIP trunk> Add VoIP Trunk.

Figure 2 Add SIP Trunking in TB200

Trunk Type: SIP

Provider Name: 3CX

Hostname/IP: the IP of the 3CX, example: 192.168.9.17

After creating SIP Trunking, we can check the status of this trunk, it should be OK(green).

Path: Status> System Status> IP Trunk Status

Figure 3 Trunks Status

2.2 Create a SPS trunk on 3CX

Figure 4 SIP trunk on 3CX

Select Country: Choose “Generic”

Select Provider in your Country: Choose Generic SIP Trunk

Main Trunk No: Configure the main trunk number you, please fill in the BRI main line number. Example: 5503300

Figure 5 SIP trunk on 3CX

Enter name for Trunk: The name of the sip trunk, TB200

Register/Server/Gateway Hostname or IP: the IP of the TB200, 192.168.9.65

Type of Authentication: Not required –IP Based

Main Trunk No: the number you configure on the Figure 3. 5503300

Destination for calls during office hours: the destination for the office hours. Extension 100

Destination for calls outside office hours: the destination for off work time. Extension 100

Check the status after creating the SIP trunk on 3CX.

Figure 6 the status of the SIP trunk on 3CX

3. Incoming Calls from BRI to 3CX

In this section, we will configure incoming call to 3CX.

Figure 7 BRI to IP

Step1. Create a route from TB200 to 3CX.

Path: Gateway> Route Settings> Route List> Add New Route

Figure 8 Create Route from BRI to 3CX

Simple Mode: Yes

Route name: You can name whatever you want, to_3CX

Call Source: Trunk—BriTrunk1.

Call Destination: ServiceProvider-3CX.

Step 2. Configure inbound route on 3CX.

Path: Inbound Rules> Add DID Rule

Figure 9 Create an Inbound route on 3CX

Name: Name the name whatever you want, example: from_TB200

DID/DDI: the number which is the same as the main trunk number. Example: 5503300

Destination for calls during office hours: example 100 extension

Destination for calls outside office hours: example 100 extension

Now the external user can use his cell phone to 3CX phone system by dialing number 5503300. 5503300 is the line number of the BRI trunk on 3CX which is the same as DID number in the 3CX inbound route. The call will reach the extension 100

4. Outbound Calls from 3CX extension via BRI

In this section, we will configure outbound call for 3CX extensions.

Figure 10 IP to BRI

Step1. Configure route on TB200.

Path: Gateway> Route Settings> Route List> Add New Route

Figure 11 Create IP to Mobile Route

Simple Mode: Yes

Route Name: from_3CX

Call Comes in From: ServiceProvider--3CX

Send Call Through: Trunk—BriTrunk1

Step2. Create outbound route on 3CX

Path: Outbound Rules> Add

Figure 12 Create an outbound route on 3CX

Rule Name: You can name it whatever you want, to_TB200

Calls to numbers starting with prefix: if it is configured which means you need to dial the prefix ahead of your number, in the settings you have to call 0+external number

Call from extension(s): which extension can call from the route, extension 100

Route: choose the SIP trunk, TB200

Step3. Set DOD for 3CX extension. For example, extension 100 will use BRI DOD 5503301 to make outside calls via BRI

Figure 13 Configure DOD for 3CX extension

Step4. Test the call

Now, all the calls from 3CX will be routed to TB200. We can use extension on 3CX to call the external user directly. For example dial 013805044321. 0 is the prefix on 3CX outbound route