question: updates state of agent , if the call in a queue was redirect to the next agent because the ringed agent does n't answer the call . after reset state , put the next agent in charge . 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 handleAgentsEvent concode_elem_sep void handleAgentCallbackLogoffEvent 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
target: void function ( String arg0 , AsteriskAgentImpl arg1 ) { synchronized ( ringingAgents ) { if ( ringingAgents . containsKey ( arg0 ) ) { updateAgentState ( ringingAgents . get ( arg0 ) , AgentState . AGENT_IDLE ) ; } ringingAgents . put ( arg0 , arg1 ) ; } }