Add missing handling for ringing state for use with queue empty options.
authorJeff Peeler <jpeeler@digium.com>
Fri, 16 Jul 2010 19:22:49 +0000 (19:22 +0000)
committerJeff Peeler <jpeeler@digium.com>
Fri, 16 Jul 2010 19:22:49 +0000 (19:22 +0000)
(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

apps/app_queue.c

index 286d7a9..b0ab110 100644 (file)
@@ -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);