Asterisk - The Open Source Telephony Project
18.5.0
|
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. More... | |
void | conf_default_leave_waitmarked (struct confbridge_user *user) |
Logic to execute every time a waitmarked user leaves an unmarked conference. More... | |
void | conf_invalid_event_fn (struct confbridge_user *user) |
A handler for join/leave events that are invalid in a particular state. More... | |
Variables | |
struct confbridge_state * | CONF_STATE_EMPTY |
Conference state with no active or waiting users. More... | |
struct confbridge_state * | CONF_STATE_INACTIVE |
Conference state with only waiting users. More... | |
struct confbridge_state * | CONF_STATE_MULTI |
Conference state with multiple active users, but no marked users. More... | |
struct confbridge_state * | CONF_STATE_MULTI_MARKED |
Conference state with multiple active users and at least one marked user. More... | |
struct confbridge_state * | CONF_STATE_SINGLE |
Conference state with only a single unmarked active user. More... | |
struct confbridge_state * | CONF_STATE_SINGLE_MARKED |
Conference state with only a single marked active user. More... | |
Confbridge state handling.
See https://wiki.asterisk.org/wiki/display/AST/Confbridge+state+changes for a more complete description of how conference states work.
Definition in file conf_state.h.
typedef void(* conference_entry_fn) (struct confbridge_user *user) |
Definition at line 44 of file conf_state.h.
typedef void(* conference_event_fn) (struct confbridge_user *user) |
Definition at line 43 of file conf_state.h.
typedef void(* conference_exit_fn) (struct confbridge_user *user) |
Definition at line 45 of 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 82 of file conf_state.c.
References ast_debug, ast_test_suite_event_notify, confbridge_user::conference, confbridge_state::entry, confbridge_state::exit, confbridge_state::name, confbridge_conference::name, and confbridge_conference::state.
Referenced by join_active(), join_marked(), join_unmarked(), join_waitmarked(), leave_active(), leave_marked(), leave_unmarked(), and leave_waitmarked().
void conf_default_join_waitmarked | ( | struct confbridge_user * | user | ) |
Logic to execute every time a waitmarked user joins an unmarked conference.
Definition at line 67 of file conf_state.c.
References conf_add_post_join_action(), conf_add_user_waiting(), conf_handle_inactive_waitmarked(), conf_mute_moh_inactive_waitmarked(), and confbridge_user::conference.
Referenced by join_waitmarked().
void conf_default_leave_waitmarked | ( | struct confbridge_user * | user | ) |
Logic to execute every time a waitmarked user leaves an unmarked conference.
Definition at line 74 of file conf_state.c.
References conf_moh_stop(), conf_remove_user_waiting(), confbridge_user::conference, and confbridge_user::playing_moh.
Referenced by leave_waitmarked().
void conf_invalid_event_fn | ( | struct confbridge_user * | user | ) |
A handler for join/leave events that are invalid in a particular state.
Definition at line 45 of file conf_state.c.
References ast_log, LOG_ERROR, user_profile::name, and confbridge_user::u_profile.
Referenced by handle_conf_user_join(), and handle_conf_user_leave().
struct confbridge_state* CONF_STATE_EMPTY |
Conference state with no active or waiting users.
Definition at line 53 of file conf_state_empty.c.
Referenced by join_conference_bridge(), leave_marked(), leave_unmarked(), and leave_waitmarked().
struct confbridge_state* CONF_STATE_INACTIVE |
Conference state with only waiting users.
Definition at line 49 of file conf_state_inactive.c.
Referenced by join_waitmarked(), leave_marked(), and leave_unmarked().
struct confbridge_state* CONF_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().
struct confbridge_state* CONF_STATE_MULTI_MARKED |
Conference state with multiple active users and at least one marked user.
Definition at line 59 of file conf_state_multi_marked.c.
Referenced by join_active(), and join_marked().
struct confbridge_state* CONF_STATE_SINGLE |
Conference state with only a single unmarked active user.
Definition at line 52 of file conf_state_single.c.
Referenced by join_unmarked(), leave_marked(), and leave_unmarked().
struct confbridge_state* CONF_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().