From: Jason Parker Date: Fri, 4 Feb 2011 19:21:43 +0000 (+0000) Subject: Don't fallthrough to 'unknown' in the 'ringing' case. X-Git-Tag: 1.6.2.18-rc1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d510c9a325e3bcd88a562c862da0074762b8800;p=thirdparty%2Fasterisk.git Don't fallthrough to 'unknown' in the 'ringing' case. This could cause improper exits from the queue. (closes issue #18499) Reported by: zaltar Patches: app_queue.patch uploaded by zaltar (license 1148) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@306346 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 813e8f9e0f..6e940f789e 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -987,6 +987,7 @@ static int get_member_status(struct call_queue *q, int max_penalty, int min_pena ast_debug(4, "%s is unavailable because his device state is 'ringing'\n", member->membername); break; } + goto default_case; case AST_DEVICE_UNKNOWN: if (conditions & QUEUE_EMPTY_UNKNOWN) { ast_debug(4, "%s is unavailable because his device state is 'unknown'\n", member->membername);