You are on page 1of 13

How to Connect Yeastar TG GSM

VoIP Gateway to 3CX

Version: 2.0
Revised: 2015.07.29

Yeastar Information Technology Co. Ltd.


How to Connect Yeastar TG Series VoIP Gateway to 3CX

Contents
1. Introduction......................................................................................................... 3
2. Connect 3CX to Yeastar TG400 .......................................................................... 4
2.1 Create a VoIP Trunk on TG400 ....................................................................... 4
2.2 Create a VoIP Trunk on 3CX ........................................................................... 4
3. Mobile to IP ......................................................................................................... 9
3.1 Create a "Mobile to IP" Route on TG400 ....................................................... 10
3.2 Configure the Inbound Route on 3CX ........................................................... 10
4. IP to Mobile ....................................................................................................... 11
4.1 Create an Outbound Rule on 3CX ................................................................ 12
4.2 Create a "IP to Mobile" Route on TG400 ....................................................... 12

2/13
How to Connect Yeastar TG Series VoIP Gateway to 3CX

1. Introduction
This application note shows how to connect 3CX Phone System to Yeastar TG
using SIP Trunking.

In this guide, we tested Yeastar TG400 with 3CX Phone System v12.0.32127.322; the
same configuration will apply to other TG series products.

Target:
1. Make outbound calls from 3CX via the GSM trunks of Yeastar TG directly.
2. Receive calls through GSM trunks of Yeastar TG at 3CX.

Description
IP address of Yeastar TG400: 192.168.5.158
IP address of 3CX: 192.168.5.148

Figure 1

3/13
How to Connect Yeastar TG Series VoIP Gateway to 3CX

2. Connect 3CX to Yeastar TG400

2.1 Create a VoIP Trunk on TG400

Path: Gateway  VOIP Settings  VOIP trunk  Add VOIP Trunk.


Choose “Service Provider” mode, and fill in 3CX IP address.

Figure 2

Trunk Type: Service Provider


Provider Name: 3CX
Hostname/IP 192.168.5.148
After saving and applying the changes, you will see the trunk is “Registered” in “Line
Status”.
Path: StatusSystem StatusTrunk Status

Figure 3

2.2 Create a VoIP Trunk on 3CX

1) Add VoIP Provider Wizard, then click "Next".

4/13
How to Connect Yeastar TG Series VoIP Gateway to 3CX

Figure 4

Name of Provider: TG400


Country: Generic
Provider: Generic SIP Trunk

2) Enter the TG400’s IP and click "Next".

5/13
How to Connect Yeastar TG Series VoIP Gateway to 3CX

Figure 5

3) Enter External Number and Authentication ID (You can enter any number as long
as it is not the same with extension numbers of 3CX, take 9999 as an examle here).
And click “Next”.
Note: "Maximum simultaneous calls " is four in the free version of 3CX. You can also
enter the number accordingly if you have bought license from 3CX.

6/13
How to Connect Yeastar TG Series VoIP Gateway to 3CX

Figure 6

4) Configure the default destination of inbound route to IVR for The SIP Trunking and
click “Next”.

Note: If you want to change the inbound route, you can double click the trunk you
want on the "Ports/Trunk Status" page after the SIP Trunk created.

7/13
How to Connect Yeastar TG Series VoIP Gateway to 3CX

Figure 7

5) Click “Skip” to finish the SIP trunk configuration.

Figure 8

6) On "Ports/Trunk status" page, we can check the trunk status.

8/13
How to Connect Yeastar TG Series VoIP Gateway to 3CX

Figure 9

3. Mobile to IP
In this section, we will configure incoming call to 3CX through Yeastar TG400.

Figure 10

9/13
How to Connect Yeastar TG Series VoIP Gateway to 3CX

3.1 Create a "Mobile to IP" Route on TG400

Path: GatewayRoutes SettingsMobile to IP

Figure 11

Simple Mode: No
Call Source: Mobile—GSM1. You can select any GSM line or mobile group. Here we
select GSM1 as an example.
Call Destination: SPS-3CX. All the calls from GSM1 will be sent to 3CX via this
trunk.
Hotline: 9999. You can enter the number "9999" in this field, which is same with the
SIP trunk external number on 3CX.

3.2 Configure the Inbound Route on 3CX

Click “Create DID” to configure the inbound route on 3CX.


Inbound route name: From TG400
DID/DDI number/mask: 9999, which is same with the trunk external number.
Available ports: TG400
Office Hours: IVR 8000

10/13
How to Connect Yeastar TG Series VoIP Gateway to 3CX

Figure 12

Now we can test incoming calls for 3CX. If you dial the GSM1 number on TG400, the
call will be routed to the IVR on 3CX.

4. IP to Mobile
In this section, we will configure outbound call from 3CX through Yeastar TG400.

Figure 13

11/13
How to Connect Yeastar TG Series VoIP Gateway to 3CX

4.1 Create an Outbound Rule on 3CX

Click "Create Outbound Rule" on 3CX.


Rule Name: Rule for TG400
Prefix: 9
Call from extension(s): 1000-1003,1005
Route: TG400
Strip: 1

Figure 14

4.2 Create a "IP to Mobile" Route on TG400

Path: GatewayRoutes SettingsIP to Mobile

12/13
How to Connect Yeastar TG Series VoIP Gateway to 3CX

Figure 15

Simple Mode: Yes


Route Name: From_3CX
Call Source: SPS—3CX
Call Destination: Mobile—GSM1

Save it and apply the changes, then you can dial outbound calls from 3CX via Yeastar
TG directly.

<The End>

13/13

You might also like