[asterisk-commits] jpeeler: trunk r277366 - /trunk/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 16 14:22:55 CDT 2010


Author: jpeeler
Date: Fri Jul 16 14:22:49 2010
New Revision: 277366

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=277366
Log:
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)

Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_queue.c?view=diff&rev=277366&r1=277365&r2=277366
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Fri Jul 16 14:22:49 2010
@@ -1212,6 +1212,11 @@
 				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);




More information about the asterisk-commits mailing list