If your the phone and the PBX are on the same LAN subnet, the traffic would usually not be passing through the firewall at all. Possibly, if they are (directly or through switches) connected to different LAN ports on a sophisticated firewall that doesn’t simply bridge the ports together, there might be rules that could block traffic. You can rule this out by temporarily connecting two phones and the PBX to ports on the same switch, to ensure that the firewall is not causing your issue.
If only one extension is failing this way, it’s likely the phone or its configuration. If all extensions are failing, please note:
This is a FreePBX forum. Although Grandstream PBXes use Asterisk, it’s heavily modified and locked down, so members of this forum are unlikely to understand the errors you are seeing. There is no FreePBX code on a Grandstream device. I suggest that you post at https://forums.grandstream.com/ . Possibly, you may get help at https://community.asterisk.org/ ; paste the complete log for a failing call at pastebin.com and post the link.