code: private void addAgent(AsteriskAgentImpl agent)
      {
          synchronized (agents)
          {
              agents.put(agent.getAgentId(), agent);
          }
          server.fireNewAgent(agent);
      }
docs: Add a new agent to the manager.
  
  @param agent agent to add.