From: Jeff Peeler Date: Fri, 16 Jul 2010 19:22:49 +0000 (+0000) Subject: Add missing handling for ringing state for use with queue empty options. X-Git-Tag: 11.0.0-beta1~2628 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b73c1377e5e6ed1fdb77a6a19757e2d3b6673da9;p=thirdparty%2Fasterisk.git Add missing handling for ringing state for use with queue empty options. (closes issue #17471) Reported by: jazzy Patches: app_queue.c.diff uploaded by jazzy (license 1056) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@277366 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 286d7a9494..b0ab110340 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1212,6 +1212,11 @@ static int get_member_status(struct call_queue *q, int max_penalty, int min_pena break; } goto default_case; + case AST_DEVICE_RINGING: + if (conditions & QUEUE_EMPTY_RINGING) { + ast_debug(4, "%s is unavailable because his device state is 'ringing'\n", member->membername); + break; + } case AST_DEVICE_UNKNOWN: if (conditions & QUEUE_EMPTY_UNKNOWN) { ast_debug(4, "%s is unavailable because his device state is 'unknown'\n", member->membername);