Peer-to-Peer SIP Mode with FXS and FXO Gateways New Rock s SIP based VoIP gateways with FXS and FXO ports support peer-to-peer mode which has many applications in deploying enterprise multi-site telephone communication. In this application note, three popular applications and their related configurations are described, including: Interconnect two PBXs at separate sites through IP network with FXO gateways Interconnect two or more extension lines at separate sites through IP network with FXS gateways Expanding PBX extensions to remote sites through IP network Interconnect Two PBXs with FXO Gateways In this scenario, two PBXs located at different sites need to be interconnected through IP network, and spared extension lines are used to connect to the gateway. In this diagram, each of the FXO gateways is installed with the FXO ports connecting to the extension ports of the PBX while the WAN port connecting to the router in the local office. Both gateways are interconnected over the IP network with SIP protocol in peer-to-peer mode for call setup. Note: A static public IP address is required if the IP network is Internet. Configuration on Gateway A 1. On Routing > Routing Table page, setup the routing rules for directing call from FXO port to IP www.newrocktech.com 1
and vice versa, as follows: 2. On the Line > Trunk, select Second stage dialing in the Inbound handle field, and select Dialing tone as follows. Configuration on Gateway B 1. On Routing > Routing Table page, do the similar routing as follows. www.newrocktech.com 2
2. On the Line > Trunk, same as we did on gateway A. Dialing Method For making calls from one site (e.g. extension 201) to an extension on the remote site (e.g. extension 301), the user of extension 201 picks up the phone and dials the number for the local extension port which connects to the gateway (202 in this example), and then dials 301 after hearing the second stage dial tone from the local gateway. www.newrocktech.com 3
Interconnect two or more extension lines with FXS Gateways In this scenario, two or more extension lines located at different sites need to be interconnected through IP network, without any SIP server or IP PBX. In this diagram, each of the FXS gateways is installed with the FXS ports connected with analog phones while the WAN port is connected to the router in the local office. Both gateways are interconnected over the IP network with SIP protocol in peer-to-peer mode for call setup. Note: A static public IP address is required if the IP network is Internet. Configuration on Gateway A 1. On Routing > Routing Table page, setup the routing rules for directing calls from extension lines 8000-8003 to IP address 220.1.1.1, as follows: Configuration on Gateway B 1. On Routing > Routing Table page, do the similar routing as follows. www.newrocktech.com 4
Dialing Method For making calls from one site (e.g. extension 8001) to an extension on the remote site (e.g. extension 8004), the user of extension 8001 picks up the phone and dials 8004, and then call will be set up between 8001 and 8004. www.newrocktech.com 5
Expanding PBX Extensions to Remote Sites through IP Network In this scenario, a PBX located at different site need to be interconnected through IP network to expand PBX extension lines. In this diagram, the FXO gateway is installed with the FXO ports connecting to the extension ports of the PBX while FXS gateway is installed with the FXS ports connecting to analog phones. WAN ports are connected to the router in the local office. Both gateways are interconnected over the IP network with SIP protocol in peer-to-peer mode for call setup. Note: A static public IP address is required if the IP network is Internet. Configuration on FXO Gateway 1. On the Basic > SIP page, fill in FXS gateway s IP address in the Proxy Server field, as follows: 2. On the Basic > System page, select RFC2833 in the DTMF method filed, as follows: www.newrocktech.com 6
3. On the Line > Trunk, select Binding in the Inbound handle field, and fill in the corresponding phone number of the FXS port in the Binding number field, as follows: Configuration on FXS Gateway 1. On the Basic > SIP page, fill in FXO gateway s IP address in the Proxy Server field, as follows: 2. On Basic > System, same as we did on FXO gateway. www.newrocktech.com 7
3. On the Line > Feature, select Hot Line in the Hot line field, and fill in the corresponding FXO port number in the Hot line number field, as follows: With FXO-FXS hot line arrangement as described in the above configurations, there is no need to use routing table. Dialing Method For making outbound call, the user picks up the phone and the SIP connection will be established immediately between the FXO-FXS port pair, and the dial tone from the PBX to the user will be heard after the FXO port goes off-hook. www.newrocktech.com 8