Hi everyone,
I’m new to FreePBX and VoIP PBX systems, and I’m currently trying to set up a FreePBX 17 server running on an AWS EC2 instance (Debian 12).
I used the official Sangoma installation script, and the setup went smoothly. I’m using a PSTN number from Twilio, and I’m now in the process of configuring trunks to make and receive calls.
However, when I try to place a call, it seems Twilio is not reaching my PBX server. I don’t hear any ringing, and in the Twilio logs, I consistently see:
Request timeout with sip:+1[MY_TWILIO_PHONE_NUMBER]@[MY_FREEPBX_IP_ADDRESS]:5060
Here’s a summary of my current setup:
AWS Security Group Settings
I’ve allowed traffic from the following IP ranges:
SIP Signaling:
54.172.60.0/30
(UDP/TCP 5060) – US Region 154.244.51.0/30
(UDP/TCP 5060) – US Region 267.213.136.64/30
– Twilio Signaling IPs
Media (RTP):
168.86.128.0/18
(UDP ports 10000–20000)
FreePBX Firewall Settings
I added the above IP ranges to the FreePBX firewall under the “Trusted” zone (excluded from filtering).
Trunk Configuration (PJSIP)
- Username & Auth Username: Matches the Twilio Credential List
- Secret: Matches the Twilio Credential List
- Authentication: Outbound
- Registration: None
- SIP Server:
[my_twilio_uri].pstn.ashburn.twilio.com
- SIP Server Port: 5060
- Context:
from-pstn
- Transport:
0.0.0.0-udp
Advanced Settings:
- DTMF Mode: Auto
- Outbound Proxy:
sip:[my_twilio_uri].ashburn.twilio.com:5060
- From Domain:
[my_twilio_uri].pstn.ashburn.twilio.com
- From User: Twilio Credential Username
Despite all of the above, calls still time out. I’m not sure what I might be missing — whether it’s a configuration step, a network rule, or something else.
Any help or pointers would be greatly appreciated!
Thanks in advance,
Carlos