Files
asterisk/apps/confbridge/conf_state_multi.c
Richard Mudgett 864163492c confbridge: Separate user muting from system muting overrides.
The system overrides the user muting requests when MOH is playing or a
waitmarked user is waiting for a marked user to join.  System muting
overrides interfere with what the user may wish the muting to be when the
system override ends.

* User muting requests are now independent of the system muting overrides.
The effective muting is now the logical or of the user request and system
override.

* Added a Muted column to the CLI "confbridge list <conference>" command.

* Added a Muted header to the AMI ConfbridgeList action ConfbridgeList
event.

(closes issue AST-1102)
Reported by: John Bigelow

Review: https://reviewboard.asterisk.org/r/2960/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@402425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-11-02 02:11:03 +00:00

80 lines
2.2 KiB
C

/*
* Asterisk -- An open source telephony toolkit.
*
* Copyright (C) 2012, Terry Wilson
*
* Terry Wilson <twilson@digium.com>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
* any of the maintainers of this project for assistance;
* the project provides a web site, mailing lists and IRC
* channels for your use.
*
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
*
* Please follow coding guidelines
* http://svn.digium.com/view/asterisk/trunk/doc/CODING-GUIDELINES
*/
/*! \file
*
* \brief Confbridge state handling for the MULTI state
*
* \author\verbatim Terry Wilson <twilson@digium.com> \endverbatim
*
* \ingroup applications
*/
/*** MODULEINFO
<support_level>core</support_level>
***/
#include "include/confbridge.h"
#include "include/conf_state.h"
static void join_unmarked(struct conference_bridge_user *cbu);
static void join_marked(struct conference_bridge_user *cbu);
static void leave_unmarked(struct conference_bridge_user *cbu);
void transition_to_multi(struct conference_bridge_user *cbu);
struct conference_state STATE_MULTI = {
.name = "MULTI",
.join_unmarked = join_unmarked,
.join_waitmarked = conf_default_join_waitmarked,
.join_marked = join_marked,
.leave_unmarked = leave_unmarked,
.leave_waitmarked = conf_default_leave_waitmarked,
.entry = transition_to_multi,
};
struct conference_state *CONF_STATE_MULTI = &STATE_MULTI;
static void join_unmarked(struct conference_bridge_user *cbu)
{
conf_add_user_active(cbu->conference_bridge, cbu);
conf_update_user_mute(cbu);
}
static void join_marked(struct conference_bridge_user *cbu)
{
conf_add_user_marked(cbu->conference_bridge, cbu);
conf_update_user_mute(cbu);
conf_change_state(cbu, CONF_STATE_MULTI_MARKED);
}
static void leave_unmarked(struct conference_bridge_user *cbu)
{
conf_remove_user_active(cbu->conference_bridge, cbu);
if (cbu->conference_bridge->activeusers == 1) {
conf_change_state(cbu, CONF_STATE_SINGLE);
}
}
void transition_to_multi(struct conference_bridge_user *cbu)
{
return;
}