STUN resolution is necessary for the PBX to understand what it’s public IP Address is, and what port mappings are in effect for Media (to attempt NAT traversal when port forwarding is not implemented). STUN resolution may be disabled when:
- No External entities are in use (no bridges, voip providers, extensions)
- Static Port Forwarding is in place for reliable media exchange with external entities (External Extensions, VoIP Providers, Bridges etc)
Disabling STUN may also be useful to resolve issues such as
- very long delays for a call to be delivered
- issues with 1 way audio
Disabling STUN resolution
- Click “Network” under “Settings” and click on the “STUN Server” tab.
- Enable the check box called “Turn off STUN server”.
- In the “Public IP to use in Contact and SDP” field enter the public IP address of your 3CX Server / Network.
- In the “Select Network Card Interface” drop down select the IP address of the 3CX NIC card that has access to the external network / internet OR that allows you to connect to your VoIP Provider / ITSP / CLEC
- Click “OK” at the bottom of the page.
Tweaking VoIP Provider settings so as not to use STUN
- In the 3CX Management Console, expand the “VoIP Provider” section in the left hand navigation panel.
- Click on the friendly name you gave your VoIP Provider.
- Now, expand the “Advanced” tab.
- In the option labeled “Which IP to use in ‘Contact’ field, select “Specified IP” and insert into the adjacent text box your Public IP Address.
Stun is irrelevant for PSTN Gateways because PSTN gateways are on the local network so they communicate to the 3CX Phone System using the local network interface not the public ip address.
It is always a good option to test the stun server before using it. 3CX provides it’s own stun servers (stun.3cx.com and stun2.3cx.com) but it is very important that if you have a VoIP Provider from VoIP Company XYZ, to use the stun server address provided by VoIP Company XYZ. You can use the 3CX Stun server but probably the stun server of your VoIP telecom company will be closer to you and might have less traffic so the response you get back will be quicker.