Interconnect Yeastar S-Series VoIP PBX and TG Gateway
configure Yeastar TG100
1. Connect Yeastar S300 and TG400
- On the Yeastar S300, create a SIP Peer Trunk, connecting to TG400.
- Go to Settings > Trunks, click Add.
- Set the trunk as a Peer Trunk.
- Name: Set a name to help you identify it.
- Trunk Status: Select Enabled.
- Select Country: Select General.
- Trunk Type: Select Peer Trunk.
- Protocol: Select SIP.
- Transport: Select UDP.
- Hostname/IP: Enter the IP address of TG200 and use the default SIP port 5060.
- Domain: Enter the IP address of TG200.
- Caller ID Number: Leave it blank.
- Caller ID Name: Leave it blank.
- Click Save and Apply.
- Go to Status > System Status > Trunk Status to check the trunk status.If the connection is successful, the status will show
.
- On the TG400, create a SIP Peer Trunk, connecting to Yeastar S300.
- Go to Gateway > VoIP Settings > VoIP Trunk, click Add VoIP Trunk.
- Configure the VoIP trunk.
- Trunk Type: Select Peer Trunk.
- Type: Select SIP.
- Provider Name: Set the trunk name.
- Hostname/IP: Enter the IP address of S300 and use the default SIP port 5060.
- Click Save and Apply Changes.
- Go to Status > System Status > Trunk Status to check the trunk status.If the connection is successful, the status will show “OK”.
2. Make Outbound Calls Through GSM/3G/4G Trunks
- On Yeastar S300, create an outbound route to allow users make outbound calls through TG200.
- Go to Settings > PBX > Call Control > Outbound Routes, click Add.
- Configure the outbound route.
- Name: Set the outbound route name.
- Dial Patterns: Set the dial patterns according to your needs.In our scenario, set Patterns to
9.
, set Strip to1
; users should dial prefix 9 before the target number. For example, to call number 123456, you should dial 9123456. - Member Trunks: Select the SIP trunk that is connected to TG200 to Selected box.
- Member Extensions: Select extensions to Selected box. The selected extensions can make outbound calls through TG200.
- Click Save and Apply.
- On TG200, set an IP to Mobile route to allow the PBX users make outbound calls through the GSM/3G/4G trunks.
- Go to Gateway > Route Settings > IP to Mobile, click Add IP to Mobile Route.
- Configure the IP to Mobile route.
- Simple Mode: Select Yes.
- Route Name: Set the route name.
- Call Source: Select the SIP trunk that is connected to the S300.
- Call Destination: Select a Mobile trunk or a Mobile trunk group.
- Click Save and Apply Changes.
- Make a call to test.For example, the PBX extension 1000 dials 91588035242, the user 1588035242 will ring.
3. Receive Inbound Calls From GSM/3G/4G Trunks
- On Yeastar S300, create an inbound route to accept incoming calls from TG200.
- Go to Settings > PBX > Call Control > Inbound Routes, click Add.
- Configure the inbound route.
- Name: Set the inbound route name.
- DID Pattern: Set a DID number. This DID number will be used to match the incoming calls from TG200.
- Member Trunks: Select the SIP trunk that is connected to TG200 to Selected box.
- Destination: Set a destination for the inbound route.In our scenario, set the Destination to an IVR. The PBX will route incoming calls of TG200 to the IVR.
- Click Save and Apply.
- On TG200, create a Mobile to IP route to route incoming calls to the PBX.
- Go to Gateway > Route Settings > Mobile to IP, click Add Mobile to IP Route.
- Configure the Mobile to IP route.
- Simple Mode: Select Yes.
- Route Name: Set the route name.
- Call Source: Select a Mobile trunk or a Mobile trunk group.
- Call Destination: Choose the SIP trunk that is connected to the S300.
- Hotline: Enter the DID number that is set on the inbound route of S300.
- Click Save and Apply ChangesMake a call to test.For example, the GSM trunk number is 17283733; use your mobile phone to call 17283733, you will hear the IVR prompt.