1. Introduction
This guide shows how to connect Yeastar S series PBX to TG GSM VoIP Gateway via SIP trunking. Here we will take TG800 as example. And the same configuration will apply for other TG models.
Target:
- Make outbound calls from Yeastar S-Series IPPBX via the GSM trunks of TG800 directly.
- Receive calls from GSM trunks of TG800 at Yeastar S-Series IPPBX.
Description:
- IP address of Yeastar S-Series IPPBX: 192.168.9.130
- IP address of TG800: 192.168.9.122
Figure 1
2. Connect Yeastar S-Series IPPBX and TG800 by SIP trunk
2.1 Create a Service Provider SIP trunk on Yeastar S-Series IPPBX
Path: Setting>PBX>Trunks
Fill in the IP of TG800 in the “Hostname/IP” field.
Figure 2
After saving and applying the changes, you will see the trunk is green tick in “Trunk Status”.
Path: PBX Monitor>Trunks
Figure 3
2.2 Create a VoIP Trunk on TG800
Path: Gateway>VoIP Settings>VoIP Trunk>Add VoIP Trunk
Choose “Service Provider” mode, and fill in Yeastar S-Series IPPBX IP address.
Figure 4
- Trunk Type: Service Provider
- Provider Name: S100
- Hostname/IP: 192.168.9.130
After saving and applying the changes, you will see the trunk is “Registered” in “Line Status”.
Path: Status>System Status>Trunk Status
Figure 5
3. Routing - IP to Mobile
In this section, we will configure settings for outbound call from Yeastar S-Series IPPBX through TG800.
Figure 6
3.1 Create an Outbound Route on Yeastar S-Series IPPBX
Path: Setting>PBX>Call Control>Outbound Routes
Choose the SIP trunk "TG800" and set the rule for the outbound as the figure shows, which allows users to dial any number more than 1 digit.
Figure 7
- Dial Pattern: X.
- Seleted Trunk:TG800(SIP-Peer)
3.2 Create a Mobile Group on TG800
There are multiple GSM channels installed in TG800 for outbound calls.
Here is an example:
Customer wants to dial external numbers on Yeastar S-Series IPPBX side through TG800 directly, TG800 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 the right, as for strategy, we can choose “Balance” mode.
Figure 8
Save it and apply the changes.
3.3 Create an “IP to Mobile” Route
Path: Gateway>Routes Settings>IP to Mobile
Figure 9
- Simple Mode: No
- Choose “Simple Mode” to “No”, you will see the advanced settings.
- Call Source: SPS-S100
- Call Destination: Mobile Group--All_GSM
The default setting “X.” for “Outbound Dial Pattern” allows users to call any external number more than 1 digit out without restriction.
Save it and apply the changes, then you can make outbound calls from Yeastar S-Series IPPBX via TG800 directly.
Except Mobile Group selected as the Call Destination, you could also single GSM port as required.
While you may pay attention to how to configure the several "IP to Mobile" routes with different Call Destination. The scenario is to pick up the specific GSM port to dial. Basically like, call requires to be dialed through GSM port 1 if called number started with 180; number started with 136 to GSM port 2; number started with 186 to GSM port 3 and so on. Then please refer to this instruction: How-to-Understand-the-IPtoMobile-Route-of-TG-gateway
4. Routing - Mobile to IP
In this section, we will configure the settings for incoming call to Yeastar S-Series IPPBX through TG800.
Figure 10
4.1 Create a “Mobile to IP” Route on TG800
Path: Gateway>Routes Settings>Mobile to IP
Figure 11
- 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-S100. All the calls from GSM1 will be sent to Yeastar S-Series IPPBX via this trunk.
- Hotline: 9999. This means deliver DID number 9999 to SIP trunk.
4.2 Create an Inbound Route on Yeastar S-Series IPPBX
Path: Setting>PBX>Call Control>Inbound Routes
Figure 12
- Route Name: TG800_To_S100
- DID Number: 9999. DID number should be same to the Hotline number which you set in TG’s Mobile to IP route.
- Selected Trunks: TG800, which is created on Yeastar S-Series IPPBX connecting to TG800.
- Destination: IVR-6500. The call which DID is 9999 will reach the IVR-6500
4.3 Make a Call to Yeastar S-Series IPPBX through TG800
Now we can test incoming calls for Yeastar S-Series IPPBX. If you dial the GSM1 number on TG800, the call will be routed to the IVR on Yeastar S-Series IPPBX.
Note: If there is no "Hotline" set for "Mobile to IP" route on TG800, 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 Yeastar S-Series IPPBX IVR.
0 Comments