Not sure if anyone can help here, but we were running FreePBX 17 on a local server just fine, and decided to migrate to Amazon AWS. Once we did, it seems all is ok except there is no sound (incoming or outgoing). I understand this is likely a firewall issue, but I can’t seem to find out what setting we’re missing (either in Amazon AWS or FreePBX).
Here’s what we changed:
In FreePBX, under Settings >> Asterisk SIP Settings >> we changed the “External IP Address” to the new static Amazon AWS public IP, and we changed the “Local Network” to 172.31.0.0 (the private IP address of the FreePBX server is 172.31.9.X). No other changes to FreePBX.
In Amazon AWS, under VPC menu >> Security >> Network ALCs >> set Inbound and Outbound rule to “Allow” port range 10000 - 20000 for UDP with route priority 1 (top of the list).
Under EC2 menu >> Security Groups >> clicked on “default” assigned to the FreePBX server, and set the following Incoming rules:
UDP 10000 - 20000 0.0.0.0/0
TCP 5061 0.0.0.0/0
UDP 5060 0.0.0.0/0
TCP 22 0.0.0.0/0
TCP 80 0.0.0.0/0
TCP 443 0.0.0.0/0
We can access the web GUI over HTTP (presumably port 80) and HTTPS (presumably port 443) just fine. The Let’s Encrypt SSL certificate (over port 80) also downloads and installs.
We can also port in to the command line with PuTTY over SSH (port 22) and make modifications, etc.
This tells me the firewall settings in Amazon AWS are working for these features.
External phones connect and register to the FreePBX server (we are using a STUN server and the connections appear the same as before), but when making a call or connecting to another phone on the system using the intercom feature (outside of there being a new 10-15 second delay), there’s no sound (incoming or outgoing).
I’ve spent a lot of time on ChatGPT and Google AI trying to figure this out, but they keep referring me back to the same settings that we’ve already configured, so it seems like this should be working.
Any suggestions would be greatly appreciated.