Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Confbridge state handling. More...
#include "asterisk.h"
#include "asterisk/logger.h"
#include "asterisk/test.h"
#include "include/conf_state.h"
#include "include/confbridge.h"
Go to the source code of this file.
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... | |
static void | conf_mute_moh_inactive_waitmarked (struct confbridge_user *user) |
Confbridge state handling.
This file contains functions that are used from multiple conf_state files for handling stage change behavior.
Definition in file conf_state.c.
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, and confbridge_state::name.
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 62 of file conf_state.c.
References conf_add_post_join_action(), conf_add_user_waiting(), conf_handle_inactive_waitmarked(), and conf_mute_moh_inactive_waitmarked().
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 69 of file conf_state.c.
References conf_moh_stop(), and conf_remove_user_waiting().
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 42 of file conf_state.c.
References ast_log, and LOG_ERROR.
Referenced by handle_conf_user_join(), and handle_conf_user_leave().
|
static |
Definition at line 53 of file conf_state.c.
References ast_test_flag, conf_moh_start(), conf_update_user_mute(), and USER_OPT_MUSICONHOLD.
Referenced by conf_default_join_waitmarked().