]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Confbridge: Fix ConfbridgeKick AMI documentation
authorKinsey Moore <kmoore@digium.com>
Mon, 21 Apr 2014 14:57:25 +0000 (14:57 +0000)
committerKinsey Moore <kmoore@digium.com>
Mon, 21 Apr 2014 14:57:25 +0000 (14:57 +0000)
This adds documentation for the "all" channel option for the
ConfbridgeKick AMI action and adjusts AMI responses accordingly.

(issue ASTERISK-23282)
Reported by: Dorian Logan

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

apps/app_confbridge.c

index ea06933f6f5ba31825bb807af21012a7f79ae4a4..4fcc3da79ed1747b7cb94e566c1db079a0e2927a 100644 (file)
@@ -222,7 +222,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
                <syntax>
                        <xi:include xpointer="xpointer(/docs/manager[@name='Login']/syntax/parameter[@name='ActionID'])" />
                        <parameter name="Conference" required="true" />
-                       <parameter name="Channel" required="true" />
+                       <parameter name="Channel" required="true" >
+                               <para>If this parameter is not a complete channel name, the first channel with this prefix will be used.</para>
+                               <para>If this parameter is "all", all channels will be kicked from the conference.</para>
+                       </parameter>
                </syntax>
                <description>
                </description>
@@ -2910,7 +2913,7 @@ static int action_confbridgekick(struct mansession *s, const struct message *m)
        ao2_ref(conference, -1);
 
        if (found) {
-               astman_send_ack(s, m, "User kicked");
+               astman_send_ack(s, m, !strcmp("all", channel) ? "All participants kicked" : "User kicked");
        } else {
                astman_send_error(s, m, "No Channel by that name found in Conference.");
        }