MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / log_agent_to_flows

Function log_agent_to_flows

modules/call_center/cc_data.c:897–913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

895
896
897void log_agent_to_flows(struct cc_data *data, struct cc_agent *agent, int login)
898{
899 unsigned int i;
900 struct cc_flow *flow;
901
902 LM_DBG("login %d agent %.*s\n", login, agent->id.len, agent->id.s);
903 /* iterate all skills of the agent */
904 for( i=0 ; i<agent->no_skills ; i++) {
905 //LM_DBG(" agent skill is %d (%d)\n", agent->skills[i],i);
906 /* iterate all flows */
907 for( flow=data->flows ; flow ; flow=flow->next ) {
908 //LM_DBG("chekcing flow %.*s with skill %d\n", flow->id.len, flow->id.s, flow->skill);
909 if (agent->skills[i]==flow->skill)
910 flow->logged_agents = flow->logged_agents + (login?1:-1);
911 }
912 }
913}
914
915
916void clean_cc_old_data(struct cc_data *data)

Callers 3

w_agent_loginFunction · 0.85
mi_agent_loginFunction · 0.85
clean_cc_old_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected