Asterisk - The Open Source Telephony Project GIT-master-2de1a68
Functions | Variables
conf_state_inactive.c File Reference

Confbridge state handling for the INACTIVE state. More...

#include "include/confbridge.h"
#include "include/conf_state.h"
Include dependency graph for conf_state_inactive.c:

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_waitmarked (struct confbridge_user *user)
 

Variables

struct confbridge_stateCONF_STATE_INACTIVE = &STATE_INACTIVE
 Conference state with only waiting users. More...
 
struct confbridge_state STATE_INACTIVE
 

Detailed Description

Confbridge state handling for the INACTIVE state.

Author
Terry Wilson <twilson@digium.com> 

Definition in file conf_state_inactive.c.

Function Documentation

◆ join_marked()

static void join_marked ( struct confbridge_user user)
static

Definition at line 56 of file conf_state_inactive.c.

57{
58 conf_add_user_marked(user->conference, user);
60
62}
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_update_user_mute(struct confbridge_user *user)
Update the actual mute status of the user and set it on the bridge.
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:77
struct confbridge_state * CONF_STATE_MULTI_MARKED
Conference state with multiple active users and at least one marked user.
structure to hold users read from users.conf

References conf_add_user_marked(), conf_change_state(), CONF_STATE_MULTI_MARKED, and conf_update_user_mute().

◆ join_unmarked()

static void join_unmarked ( struct confbridge_user user)
static

Definition at line 48 of file conf_state_inactive.c.

49{
50 conf_add_user_active(user->conference, user);
52
54}
int conf_handle_only_person(struct confbridge_user *user)
Handle actions whenever an user joins an empty conference.
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.
int conf_add_post_join_action(struct confbridge_user *user, int(*func)(struct confbridge_user *user))
Queue a function to run with the given conference bridge user as an argument once the state transitio...
struct confbridge_state * CONF_STATE_SINGLE
Conference state with only a single unmarked active user.

References conf_add_post_join_action(), conf_add_user_active(), conf_change_state(), conf_handle_only_person(), and CONF_STATE_SINGLE.

◆ leave_waitmarked()

static void leave_waitmarked ( struct confbridge_user user)
static

Definition at line 64 of file conf_state_inactive.c.

65{
67 if (user->conference->waitingusers == 0) {
69 }
70}
void conf_default_leave_waitmarked(struct confbridge_user *user)
Logic to execute every time a waitmarked user leaves an unmarked conference.
Definition: conf_state.c:69
struct confbridge_state * CONF_STATE_EMPTY
Conference state with no active or waiting users.

References conf_change_state(), conf_default_leave_waitmarked(), and CONF_STATE_EMPTY.

Variable Documentation

◆ CONF_STATE_INACTIVE

struct confbridge_state* CONF_STATE_INACTIVE = &STATE_INACTIVE

Conference state with only waiting users.

Definition at line 46 of file conf_state_inactive.c.

Referenced by join_waitmarked(), leave_marked(), and leave_unmarked().

◆ STATE_INACTIVE

struct confbridge_state STATE_INACTIVE

Definition at line 39 of file conf_state_inactive.c.