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...
void conf_default_leave_waitmarked(struct confbridge_user *user)
Logic to execute every time a waitmarked user leaves an unmarked conference.
struct confbridge_conference * conference
static void leave_waitmarked(struct confbridge_user *user)
void conf_update_user_mute(struct confbridge_user *user)
Update the actual mute status of the user and set it on the bridge.
struct confbridge_state * CONF_STATE_EMPTY
Conference state with no active or waiting users.
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.
unsigned int waitingusers
static void join_unmarked(struct confbridge_user *user)
struct confbridge_state STATE_INACTIVE
void conf_default_join_waitmarked(struct confbridge_user *user)
Logic to execute every time a waitmarked user joins an unmarked conference.
int conf_handle_only_person(struct confbridge_user *user)
Handle actions whenever an user joins an empty conference.
struct confbridge_state * CONF_STATE_SINGLE
Conference state with only a single unmarked active user.
structure to hold users read from users.conf
Confbridge state handling.
A conference state object to hold the various state callback functions.
struct confbridge_state * CONF_STATE_INACTIVE
Conference state with only waiting users.
static void join_marked(struct confbridge_user *user)
The structure that represents a conference bridge user.
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.