*
* @exception ConnectException If the admin connection is closed or broken.
* @exception AdminException If the request fails.
*/
public int getSubscriptions() throws ConnectException, AdminException {
GetSubscriptionsRequest request = new GetSubscriptionsRequest(agentId);
GetNumberReply reply = (GetNumberReply) doRequest(request);
return reply.getNumber();
}