Yeastar TG Gateway Integration Guide

Yeastar P-Series Appliance Edition

Version: 1.0

Date: 2021-07-16

Support: +86-592-5503301 | Support: support@yeastar.com | https://www.yeastar.com

Introduction

This guide provides a configuration example to describe how to extend GSM/3G/4G trunks for Yeastar P-Series PBX System using the Yeastar TG Gateway.

Background

The instructions provided in this guide are based on the following test environment:

EquipmentFirmware VersionIP Address
Yeastar P560 PBX System37.2.0.81192.168.6.124
Yeastar TG400 GSM Gateway91.3.0.21.4192.168.6.200

There are two SIM cards installed in Yeastar TG400 GSM Gateway. The following table shows mobile number prefixes of the two carriers.

SIM CardCarrierMobile Prefix
SIM Card 1Carrier A92
SIM Card 2Carrier B10

Diagram Description: A network diagram illustrating the connection between Yeastar P-Series PBX System and Yeastar TG400 GSM Gateway. It shows Carrier A and Carrier B connecting to SIM Card 1 and SIM Card 2 respectively within the TG400 Gateway. A SIP Trunk connects the TG400 Gateway to the Yeastar IPPBX, which is part of a Local Network with extensions Ext. 2000 and Ext. 2001.

Objectives

This guide provides guidance based on the above scenario to help you achieve the following objectives:

  • Connect Yeastar P-Series PBX System and Yeastar TG400 Gateway
  • Make Outbound Calls through a Designated GSM Trunk
  • Route Calls from Different Carriers to Different Destinations

Chapter 1: Connect Yeastar P-Series PBX System and Yeastar TG GSM Gateway

This topic introduces the steps to connect Yeastar P-Series PBX System and Yeastar TG400 via SIP peer trunks. After the two devices are connected, GSM trunks are extended on the Yeastar P-Series PBX System.

1.1 Create a SIP peer trunk on Yeastar IPPBX

  1. Log in to the PBX management portal, go to Extension and Trunk > Trunk, click Add.
  2. Configure the trunk basic settings:
    • Name: Enter a name to help you identify it. For example, TG400.
    • Trunk Status: Select Enabled.
    • Select ITSP Template: Select General.
    • Trunk Type: Select Peer Trunk.
    • Transport: Select UDP.
    • Hostname/IP: Enter the IP address of Yeastar TG400 gateway. In this example, enter 192.168.6.200.
    • Port: Enter the SIP port of Yeastar TG400 gateway. In this example, enter the default port 5060.
    • Domain: Enter the IP address of Yeastar TG400 gateway. In this example, enter 192.168.6.200.
  3. Click Save and Apply.

Wait for seconds and check the trunk status on the Trunk page. If the status shows ✔️, Yeastar IPPBX is connected to the Yeastar TG400 gateway.

1.2 Create a SIP peer trunk on Yeastar TG400 Gateway

  1. Log in to the gateway web interface, go to Gateway > VoIP Settings > VoIP Trunk, click Add VoIP Trunk.
  2. In the pop-up window, configure the following settings:
    • Trunk Type: Select Peer Trunk.
    • Type: Select SIP.
    • Provider Name: Enter a name to help you identify it.
    • Hostname/IP: Enter the IP address of Yeastar IPPBX and the SIP port. In this example, enter 192.168.6.124 and the default SIP port 5060.
  3. Click Save and Apply Changes.
  4. Wait for seconds and check the trunk status on the Status > System Status > Trunk Status page. If the status shows "OK", Yeastar TG400 Gateway is connected to the Yeastar IPPBX.

Chapter 2: Make Outbound Calls through a Designated GSM Trunk

Many carriers have call plans that let you make free or low-cost calls between other numbers through the same carrier network. The following guides you how to make outbound calls through designated GSM trunks to save call charges.

Scenario

In this scenario, you will route outbound calls through designated GSM trunks as follows:

Outbound Number FormatTrunkCarrier
Number with prefix 92GSM trunk 1Carrier A
Number with prefix 10GSM trunk 2Carrier B

