A system for communicating messages is described. The system includes a server and a gateway. The gateway sends a first message to the server. The first message queries the server to determine whether the server is ready to communicate with the gateway.