void function ( AgentsEvent arg0 ) { AsteriskAgentImpl loc0 = new AsteriskAgentImpl ( server , arg0 . getName ( ) , "srini_string" + arg0 . getAgent ( ) , AgentState . valueOf ( arg0 . getStatus ( ) ) ) ; logger . info ( "srini_string" + loc0 . getName ( ) + "srini_string" + loc0 . getAgentId ( ) + "srini_string" ) ; addAgent ( loc0 ) ; }
on agentsevent create a new agent . concode_field_sep AsteriskServerImpl server concode_elem_sep Map<String,AsteriskAgentImpl> ringingAgents concode_elem_sep Log logger concode_elem_sep Map<String,AsteriskAgentImpl> agents concode_field_sep void handleAgentCallbackLoginEvent concode_elem_sep void updateAgentState concode_elem_sep void handleAgentCallbackLogoffEvent concode_elem_sep void updateRingingAgents concode_elem_sep void addAgent concode_elem_sep void disconnected concode_elem_sep AsteriskAgentImpl getAgentByAgentId concode_elem_sep void handleAgentCompleteEvent concode_elem_sep void handleAgentLogoffEvent concode_elem_sep void handleAgentCalledEvent concode_elem_sep void handleAgentConnectEvent concode_elem_sep void initialize concode_elem_sep Collection<AsteriskAgent> getAgents concode_elem_sep void handleAgentLoginEvent