Asterisk - The Open Source Telephony Project  GIT-master-9ed6387
Functions | Variables
conf_state_multi.c File Reference

Confbridge state handling for the MULTI state. More...

#include "include/confbridge.h"
#include "include/conf_state.h"

Go to the source code of this file.

Functions

static void join_marked (struct confbridge_user *user)
 
static void join_unmarked (struct confbridge_user *user)
 
static void leave_unmarked (struct confbridge_user *user)
 

Variables

struct confbridge_stateCONF_STATE_MULTI = &STATE_MULTI
 Conference state with multiple active users, but no marked users. More...
 
struct confbridge_state STATE_MULTI
 

Detailed Description

Confbridge state handling for the MULTI state.

Author
Terry Wilson <twilson@digium.com> 

Definition in file conf_state_multi.c.

Function Documentation

◆ join_marked()

static void join_marked ( struct confbridge_user user)
static

Definition at line 58 of file conf_state_multi.c.

References conf_add_user_marked(), conf_change_state(), CONF_STATE_MULTI_MARKED, conf_update_user_mute(), and confbridge_user::conference.

59 {
60  conf_add_user_marked(user->conference, user);
62 
64 }
struct confbridge_conference * conference
Definition: confbridge.h:269
void conf_update_user_mute(struct confbridge_user *user)
Update the actual mute status of the user and set it on the bridge.
void conf_add_user_marked(struct confbridge_conference *conference, struct confbridge_user *user)
Add a conference bridge user as a marked active user of the conference.
struct confbridge_state * CONF_STATE_MULTI_MARKED
Conference state with multiple active users and at least one marked user.
void conf_change_state(struct confbridge_user *user, struct confbridge_state *newstate)
Execute conference state transition because of a user action.
Definition: conf_state.c:82

◆ join_unmarked()

static void join_unmarked ( struct confbridge_user user)
static

Definition at line 52 of file conf_state_multi.c.

References conf_add_user_active(), conf_update_user_mute(), and confbridge_user::conference.

53 {
54  conf_add_user_active(user->conference, user);
56 }
void conf_add_user_active(struct confbridge_conference *conference, struct confbridge_user *user)
Add a conference bridge user as an unmarked active user of the conference.
struct confbridge_conference * conference
Definition: confbridge.h:269
void conf_update_user_mute(struct confbridge_user *user)
Update the actual mute status of the user and set it on the bridge.

◆ leave_unmarked()

static void leave_unmarked ( struct confbridge_user user)
static

Definition at line 66 of file conf_state_multi.c.

References confbridge_conference::activeusers, conf_change_state(), conf_remove_user_active(), CONF_STATE_SINGLE, and confbridge_user::conference.

67 {
69  if (user->conference->activeusers == 1) {
71  }
72 }
void conf_remove_user_active(struct confbridge_conference *conference, struct confbridge_user *user)
Remove a conference bridge user from the unmarked active conference users in the conference.
struct confbridge_conference * conference
Definition: confbridge.h:269
struct confbridge_state * CONF_STATE_SINGLE
Conference state with only a single unmarked active user.
unsigned int activeusers
Definition: confbridge.h:246
void conf_change_state(struct confbridge_user *user, struct confbridge_state *newstate)
Execute conference state transition because of a user action.
Definition: conf_state.c:82

Variable Documentation

◆ CONF_STATE_MULTI

struct confbridge_state* CONF_STATE_MULTI = &STATE_MULTI

Conference state with multiple active users, but no marked users.

Definition at line 50 of file conf_state_multi.c.

Referenced by join_unmarked(), and leave_marked().

◆ STATE_MULTI

struct confbridge_state STATE_MULTI

Definition at line 42 of file conf_state_multi.c.