code: function Session_getAgentByID(id) {
    for (var i=0; i<this.channels.length; i++) {
      var agents = this.channels[i].getAgents()
      for (var j=0; j<agents.length; j++) {
        var agent = agents[j]
        if (agent.info.id == id) return agent
      }
    }
  }
docs: ------------------------------------------------------------------------------