summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2008-11-19 23:29:14 +0000
committerMark Michelson <mmichelson@digium.com>2008-11-19 23:29:14 +0000
commitde5ba432da0a98f97e74732fd1be2c28e593e346 (patch)
treea7c692e6601c6f723b9353ffb009c43ecaf53333
parent7a64c70324d43c5956d7f5485c5652014684f2d2 (diff)
Add a RES_NOT_DYNAMIC case for the CLI command
'queue remove member' git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@157939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--apps/app_queue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 07829042b..080cfa688 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -6368,6 +6368,9 @@ static char *handle_queue_remove_member(struct ast_cli_entry *e, int cmd, struct
case RES_OUTOFMEMORY:
ast_cli(a->fd, "Out of memory\n");
return CLI_FAILURE;
+ case RES_NOT_DYNAMIC:
+ ast_cli(a->fd, "Unable to remove interface '%s' from queue'%s': Member is not dynamic\n", interface, queuename);
+ return CLI_FAILURE;
default:
return CLI_FAILURE;
}