To receive audio when your phone system is behind NAT, you will most likely need a STUN server. The PBX asks the STUN server for its public IP address and port, and uses that information in the media negotiation (ICE) so that the browser can send audio to the right address.
Configuring STUN in Asterisk
In /etc/asterisk/rtp.conf (or rtp_custom.conf on FreePBX/Issabel):
ini
[general]
icesupport=true
stunaddr=stun.l.google.com:19302Commonly used public STUN servers
| Server | Port |
|---|---|
stun.l.google.com | 19302 |
stun1.l.google.com | 19302 |
stun.stunprotocol.org | 3478 |
stun.cloudflare.com | 3478 |
A longer, community-maintained list of public STUN servers is available here.