Diagram Description: A network diagram showing the flow for making outbound calls. It depicts dialing a number with prefix 92 (e.g., 921234567) through Carrier A and SIM Card 1, routed via the Yeastar TG400 Gateway and SIP Trunk to the Yeastar IPPBX, and then to an extension. Similarly, dialing a number with prefix 10 (e.g., 108192837) uses Carrier B and SIM Card 2.

Step 1: Create an outbound route on Yeastar IPPBX

To allow PBX users to call through the Yeastar TG400 gateway, you need to create an outbound route on Yeastar IPPBX.

  1. Log in to the PBX management portal, go to Call Control > Outbound Route, click Add.
  2. Configure the following settings for the outbound route and leave other settings as default:
    • Name: Enter a name to help you identify it. For example, TO-TG400.
    • Dial Pattern: Set the dial patterns according to your needs. In this example, set Pattern to X., which means that users can dial any number without limitation.
    • Trunk: Select the SIP peer trunk that is connected to the Yeastar TG400. In this example, select the trunk TG400.
    • Extension/Extension Group: Select the extensions that are allowed to make calls through this outbound route. In this example, select all the extensions.
  3. Click Save and Apply.

Step 2: Create two 'IP to Mobile' routes on Yeastar TG400

Create an 'IP to Mobile' route for carrier A, and create another one for carrier B. These two routes will match the dialed numbers from PBX and send numbers out through designated GSM trunks.

  1. Log in to the gateway web interface, go to Gateway > Route Settings > IP to Mobile, click Add IP to Mobile Route.
  2. In the pop-up window, configure the route, then click Save and Apply Changes. The following table shows the required configurations for carrier A and carrier B.
SettingDescriptionFor Carrier AFor Carrier B
Simple Mode ℹ️To keep simple mode with basic settings or to expand more settings.NoNo
Route Name ℹ️Enter a name to help you identify it.To-CarrierATo-CarrierB
Call SourceSelect the SIP trunk that is connected to Yeastar IPPBX.SPS - P560SPS - P560
DID Number ℹ️Enter the pattern or number to match dialed numbers from Yeastar IPPBX.Enter 92. to allow the numbers with prefix 92.Enter 10. to allow the numbers with prefix 10.
Call DestinationSelect the GSM trunk that will be used to call out.Mobile - Trunk1Mobile - Trunk2

Note: If you want to match any incoming calls, you need to set DID Number to . (dot), or outbound calls would fail. ?

Step 3: Make test calls from Yeastar IPPBX

Examples:

  • Dial number 921234567, the call will be made through GSM trunk1.
  • Dial number 108192837, the call will be made through GSM trunk 2.

Chapter 3: Route Calls from Different Carriers to Different Destinations

When external users call to GSM trunks of different carriers, the calls will reach different destinations. This section gives instructions based on the following scenario.

Scenario

CarrierTrunkDestination
Carrier AGSM trunk 1: 9218273Extension 2000
Carrier BGSM trunk 2: 1019238Extension 2001

Diagram Description: A network diagram illustrating inbound calls from external users to GSM trunks. It shows a call to GSM trunk 1 (9218273) via Carrier A and SIM Card 1 reaching Extension 2000 on the Yeastar IPPBX. A call to GSM trunk 2 (1019238) via Carrier B and SIM Card 2 reaches Extension 2001 on the Yeastar IPPBX.

Step 1: Create two 'Mobile to IP' routes on Yeastar TG400

Create an 'Mobile to IP' route for carrier A, and create another one for carrier B.

  1. Log in to the gateway web interface, go to Gateway > Route Settings > Mobile to IP, click Add Mobile to IP Route.
  2. In the pop-up window, configure the route, then click Save and Apply Changes. The following table shows the required configurations for carrier A and carrier B.
SettingDescriptionFor Carrier AFor Carrier B
Simple Mode ℹ️To keep simple mode with basic settings or to expand more settings.YesYes
Route Name ℹ️Enter a name to help you identify it.CarrierA-To-P560CarrierB-To-P560
Call SourceSelect which trunk the call comes from.Mobile -- Trunk 1Mobile -- Trunk 2
Call DestinationSelect the SIP trunk that is connected to Yeastar IPPBX.SPS - P560SPS - P560
Hotline ℹ️Enter a hotline number to avoid two-stage dialing.888888999999

