code: private void handleConnectEvent(ConnectEvent connectEvent)
      {
          try
          {
              initialize();
  
              channelManager.initialize();
              agentManager.initialize();
              meetMeManager.initialize();
              if (!skipQueues)
              {
                  queueManager.initialize();
              }
  
              logger.info("Initializing done");
              initialized = true;
              initializing = false;
          }
          catch (Exception e)
          {
              logger.error("Unable to reinitialize state after reconnection", e);
          }
      }
docs: /*
  Requests the current state from the asterisk server after the connection
  to the asterisk server is restored.