aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-27 13:54:35 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-27 13:54:35 +0000
commit7d37c4b710303f4edfecd20f12f883efd42e6be6 (patch)
treea4e8c24ed232ae38b5ccaad6b7fc8d03c4f58940 /apps
parentcbfc009b09ec786ae0cdbbd9ba4e9dd390fbaeb2 (diff)
Fix handling of the 'state_interface' option of the 'queue add member' CLI
command. This change relates to r184980, which was a backport of the state interface changes to app_queue from trunk. trunk and all of the 1.6.x branches are not affected. '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 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@197024 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 366057326..6cbba3103 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -4950,7 +4950,7 @@ static int handle_queue_add_member(int fd, int argc, char *argv[])
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;
@@ -4958,6 +4958,8 @@ static int handle_queue_add_member(int fd, int argc, char *argv[])
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;
}
queuename = argv[5];