Skip to content
Sign in

How to configure FreePBX to FAG410X using peer SIP trunk

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.

5 min read Updated
On this page
  1. CONNECT FreePBX TO FAG410X USING PEER SIP TRUNK
  2. Create IVR On FreePBX
  3. Create Peer SIP TRUNK On FreePBX
  4. Configure Outbound Rule on FreePBX
  5. Configure Inbound Rule on FreePBX
  6. Connect FAG410X with FreePBX
  7. Configure FXO Port on FAG410X
  8. Create Port Group on FAG410X
  9. FAG410X CALL Routing

IPPBX

Model: FreePBX

IP: 192.168.99.127

GATEWAY

Model: FAG410X

Ip: 192.168.99.239

TOPOLOGY

How to configure FreePBX to FAG410X using peer SIP trunk

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.

Screenshot: Create IVR On FreePBX

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

Screenshot: Create Peer SIP TRUNK On FreePBX
Screenshot: Create Peer SIP TRUNK On FreePBX

 

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.

Screenshot: Configure Outbound Rule on FreePBX
Screenshot: Configure Outbound Rule on FreePBX

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.

Screenshot: Configure Inbound Rule on FreePBX

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.

Screenshot: Connect FAG410X with FreePBX

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.

Screenshot: Connect FAG410X with FreePBX

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.

Screenshot: Configure FXO Port on FAG410X

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.

Screenshot: Configure FXO Port on FAG410X

Create Port Group on FAG410X#

1- On the FAG410X web GUI, go to the Port->Port Group page and press “Add New”.

Screenshot: Create Port Group on FAG410X

2- Select the FXO port you will use.

Screenshot: Create Port Group on FAG410X

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”.

Screenshot: Configure IP to Tel on FAG410X

2- Enter the Freepbx Server IP address in “Source IP” and select the Port Group you will use from “Call Destination”.

Screenshot: Configure IP to Tel on FAG410X

Configure TEL to IP on FAG410X

On the FAG410X web GUI, go to the Route-> TEL->IP page, Press “Add New”.

Screenshot: Configure TEL to IP on FAG410X


 Select the Port Group you will use from “Source Port Group” and enter the Freepbx IP address in “Destination Address”.

Screenshot: Configure TEL to IP on FAG410X

Still stuck?

FIBERME support can look at your setup with you. Certified Partners can also ask in the FIBERME Community, and anyone can learn the systems step by step in the free courses of FIBERME Academy.

Open a support ticket FIBERME Community FIBERME Academy