]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix JIRA (FS-7018): mod_callcenter's longest-idle-agent strategy is unfair
authorHumberto Diógenes <hdiogenes@gmail.com>
Thu, 4 Dec 2014 19:12:20 +0000 (16:12 -0300)
committerHumberto Diógenes <hdiogenes@gmail.com>
Thu, 4 Dec 2014 19:12:20 +0000 (16:12 -0300)
src/mod/applications/mod_callcenter/mod_callcenter.c

index 8d4c0caf06db0f94ab7227eb1ed0d556b2bb8f0f..7b89527c7906e307db1359159847c635813ff5ef 100644 (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")) {