Add a RES_NOT_DYNAMIC case for the CLI command
authorMark Michelson <mmichelson@digium.com>
Wed, 19 Nov 2008 23:29:14 +0000 (23:29 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 19 Nov 2008 23:29:14 +0000 (23:29 +0000)
'queue remove member'

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@157939 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 0782904..080cfa6 100644 (file)
@@ -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;
        }