From 1bcdb49bced4be339d73532181fe6fa3938d0bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Humberto=20Di=C3=B3genes?= Date: Thu, 4 Dec 2014 16:12:20 -0300 Subject: [PATCH] Fix JIRA (FS-7018): mod_callcenter's longest-idle-agent strategy is unfair --- src/mod/applications/mod_callcenter/mod_callcenter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_callcenter/mod_callcenter.c b/src/mod/applications/mod_callcenter/mod_callcenter.c index 8d4c0caf06..7b89527c79 100644 --- a/src/mod/applications/mod_callcenter/mod_callcenter.c +++ b/src/mod/applications/mod_callcenter/mod_callcenter.c @@ -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")) {