It clearly indicates that there is some problem in the network between the Sametime Server and the Gateway.
I would suggest to verify these.
In the Sametime Server verify if the Gateway IP is a trused one..
If not then add it & ST server needs to be restarted.
Is the Community Gateway document created in the ST server?
If any firewall exists then may be removed..