Asterisk - The Open Source Telephony Project
21.4.1
|
Confbridge state handling. More...
Go to the source code of this file.
Data Structures | |
struct | confbridge_state |
A conference state object to hold the various state callback functions. More... | |
Typedefs | |
typedef void(* | conference_entry_fn) (struct confbridge_user *user) |
typedef void(* | conference_event_fn) (struct confbridge_user *user) |
typedef void(* | conference_exit_fn) (struct confbridge_user *user) |
Functions | |
void | conf_change_state (struct confbridge_user *user, struct confbridge_state *newstate) |
Execute conference state transition because of a user action. More... | |
void | conf_default_join_waitmarked (struct confbridge_user *user) |
Logic to execute every time a waitmarked user joins an unmarked conference. | |
void | conf_default_leave_waitmarked (struct confbridge_user *user) |
Logic to execute every time a waitmarked user leaves an unmarked conference. | |
void | conf_invalid_event_fn (struct confbridge_user *user) |
A handler for join/leave events that are invalid in a particular state. | |
Variables | |
struct confbridge_state * | CONF_STATE_EMPTY |
Conference state with no active or waiting users. | |
struct confbridge_state * | CONF_STATE_INACTIVE |
Conference state with only waiting users. | |
struct confbridge_state * | CONF_STATE_MULTI |
Conference state with multiple active users, but no marked users. | |
struct confbridge_state * | CONF_STATE_MULTI_MARKED |
Conference state with multiple active users and at least one marked user. | |
struct confbridge_state * | CONF_STATE_SINGLE |
Conference state with only a single unmarked active user. | |
struct confbridge_state * | CONF_STATE_SINGLE_MARKED |
Conference state with only a single marked active user. | |
Confbridge state handling.
See https://docs.asterisk.org/Development/Reference-Information/Other-Reference-Information/Confbridge-state-changes/ for a more complete description of how conference states work.
Definition in file conf_state.h.
void conf_change_state | ( | struct confbridge_user * | user, |
struct confbridge_state * | newstate | ||
) |
Execute conference state transition because of a user action.
user | The user that joined/left |
newstate | The state to transition to |
Definition at line 77 of file conf_state.c.
References ast_debug, ast_test_suite_event_notify, confbridge_user::conference, confbridge_state::entry, confbridge_state::exit, confbridge_conference::name, and confbridge_conference::state.