I am using latest Asterisk/FreePBX behind a NAT router/firewall. I am unable to “ip authenticate” to my VOIP provider due to incorrect ip being sent (192.168.1.6) Local LAN. I need the external NAT ip. Could you advise how to change from local to external in the REGISTER string…
Using Chan_PJSIP trunk. All form-fields are populated with my DDNS and external ip appears in the PBX GUI but nowhere to set the REGISTER ip.
the way IP authentication works is if you have a static IP address without username and password on the SIP trunk providers side you put in your external static IP address and it’ll always accept calls from your IP address and every time there is a call coming in it will send it to that IP address and you need to port forward SIP and RTP to to your PBX and whitelist the servers from your SIP trunk provider in freepbx firewall, the external IP address settings on freepbx is for making your system work behind NAT not for registration
IT Consultant: Yes. I have configured VOIP provider ip to my router’s public ip. It isn’t static as I am developing this system at home until finished then will upload to Google Cloud where it will have static public ip. For the moment is just getting a working system.
I have port-forwarded SIP, RTP to PBX (192.168.1.5) Have also whitelisted the SIP Trunk Provider in firewall.
My router’s public facing ip is matched with VOIP Provider (92.5.152.x)
My provider hasn’t told me where the ip comes from. Only its the internet/public ip - which would be 92.5.x.x and not 192.168.1.5 which is LAN - you can see from the PJSIP History (above).
IP authentication doesn’t require you to send a registration string. Further more you set the External IP in FreePBX under Settings -> Asterisk SIP settings -> NAT Settings.
Have you considered using Chan_SIP? It works just fine.
However, I agree with Igor that if you are telling your ITPS what your IP address is via its web-page or other configuration system, then you don’t need to use the registration field at all. Registration is how you tell the remote system what your IP address is when you cannot tell it directly. It is designed for the situation where your IP address might change, though registration is often used even when your IP address doesn’t change.