From: Mark Michelson Date: Wed, 19 Nov 2008 23:29:14 +0000 (+0000) Subject: Add a RES_NOT_DYNAMIC case for the CLI command X-Git-Tag: 1.6.2.0-beta1~823 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=de5ba432da0a98f97e74732fd1be2c28e593e346;p=thirdparty%2Fasterisk.git 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 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 07829042b6..080cfa688f 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; }