This guide explains how to connect Grandstream UCM to Yeastar TG VoIP gateway via service Provider SIP Trunk (Peer-to-Peer).
This guide has been tested with:
Yeastar TG400 188.8.131.52 version
UCM6102 184.108.40.206 version
After connectingTG400 and UCM6102, GSM/UMTS/CDMA trunk will be extended on UCM6102.
The following features can be achieved:
1. Make outbound calls from UCM via the GSM/UMTS/CDMA trunks of TG400
2. Receive calls from GSM/UMTS/CDMA trunks of TG400 at UCM.
IP address of UCM6102: 192.168.6.250
IP address of TG400: 192.168.6.233
2. Connect UCM6102 to TG400
Step 1. Create a SIP Trunk on UCM6102
Path: PBX<TrunksVoIP <TrunkService Provider
Type: peer SIP trunk
Provider Name: TG400
Hostname/IP: fill in TG's IP address, 192.168.6.233
Save and apply the changes, we can check the status of this trunk
Step 2. Create a Service Provider SIP trunk on TG400
Path: Gateway→VoIP Settings→VoIP Trunk
Trunk Type: Service Provider
Provider Name: give a name for the trunk.
Hostname/IP: fill in UCM IP address, 192.168.6.250, the default port is 5060.
Save and apply the changes, we can check the status of this trunk, it should be OK.
3. IP to Mobile
In this section, we introduce how to achieve making outbound calls from UCM6102 through GSM/UMTS/CDMA on TG400.
Step 1. Create one outbound route on UCM6102.
Path: PBX→Basic/Call Routes→Outbound routes→Create New Outbound Rules
Choose the SIP trunk “TG” which is connecting to Yeastar TG400. Set the dial rule, here we set Pattern as “_9.” and Strip 1 digit, meaning that you have to dial digit 9 before the destination number.
Step 2. Configure one “IP ->Mobile” Route on TG400.
Path: Gateway→Routes Settings→”IP->Mobile” Suppose that you want to use GSM trunk 1 to call out.
Route Name: give a name for the route, “UCM”.
Call Source: choose the VoIP trunk which is connected to UCM, “SPS—CUM”.
Call Destination: choose “Mobile—GSM1”.
Step 2. Test a call from UCM6102
Now, you can make external calls from UCM6102 through the trunk GSM1 on TG400. As the dial rule set on UCM outbound route, you need to dial 9 before the number. For example, if you want to call number 15880123456, you need dial 915880123456 on your phone.
4.Mobile to IP
In this section, Introduce how to route incoming calls from GSM trunks to UCM6102.
Step 1. Create an inbound route on UCM.
Path: PBX→Basic/Call Routes→Inbound routes→Create New Inbound Rules
Here we configure the inbound route as below:
DID Number: 123456
Destination: Extension 1000
The incoming calls with DID number 123456 would be routed to extension 1000.
Step 2. Configure one “Mobile ->IP” Route on TG.
Path: Gateway→Routes Settings→”Mobile->IP”
Route Name: give a name for the route, “UCM”
Call Source: choose the GSM1
Call Destination: choose the VoIP trunk which is connected to UCM, “SPS—UCM”.
Hotline: set Hotline to 123456, which is the same number with the DID number set on UCM Inbound route.
Step 3. Test a call.
Dial the trunk GSM1’s number(1625351623) on your mobile phone, the call will be routed to UCM extension1000.