Connecting TA FXS Gateway to TA FXO Gateway

For companies that have geographically distributed office, there is no need for them to install a IP PBX at the remote offices. Users could simply set up Yeastar TA FXS VoIP Gateway and TA FXO VoIP Gateway in remote offices without any SIP server. This scenario allows organizations to access FXO(PSTN) trunks (analog phone lines) through IP network remotely and save long-distance call charge.In this Article

In this Guide

We introduce how to connect TA FXS Gateway (located in USA) and TA FXO Gateway (located in China). After connecting, users in USA could make local calls through PSTN trunk located in China and save international charges.

This guide has been tested with:

Scenario Description:

Assume that USA office and China office all have a public IP address.

  • TA810’s Public IP address: 110.81.109.79
  • TA800’s Public IP address: 3.88.39.2

connect VoIP FXO Gateway with FXS Gateway

                                                                  Figure 1 Connect TA800 and TA810

 

2. How to connect FXO and FXS Gateway (TA810 to TA800)

Step 1. Create a VoIP Trunk on TA810, connecting to TA800.

Path: Gateway→VoIP Settings→VoIP Trunk

Step 1. Create a VoIP Trunk on TA810, connecting to TA800.

Path: Gateway→VoIP Settings→VoIP Trunk

Create a Service Provider SIP Trunk on TA810 FXO VoIP Gateway

                                          Figure 2 Create a Service Provider SIP Trunk on TA810

  • Trunk Type: Service Provider
  • Type: SIP
  • Provider Name: give a name for the trunk, TA800.
  • Hostname/IP: fill in TA800’s IP address, 3.88.39.2, the default port is 5060.

Save and apply the changes, we can check the status of this trunk, it should be OK.

Path: Status--System Status--Port/Trunk Status

VoIP Trunk Status on TA810 FXO Gateway

                                                                  Figure 3 VoIP Trunk Status on TA810

Step 2. Configure one VoIP Server on TA800,connecting to TA810.

Path: Gateway→VoIP Settings→VoIP Server Settings

Configure a VoIP server on TA800 FXS gateway

                                                Figure 4 Configure a VoIP Server on TA800

  • Server Name: TA810
  • Type: SIP
  • Enable Register: Do NOT check this option as we connect TA810 and TA800 only use IP address.
  • Hostname/IP: fill in TA810’s Public IP address,110.81.109.79.
  • Domain: fill in TA810’s IP address, 110.81.109.79, the default port is 5060.

Step 3. Edit the Dial Pattern Template on TA800.

Path: Gateway→VoIP Settings→VoIP Server Settings

The default dial pattern is set as ".", which allows you to dial any number out. In this guide, we will remain the default setting. You can change it according to your environment.

Edit the dial pattern template

                                                          Figure 5. Edit the Dial Pattern Template

Step 4. Select one FXS port on TA800, and register the FXS port to the VoIP Server TA810.

Path: Gateway→FXS Port List→FXS Port List

Edit the FXS port

                                                                             Figure 6. Edit the FXS Port

  • Number: set a number for the FXS port. 
  • Primary Server: choose the VoIP Server TA810 we configured above.
  • Dial Pattern Template: choose the Dial Pattern Template, DialPatternTemplate1(1).

Save and apply the changes, we can check the status of this FXS port, it should be OK.
Path: Status--System Status--Port/Trunk Status

FXS port status on TA800 FXS VoIP gateway

                                                                      Figure 7 FXS Port Status on TA800

Now, we have successfully connected TA810 and TA800.

 

3. Making Calls through PSTN Trunks on TA810 FXO Gateway

In this section, we introduce how to achieve making calls from TA800 through PSTN lines on TA810.

 Making Calls through PSTN Trunks on TA810 FXO VoIP Gateway

                                            Figure 8 Making Calls through PSTN Trunks on TA810


Step 1. Create a Port Group on TA810.

Path: Gateway→Port List→Port Group

There are multiple PSTN trunks on TA810 FXO VoIP Gateway. We can group the PSTN trunks, and apply the group to “IP->Port” Route. When calling from your SIP server, TA810 will select one available PSTN trunk to call out.
Select all the PSTN trunks and set the Strategy as “Least Used”, TA810 will select a least used PSTN trunk to call out.

Group PSTN Trunks

                                                                       Figure 9 Group PSTN Trunks

Step 2. Configure one “IP ->Port” Route on TA810.

Path: Gateway→Routes Settings→”IP->Port”

IP Port Route

                                                                               Figure 10 IP->Port Route

  • Route Name: give a name for the route, “From_TA800”.
  • Call Source: choose the VoIP trunk which is connected to TA800, “SPS—TA800”.
  • Call Destination: choose the Port Group, “Port Group1—PSTN”.

Step 3. Test a call from TA800.

Now, you can use an analog phone which is connected to TA800 VoIP FXS gateway to call China local number through the PSTN trunks on TA810 VoIP FXO Gateway.


4. Receiving Calls on TA800 FXS Gateway
In this section, we introduce how to receiving calls on TA800. People in China could call a local PSTN trunk number then talk to staffs in USA office.

Port to IP

                                                                                      Figure 11 Port to IP


Step 1. Configure one “Port->IP” Route on TA810.

Path: Gateway→Routes Settings→”Port->IP”

Port to IP Route Page

                                                                      Figure 12 Port to IP Route Page

  • Route Name: give a name for the route, “To_TA800”.
  • Call Source: choose the one FXO port, when people call in the PSTN trunk, the call will be routed to TA800.
  • Call Destination: choose the VoIP trunk which is connected to TA800, “SPS—TA800”.
  • Hotline: set Hotline to one FXS extension number on TA800.

Note: the FXS port on TA800 should be registered to TA810, meaning that the VoIP server TA810 should be applied to the FXS port.

Step 2. Test a call

Dial the selected PSTN trunk number on TA810, the call will be routed to the analog phone connected to TA800.

 

Have more questions? Submit a request

2 Comments

  • 0
    Avatar
    Franz Ruben GrionToday at 09:23

    Hello, I need to perform this same ecenario but with a TA200 and ta410, but I followed the steps in this example and I can not make this possible, as? Thank you

     

  • 0
    Avatar

    Hi!!! I´m trying to connect a ta410 to a ta400. When i make calls from the ta400 everything goes fine but when i try to call back it doesnt work.

    The tutorial is great!! Thanks for the help

Please sign in to leave a comment.