We run a FreePBX server on our LAN and softphones can register using the local SIP server IP.
I need these softphones to be able to register over the internet too so we have configured the firewall and created a dns entry for sip.ourdomain.com.
When the softphones are configured to use sip.ourdomain.com then can register over the internet fine however when they are in the office and are connected to the wifi they are unable to register.
I suspect this is because when in the office they are trying to register to sip.ourdomain.com which resolves to the public IP that redirects to the sip server on the local LAN.
How can this be resolved?
Edit1
LAN is 192.168.1.X/24 & SIP Server is 192.168.1.8