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:
Disabling STUN may also be useful to resolve issues such as
Disabling STUN resolution
<hi #fff200>Tweaking VoIP Provider settings so as not to use STUN</hi>
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.
<hi #b5e61d>…and the most important… </hi>
Since the STUN resolution is the source of many (if not the most…) problems concerning 3CX configuration, disabling it is your primary goal. Unfortunately you cannot do it the easy way because you will be expected to enter your fixed public IP before saving configuration, and if you don't have it (if you are on any kind of ADSL, you probably don't….) you cannot disable STUN !!
But…
If you have properly configured your router (forwarded all the neccesary ports to your 3CX server…) there is no need for STUN and there is the way to disable it. (Description is for the 3CX version 12 and 12.5 but hopefully there are no major differences on newer versions).
Open Voip Providers. Choose provider and open Advanced tab.
Under Registration Settings → Which IP to use in 'Contact' field for registration: click on Specified IP and type in the local IP address of your 3CX server !