Did a backup/restore as I’m moving servers. Cannot get audio on endpoints outside of the local network on the new server. Pretty sure I got all the settings changed in FreePBX. Ports are all forwarded as they should on the router, sip and rtp range. Internal endpoints work fine, trunk calls work fine, just no audio if endpoint is outside LAN.
No audio outside LAN Endpoint to Endpoint or Endpoint to Trunk. Using PJSIP. Calls do not disconnect when hanging up either. Will timeout after 30 seconds due to “no rtp audio”.
Seems like an RTP issue, but the ports are forwarded.
Typically it is behind NAT but hasn’t been told its public address (or can’t be). symmetric RTP attempts to cope with that, by learning the address from received packets. However I thought that was on by default, in FreePBX. If you are not getting RTP from it, either, you have the same problem. Symmetric RTP requires one side’s RTP to contain a valid address.
The RTP debug indicated it wasn’t getting RTP packets, like the port forwarding wasn’t working.
Tried changing the PJSIP port and the RTP port range and nothing worked.
Rebooted the controller and gateway and now it’s working.