Note: The hotline number will be sent to the PBX as a DID number, which can be configured on PBX's inbound route to distinguish calls from different carriers. ?

Step 2: Create two inbound routes on Yeastar IPPBX

Create two inbound routes to distinguish calls from carrier A and carrier B, and route calls to different destinations.

  1. Log in to the PBX management portal, go to Call Control > Inbound Route, click Add.
  2. Configure the following settings for the inbound route and leave other settings as default, then click Save and Apply. The following table shows the required configurations for carrier A and carrier B.
SettingDescriptionFor Carrier AFor Carrier B
NameEnter a name to help you identify it.From-CarrierAFrom-CarrierB
DID Matching ModeSelect a mode according to the rule of DID numbers.DID PatternDID Pattern
PatternEnter a DID number to match the incoming calls.888888999999
TrunkSelect the SIP peer trunk that is connected to the Yeastar TG400.TG400TG400
Default DestinationSelect a destination for the inbound route.Extension 2000Extension 2001

Step 3: Make test calls to the GSM trunks

  • Dial the number of GSM trunk1 (9218273), the call will be routed to extension 2000.
  • Dial the number of GSM trunk 2 (1019238), the call will be routed to extension 2001.
Models: TG Gateway Integration Guide, Gateway Integration Guide, Integration Guide, Guide

PDF preview unavailable. Download the PDF instead.

yeastar-tg-gateway-integration-guide-p-series-appliance-edition-en Apache FOP Version 2.4 oXygen PDF Chemistry Version 22.1 Build 2020-12-17T11:36:52Z

Related Documents

Preview Yeastar NeoGate TG Series Installation Guide
This guide provides comprehensive instructions for installing and configuring the Yeastar NeoGate TG Series VoIP GSM Gateway, including hardware setup, network configuration, and basic operations.
Preview Yeastar TG800W VoIP Gateway: 8 WCDMA Ports - Product Specifications & Features
Explore the Yeastar TG800W VoIP Gateway, a robust solution with 8 WCDMA ports for seamless GSM/3G/4G to VoIP connectivity. Discover its features, technical specifications, and benefits for business communication.
Preview Yeastar P-Series Phone System: Unified Communications Solution
Explore the Yeastar P-Series Phone System, a comprehensive unified communications solution offering advanced features for businesses. Learn about its various editions (Appliance, Software, Cloud), deployment options, and detailed specifications for enhanced productivity and connectivity.
Preview Yeastar P-Series Appliance Edition: IP Phone Configuration Guide
Comprehensive guide to configuring various IP phones with Yeastar P-Series PBX systems, covering auto-provisioning and manual registration methods for brands like Yealink, Fanvil, Avaya, Cisco, and more.
Preview Yeastar Zoho Integration Guide for Cloud PBX
A comprehensive guide detailing the integration of Yeastar Cloud PBX with Zoho applications such as Zoho One, Zoho CRM, Zoho Mail, and Zoho Recruit. Covers setup, features like click-to-call and call pop-ups, user association, and troubleshooting common issues.
Preview Yeastar S-Series VoIP PBX Attestation of Conformity - CE & RoHS Compliance
Official Attestation of Conformity for Yeastar S-Series VoIP PBX (Models S300, S100, S20, S412, S50) confirming CE-marking and RoHS compliance, tested by Bay Area Compliance Laboratories Corp.
Preview Htek IP Phone Configuration Guide - Yeastar
A comprehensive guide from Yeastar on configuring Htek IP phones with the Yeastar S-Series VoIP PBX, covering manual registration, PnP provisioning, and DHCP provisioning.
Preview Yeastar P-Series PBX System: Unified Communications for SMEs
Comprehensive datasheet for the Yeastar P-Series PBX System, detailing its unified communications features, call center capabilities, remote working support, and general specifications for P550, P560, and P570 models, designed for small and medium-sized businesses.