36 #ifndef _CONF_STATE_H_ 37 #define _CONF_STATE_H_
struct confbridge_state * CONF_STATE_EMPTY
Conference state with no active or waiting users.
conference_event_fn join_unmarked
struct confbridge_state * CONF_STATE_INACTIVE
Conference state with only waiting users.
void(* conference_entry_fn)(struct confbridge_user *user)
conference_event_fn leave_unmarked
conference_event_fn join_marked
struct confbridge_state * CONF_STATE_MULTI_MARKED
Conference state with multiple active users and at least one marked user.
conference_event_fn leave_marked
struct confbridge_state * CONF_STATE_SINGLE_MARKED
Conference state with only a single marked active user.
conference_entry_fn entry
struct confbridge_state * CONF_STATE_MULTI
Conference state with multiple active users, but no marked users.
void conf_invalid_event_fn(struct confbridge_user *user)
A handler for join/leave events that are invalid in a particular state.
void(* conference_exit_fn)(struct confbridge_user *user)
conference_event_fn join_waitmarked
void conf_default_leave_waitmarked(struct confbridge_user *user)
Logic to execute every time a waitmarked user leaves an unmarked conference.
The structure that represents a conference bridge.
structure to hold users read from users.conf
A conference state object to hold the various state callback functions.
void conf_change_state(struct confbridge_user *user, struct confbridge_state *newstate)
Execute conference state transition because of a user action.
conference_event_fn leave_waitmarked
The structure that represents a conference bridge user.
struct confbridge_state * CONF_STATE_SINGLE
Conference state with only a single unmarked active user.
void(* conference_event_fn)(struct confbridge_user *user)
void conf_default_join_waitmarked(struct confbridge_user *user)
Logic to execute every time a waitmarked user joins an unmarked conference.