[asterisk-bugs] [JIRA] (ASTERISK-21827) [patch] Add kick all to app_confbridge

Dorian Logan (JIRA) noreply at issues.asterisk.org
Mon Jun 10 09:09:03 CDT 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-21827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dorian Logan updated ASTERISK-21827:
------------------------------------

    Comment: was deleted

(was: Index: app_confbridge.c
===================================================================
--- app_confbridge.c    (revision 391213)
+++ app_confbridge.c    (working copy)
@@ -2094,6 +2094,17 @@
        struct conference_bridge_user *participant = NULL;

        ao2_lock(bridge);
+
+       // Kill all users in confernce
+       if (!strcasecmp(channel, "all")) {
+               AST_LIST_TRAVERSE(&bridge->active_list, participant, list) {
+                       participant->kicked = 1;
+                       ast_bridge_remove(bridge->bridge, participant->chan);
+               }
+               ao2_unlock(bridge);
+               return 0;
+        }
+
        AST_LIST_TRAVERSE(&bridge->active_list, participant, list) {
                if (!strcasecmp(ast_channel_name(participant->chan), channel)) {
                        participant->kicked = 1;
@@ -2182,8 +2193,8 @@
        case CLI_INIT:
                e->command = "confbridge kick";
                e->usage =
-                       "Usage: confbridge kick <conference> <channel>\n"
-                       "       Kicks a channel out of the conference bridge.\n";
+                       "Usage: confbridge kick <conference> <channel> | all \n"
+                       "       Kicks a channel out of the conference bridge (all to kick everyone).\n";
                return NULL;
        case CLI_GENERATE:
                if (a->pos == 2) {)
    
> [patch] Add kick all to app_confbridge
> --------------------------------------
>
>                 Key: ASTERISK-21827
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21827
>             Project: Asterisk
>          Issue Type: New Feature
>      Security Level: None
>          Components: Applications/app_confbridge
>    Affects Versions: 11.4.0
>         Environment: All
>            Reporter: Dorian Logan
>            Assignee: Dorian Logan
>         Attachments: kickall-patch.diff
>
>
> Add support to kick all users from an active confbridge.
> I have the patch ready - I am just waiting for legal approval from Digium before submitting it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list