[asterisk-commits] seanbright: branch 1.4 r197024 -	/branches/1.4/apps/app_queue.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Wed May 27 08:54:39 CDT 2009
    
    
  
Author: seanbright
Date: Wed May 27 08:54:35 2009
New Revision: 197024
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=197024
Log:
Fix handling of the 'state_interface' option of the 'queue add member' CLI
command.
'queue add member' allows for specifying an interface to use for device state
when adding a queue member via CLI, but the validation code was not properly
updated to reflect this optional argument.
(closes issue #15198)
Reported by: loloski
Patches:
      05272009_app_queue.diff uploaded by seanbright (license 71)
Tested by: loloski
Modified:
    branches/1.4/apps/app_queue.c
Modified: branches/1.4/apps/app_queue.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/apps/app_queue.c?view=diff&rev=197024&r1=197023&r2=197024
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Wed May 27 08:54:35 2009
@@ -4950,13 +4950,15 @@
 	char *queuename, *interface, *membername = NULL, *state_interface = NULL;
 	int penalty;
 
-	if ((argc != 6) && (argc != 8) && (argc != 10)) {
+	if ((argc != 6) && (argc != 8) && (argc != 10) && (argc != 12)) {
 		return RESULT_SHOWUSAGE;
 	} else if (strcmp(argv[4], "to")) {
 		return RESULT_SHOWUSAGE;
 	} else if ((argc == 8) && strcmp(argv[6], "penalty")) {
 		return RESULT_SHOWUSAGE;
 	} else if ((argc == 10) && strcmp(argv[8], "as")) {
+		return RESULT_SHOWUSAGE;
+	} else if ((argc == 12) && strcmp(argv[10], "state_interface")) {
 		return RESULT_SHOWUSAGE;
 	}
 
    
    
More information about the asterisk-commits
mailing list