Fix JIRA (FS-7018): mod_callcenter's longest-idle-agent strategy is unfair

This commit is contained in:
Humberto Diógenes 2014-12-04 16:12:20 -03:00
parent 2ce2dccf21
commit 1bcdb49bce
1 changed files with 1 additions and 1 deletions

View File

@ -2227,7 +2227,7 @@ static int members_callback(void *pArg, int argc, char **argv, char **columnName
} else {
if (!strcasecmp(queue->strategy, "longest-idle-agent")) {
sql_order_by = switch_mprintf("level, agents.last_offered_call, position");
sql_order_by = switch_mprintf("level, agents.last_bridge_end, position");
} else if (!strcasecmp(queue_strategy, "agent-with-least-talk-time")) {
sql_order_by = switch_mprintf("level, agents.talk_time, position");
} else if (!strcasecmp(queue_strategy, "agent-with-fewest-calls")) {