To establish connectivity between the FreePBX and FAG410X, we need to configure a trunk between the two systems. This will allow extensions using external PSTN trunk connections.
IPPBX
Model: FreePBX
IP: 192.168.99.127
GETAWAY
Model: FAG410X
Ip: 192.168.99.239
TOPOLOGY
CONNECT FreePBX TO FAG410X USING PEER SIP TRUNK #
Create IVR On FreePBX #
On the FreePBX web GUI, create an IVR extension under Applications ->IVR ->Add IVR.
In IVR settings, if “Direct Dial” is enabled, the calls dialing into the FreePBX IVR will be able to reach the internal extensions registered to FreePBX. Also, you can assign the “IVR Entries” to different destinations.
Create Peer SIP TRUNK On FreePBX #
On the FreePBX web GUI, create a peer SIP trunk under Connectivity ->Trunks ->Add SIP (Chan_pjsip) Trunk. In this example, the FAG4108 IP address is 192.168.99.239
Configure Outbound Rule on FreePBX #
On FreePBX web GUI, go to Connectivity ->Outbound Routes ->Add Outbound Route to create a new outbound rule. This would allow the extension on FreePBX to reach numbers in PSTN network via the peer SIP trunk we just configured.
In this example prefix “9”, 9 is the first dialing digit and it will be stripped off when the call goes out.
Configure Inbound Rule on FreePBX #
On FreePBX web GUI, go to Connectivity ->Inbound Routes ->Add Inbound Route to create a new inbound rule. In this example, we set the DID Number as 20000, which will be used in the FAG410X call forward setting.
The default destination is configured to IVR. Ensure to select the proper IVR.
Connect FAG410X with FreePBX #
1- On the FAG410X web GUI, go to the VoIP->SIP page and enter the IP address of the FreePBX that you are peering with.
2- Please make sure the Register Gateway option under VoIP-> SIP is set to No. In the following example, FreePBX Server has IP address 192.168.99.127.
Configure FXO Port on FAG410X #
1- Connect the PSTN line to the FAG410X FXO port.
2-On the FAG410X web GUI, go to the Port->FXO page and press Modify on the FXO port you will use.
3- Make Connection Method (Static Binding for outgoing/incoming call)
4- Write Number 20000 to be matched with the DID number we configured in Freepbx Inbound Route.
Create Port Group on FAG410X #
1- On the FAG410X web GUI, go to the Port->Port Group page and press “Add New”.
2- Select the FXO port you will use.
FAG410X CALL Routing #
Configure IP to Tel on FAG410X #
1- On the FAG410X web GUI, go to the Route-> IP->TEL page, Press “Add New”.
2- Enter the Freepbx Server IP address in “Source IP” and select the Port Group you will use from “Call Destination”.
Configure TEL to IP on FAG410X #
On the FAG410X web GUI, go to the Route-> TEL->IP page, Press “Add New”.
Select the Port Group you will use from “Source Port Group” and enter the Freepbx IP address in “Destination Address”.