- Tixbox Asterisk VOIP server on company's LAN network.
- Remote client with Linksys SPA 942 VOIP phone trying to connect to Asterisk VOIP server via WAN (no VPN).
- Remote client has a static external IP address 220.127.116.11
- SonicWall firewall on company's network is configured as follows:
- The firewall has a range of 8 external IP addresses, and one IP address (18.104.22.168) is dedicated to the VOIP service.
- All incoming traffic from 22.214.171.124 to 126.96.36.199 is allowed and routed to the VOIP server.
- All outgoing traffic from the VOIP server is allowed and routed via 188.8.131.52.
- Draytek Vigor firewall on client's side doesn't have any special setup. All outgoing traffic is allowed, and all incoming traffic is blocked by NAT.
The remote VOIP client can successfully connect and register with the VOIP server. During incoming and outgoing calls, VOIP phones ring, but when answered, no voice is heard by either party.
The issue was resolved by adding following text to /etc/asterisk/sip_nat.conf on the Trixbox VOIP server and rebooting Asterisk.
184.108.40.206 - external IP address dedicated the VOIP service.
10.1.0.0/255.255.0.0 - local office network subnet.