You firewall (or ISP modem) must be configured correctly as stated above by the other forum members.
If you do not configure it (Port Forwarding) then it will automatically assign any port it wants to your PBX traffic. Try to setup your ports following the links by @eddv123 and @Clément Rousseau and when you are done run the firewall checker again to check your progress.
We need Full-cone NAT if you want to look it up online.