aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-16 19:24:38 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-16 19:24:38 +0000
commit709af8c9ec3fb5cecad8bb8410a760aa38f4629c (patch)
tree4d708692d0bec9957f99e9c19674057f8e02b4e5 /apps
parentdee5675cc4da0f9e12bee213f550ab48f4110ea1 (diff)
Merged revisions 277366 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r277366 | jpeeler | 2010-07-16 14:22:49 -0500 (Fri, 16 Jul 2010) | 7 lines 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/branches/1.6.2@277377 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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 ec57584b2..2f9b7c28f 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -980,6 +980,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);