Configuring FXO Gateway

Hello, Im a total newbie to freepbx, i have an analogue FXO (Wildix W04FXO) and i sucessfully setup incoming calls. when i call my analogue number it rings all my extensions as i required. But i cannot setup Outgoing calls. I have setup Trunk, and outbound routes as below but it always says “Number you have dialed is not in service”

Can somebody please help me?

Trunk Settings


Outbound Route


Call event log of dialling attempt,

In the first pic, what do you have under PJSIP settings?

Like below

192.168.1.123 is my FXO gateway

Do you have have IP authentication enabled on the FXO gateway? I haven’t directly worked with FXOs but I’m assuming they are similar to GSM Gateways

I have set it up as Predifined


incoming calls work fine, so it should be fine from FXO’s end right?

I will have to look that up. Do you see outbound invites from the gateway to your PBX?

tcpdump -i br-lan src 192.168.1.123 and port 5060 -A

depending on what router you are using

My router is an Ubiquiti, UDM Pro.
SO i did packet capture as you instructed and got below info


192.168.2.101 is my Freepbx.

i was trying to call toll free number 1212 during packet capture. Looks fine is it?

Your logging isn’t fine, so it isn’t possible to tell whether what is happening is fine. You have an INVITE and ACK, but ACK cannot be generated without a response, and that response could be OK or one of several dozen reasons for the call failing.

The CANCEL responses are in the opposite direction and don’t seem to be related to the current call.

To rephrase this @gayanll the last two lines are confusing. After an INVITE, there should be a response like 180 Ringing then a 200 OK from the party being called before the ACK (for a successful call). For a failed call, I would be expecting something like a 404 Not found or something similar.

Can you give me some idea what should i try next?

It used to work before few months ago just fine, i did a re-install of FreePBX but did not thought to make a backup. :pensive_face:

I solved it.
Just in case somebody like me in the future falls in to same issue; I re installed freePBX but this time older version (FreePBX 16), & it everything started working again.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.