Phones do not have firewalls by default. A firewall is installed with a 3rd party application. In your case, the Wifi you use to connect to VOIP services and servers, is not configured properly which means that the ports are blocked and need to be open.