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

Confbridge state handling for the SINGLE_MARKED state. More...

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

Go to the source code of this file.

Functions

static void join_active (struct confbridge_user *user)
 
static void join_marked (struct confbridge_user *user)
 
static void leave_marked (struct confbridge_user *user)
 
static void transition_to_single_marked (struct confbridge_user *user)
 

Variables

struct confbridge_stateCONF_STATE_SINGLE_MARKED = &STATE_SINGLE_MARKED
 Conference state with only a single marked active user. More...
 
struct confbridge_state STATE_SINGLE_MARKED
 

Detailed Description

Confbridge state handling for the SINGLE_MARKED state.

Author
Terry Wilson <twilson@digium.com> 

Definition in file conf_state_single_marked.c.

Function Documentation

◆ join_active()

static void join_active ( struct confbridge_user user)
static

Definition at line 53 of file conf_state_single_marked.c.

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

54 {
55  conf_add_user_active(user->conference, user);
58 
60 }
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.
void conf_handle_second_active(struct confbridge_conference *conference)
Handle when a conference moves to having more than one active participant.
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_marked()

static void join_marked ( struct confbridge_user user)
static

Definition at line 62 of file conf_state_single_marked.c.

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

63 {
64  conf_add_user_marked(user->conference, user);
67 
69 }
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.
void conf_handle_second_active(struct confbridge_conference *conference)
Handle when a conference moves to having more than one active participant.
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

◆ leave_marked()

static void leave_marked ( struct confbridge_user user)
static

Definition at line 71 of file conf_state_single_marked.c.

References conf_change_state(), conf_moh_stop(), conf_remove_user_marked(), CONF_STATE_EMPTY, confbridge_user::conference, and confbridge_user::playing_moh.

72 {
74  if (user->playing_moh) {
75  conf_moh_stop(user);
76  }
77 
79 }
void conf_remove_user_marked(struct confbridge_conference *conference, struct confbridge_user *user)
Remove a conference bridge user from the marked active conference users in the conference.
unsigned int playing_moh
Definition: confbridge.h:280
struct confbridge_conference * conference
Definition: confbridge.h:269
struct confbridge_state * CONF_STATE_EMPTY
Conference state with no active or waiting users.
void conf_moh_stop(struct confbridge_user *user)
Stop MOH for the conference 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

◆ transition_to_single_marked()

static void transition_to_single_marked ( struct confbridge_user user)
static

Definition at line 81 of file conf_state_single_marked.c.

References conf_mute_only_active(), and confbridge_user::conference.

82 {
84 }
struct confbridge_conference * conference
Definition: confbridge.h:269
void conf_mute_only_active(struct confbridge_conference *conference)
Attempt to mute/play MOH to the only user in the conference if they require it.

Variable Documentation

◆ CONF_STATE_SINGLE_MARKED

struct confbridge_state* CONF_STATE_SINGLE_MARKED = &STATE_SINGLE_MARKED

Conference state with only a single marked active user.

Definition at line 51 of file conf_state_single_marked.c.

Referenced by join_marked(), leave_active(), and leave_marked().

◆ STATE_SINGLE_MARKED

struct confbridge_state STATE_SINGLE_MARKED

Definition at line 43 of file conf_state_single_marked.c.