How to Connect UCM to TG Gateway

1. Introduction
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 53.18.0.44 version
UCM6102 1.0.10.39 version

Target:
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.

Description:
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
Path:StatusPBX StatusTrunks

Step 2. Create a Service Provider SIP trunk on TG400
Path: Gateway→VoIP Settings→VoIP Trunk


Trunk Type: Service Provider
Type: SIP
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.
Path: StatusSystem<StatusTrunk<Status

 

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.


[The End]

Have more questions? Submit a request

6 Comments

  • 0
    Avatar

    I think we should strip one digit in UCM outbound routes.

  • 0
    Avatar

    hi i was followed the configurations above,my inbound or incoming is fine. but the outbound call is not working, when i dialed 8 which 8 digits here in Qatar i use 8 as pattern. but only busy tone and displaying FAILED. Please help me to resolve this problem... thanks!

  • 0
    Avatar

    AI, do you need to send out the first digit 8? If yes, please setup on the outbound rule page, strip 0 digit or leave the strip filed blank then try again.

  • 0
    Avatar

    Hi this is the screen shot of my configuration, please check if is correct, 




  • 0
    Avatar

    hello 

    thank you for the brilliant walk through..i have the TG200v2

    it worked perfectly but i am able to call from only 1 sim..i receive calls on both sim but can only call 1 sim 

    please advise

  • 0
    Avatar

    Tarek, you can use the mobile group for a check or you  can create another one mobile to ip route and then set up the related DID Numbers.

     

Please sign in to leave a comment.