Before switching connection, set the IP to dynamic in 3CX > Settings > Network. This way, it will check the public IP every few hours and update the DNS accordingly when the IP is changed.
Once all transferred and tested, put the system back to Static IP, which will use that new IP.