From: Humberto Diógenes Date: Thu, 4 Dec 2014 19:12:20 +0000 (-0300) Subject: Fix JIRA (FS-7018): mod_callcenter's longest-idle-agent strategy is unfair X-Git-Tag: v1.4.15^2~50^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bcdb49bced4be339d73532181fe6fa3938d0bd8;p=thirdparty%2Ffreeswitch.git Fix JIRA (FS-7018): mod_callcenter's longest-idle-agent strategy is unfair --- 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")) {