]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Confbridge: Add references for kick all option
authorKinsey Moore <kmoore@digium.com>
Mon, 21 Apr 2014 14:46:06 +0000 (14:46 +0000)
committerKinsey Moore <kmoore@digium.com>
Mon, 21 Apr 2014 14:46:06 +0000 (14:46 +0000)
After the ability to kick all attendees from a conference was added, a
rework removed the comment about that feature from the CLI
documentation. This adds that documentation and adds "all" to the
participant tab completion list for the confbridge kick command.

(closes issue ASTERISK-23282)
Reported by: Dorian Logan

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

apps/app_confbridge.c

index b9fb4bdb9534973edbea231c829f321f45287d13..ea06933f6f5ba31825bb807af21012a7f79ae4a4 100644 (file)
@@ -2197,6 +2197,11 @@ static char *complete_confbridge_participant(const char *conference_name, const
                return NULL;
        }
 
+       if (!state) {
+               return ast_strdup("all");
+       }
+       state--;
+
        {
                SCOPED_AO2LOCK(bridge_lock, conference);
                AST_LIST_TRAVERSE(&conference->active_list, user, list) {
@@ -2225,7 +2230,7 @@ static char *handle_cli_confbridge_kick(struct ast_cli_entry *e, int cmd, struct
                e->command = "confbridge kick";
                e->usage =
                        "Usage: confbridge kick <conference> <channel>\n"
-                       "       Kicks a channel out of the conference bridge.\n";
+                       "       Kicks a channel out of the conference bridge (all to kick everyone).\n";
                return NULL;
        case CLI_GENERATE:
                if (a->pos == 2) {