aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-16 19:22:49 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-16 19:22:49 +0000
commit075c1462a1c571682f679308e19f0751ecfbf4f8 (patch)
tree2cc004f6586359b8500592e21ec01139449f8aa1 /apps/app_queue.c
parent51be8039abae4278088a79f53630cac698107efa (diff)
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: http://svn.digium.com/svn/asterisk/trunk@277366 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r--apps/app_queue.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 286d7a949..b0ab11034 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);