How to Connect Elastix to Yeastar TG

1. Introduction

This application note shows how to connect Elastix to Yeastar TG via SIP trunking. In this guide, we will take Yeastar TG400 as an example; the same configuration will apply other TG series products.

Target:

  • Make outbound calls from Elastix via the GSM trunks of Yeastar TG directly.
  • Receive calls from GSM trunks of Yeastar TG at Elastix.

Description:

  • IP address of Elastix: 192.168.5.178
  • IP address of Yeastar TG400: 192.168.5.149

                                                                                  Figure  1

 

2. Connect Elastix to TG400

2.1 Create a Service Provider SIP Trunk on Elastix

Path: PBX--Trunks--Add SIP Trunk

                                                                                   Figure  2

                                                                                     Figure  3

PEER Details:

  • host=192.168.5.149
  • type=peer
  • qualify=yes
  • disallow=all
  • allow=ulaw,alaw,gsm

After creating the SIP trunk, we can check the status of this trunk, it should be OK.
Path: PBX--Option--Unembedded freePBX
Log in the FreePBX Asterisk CLI, enter the command “sip show peers” and click “Execute”, the status will be seen.

                                                                                          Figure  4

 

2.2 Create a VoIP Trunk on Yeastar TG

Path: Gateway--VoIP Settings--VoIP Trunk--Add VoIP Trunk
Choose “Service Provider” mode, and fill in Elastix IP address.

                                                                                    Figure  5

  • Trunk Type: Service Provider
  • Provider Name: Elastix
  • Hostname/IP: 192.168.5.178

After saving and applying the changes, you will see the trunk is ‍“Registered” in ‍“Line Status”.

Path:‍Status--System Status--Trunk Status

                                                                                 Figure  6

3. IP to Mobile

In this section, we will configure outbound call from Elastix through Yeastar TG.


                                                                                 Figure  7

 

3.1 Create an Outbound Route on Elastix 

Path: PBX--Outbound Routes--Add Route
Choose the VoIP trunk "NeoGate_TG" and set the rule for the outbound as the picture shows, which allows users to dial any number.

                                                                                      Figure  8

 

3.2 Create Mobile Group on TG400

There are multiple GSM channels installed in TG400 for outbound calls.

Here is an example:
Customer wants to dial external numbers on Elastix side through TG400 directly, TG400 should route the call via the GSM trunk which is least used.

Path: Gateway--Mobile List--Mobile Group
In this example, we need to choose all GSM channels to right side, as for strategy, we can choose ‍“Balance” mode.

                                                                                       Figure  9

Save it and apply the changes.

 

3.3 Create ‍“IP to Mobile” Route

Path: Gateway--Routes Settings--IP to Mobile

                                                                                   Figure  10

  • Simple Mode: No 
  • Choose “Simple Mode” to “No”, you will see the advanced settings.
  • Call Source: SPS-Elastix
  • Call Destination: Mobile Group--All_GSM

The default setting “X.” for “Outbound Dial Pattern” allows users to make any external number out without restriction.

Save it and apply the changes, then you can dial outbound calls from Elastix via TG400 directly.

 

4. Mobile to IP

In this section, we will configure incoming call to Elastix through TG400.


                                                                                      Figure 11

 

4.1 Create a ‍“Mobile to IP” Route on TG400

Path: Gateway--Routes Settings--Mobile to IP

                                                                                       Figure 12

  • Simple Mode: No 
  • Choose “Simple Mode” to “No”, you will see the advanced settings.
  • Call Source: Mobile—GSM1. You can select any GSM line or mobile group. Here we select GSM1 as an example.
  • Call Destination: SPS-Elastix. All the calls from GSM1 will be sent to Elastix via this trunk.
  • Hotline: 15105989843. You can enter the number as 15105989843 in this field, which is the SIM card number.

 

4.2 Create an Inbound Route on Elastix

     

                                                                              Figure 13

  • Description: From_NeogateTG
  • DID Number: 15105989843. DID number should be same to the Hotline number which you set in TG’s Mobile to IP route.
  • Set Destination: IVR-Welcome. The call which DID is 15105989843 will reach the IVR-Welcome.

 

4.3 Make a Call to Elastix through TG400

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

Note: If there is no "Hotline" set for "Mobile to IP" route on TG400, when you dial the GSM trunk number on TG, a ring tone will be heard after the call is connected. Then, you dial the number to reach Elastix.

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.