Professional Documents
Culture Documents
Version: 1.0
Date: 2013.11.15
http://www.yeastar.com 1/13
How to Connect Elastix to NeoGate TG via SIP Trunking
Contents:
1. Introduction ............................................................................................ 3
2. Connect Elastix to NeoGate TG .................................................................. 4
2.1 Create a Service Provider SIP Trunk on Elastix........................................ 4
2.2 Create a VoIP Trunk on NeoGate TG ...................................................... 6
3. IP to Mobile ............................................................................................ 7
3.1 Create an Outbound Route on Elastix .................................................... 7
3.2 Create Mobile Group on NeoGate with "Balance" Strategy ........................ 8
3.3 Create “IP to Mobile” Route .................................................................. 9
4. Mobile to IP .......................................................................................... 10
4.1 Create a “Mobile to IP” Route on NeoGate TG ....................................... 10
4.2 Create an Inbound Route on Elastix .................................................... 12
4.3 Make a Call to Elastix through NeoGate TG .......................................... 13
http://www.yeastar.com 2/13
How to Connect Elastix to NeoGate TG via SIP Trunking
1. Introduction
This application note shows how to connect Elastix to NeoGate TG via SIP
trunking. In this guide, we will take NeoGate TG800 as an example; the same
configuration will apply other TG series products.
Target:
1. Make outbound calls from Elastix via the GSM trunks of NeoGate TG directly.
2. Receive calls from GSM trunks of NeoGate TG at Elastix.
Description:
IP address of Elastix: 192.168.5.178
IP address of NeoGate TG800: 192.168.5.149
Figure 1
http://www.yeastar.com 3/13
How to Connect Elastix to NeoGate TG via SIP Trunking
Figure 2
http://www.yeastar.com 4/13
How to Connect Elastix to NeoGate TG via SIP Trunking
Figure 3
PEER Details:
host=192.168.5.149
type=peer
qualify=yes
disallow=all
allow=ulaw,alaw,gsm
http://www.yeastar.com 5/13
How to Connect Elastix to NeoGate TG via SIP Trunking
After creating the SIP trunk, we can check the status of this trunk, it should be
OK.
Path: PBXOptionUnembedded freePBX
Log in the FreePBX Asterisk CLI, enter the command “sip show peers” and click
“Execute”, the status will be seen.
Figure 4
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: StatusSystem StatusTrunk Status
Figure 6
http://www.yeastar.com 6/13
How to Connect Elastix to NeoGate TG via SIP Trunking
3. IP to Mobile
In this section, we will configure outbound call from Elastix through Neogate TG.
Figure 7
http://www.yeastar.com 7/13
How to Connect Elastix to NeoGate TG via SIP Trunking
Figure 8
There are multiple GSM channels installed in NeoGate TG for outbound calls.
Here is an example:
Customer wants to dial external numbers onElastix side through NeoGate TG
directly, NeoGate TG should route the call via the GSM trunk which is least used.
http://www.yeastar.com 8/13
How to Connect Elastix to NeoGate TG via SIP Trunking
Figure 9
Save it and apply the changes.
Figure 10
http://www.yeastar.com 9/13
How to Connect Elastix to NeoGate TG via SIP Trunking
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
NeoGate TG directly.
4. Mobile to IP
In this section, we will configure incoming call to Elastix through Neogate TG.
Figure 11
http://www.yeastar.com 10/13
How to Connect Elastix to NeoGate TG via SIP Trunking
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.
http://www.yeastar.com 11/13
How to Connect Elastix to NeoGate TG via SIP Trunking
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.
http://www.yeastar.com 12/13
How to Connect Elastix to NeoGate TG via SIP Trunking
Now we can test incoming calls for Elastix. If you dial the GSM1 number on
Neogate TG, the call will be routed to the IVR on Elastix.
Note: If there is no "Hotline" set for "Mobile to IP" route on Neogate TG, 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.
<End>
http://www.yeastar.com 13/13