| 895 | |
| 896 | |
| 897 | void 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 | |
| 916 | void clean_cc_old_data(struct cc_data *data) |
no outgoing calls
no test coverage detected