RTS API Documentation
1.10.11
|
Go to the source code of this file.
Macros | |
#define | STATE_MACRO(__STATE, __STATE_STR) |
#define STATE_MACRO | ( | __STATE, | |
__STATE_STR | |||
) |
Definition at line 425 of file switch_core_state_machine.c.
Referenced by switch_core_session_destroy_state(), switch_core_session_hangup_state(), switch_core_session_reporting_state(), and switch_core_session_run().
|
static |
Definition at line 752 of file switch_core_state_machine.c.
References switch_core_session::channel, switch_stream_handle::data, switch_stream_handle::param_event, switch_api_execute(), switch_channel_event_set_data(), switch_channel_get_variables(), SWITCH_CHANNEL_SESSION_LOG, switch_event_expand_headers, SWITCH_LOG_DEBUG, switch_log_printf(), switch_safe_free, SWITCH_STANDARD_STREAM, switch_str_nil, and zstr.
Referenced by switch_core_session_hangup_state(), and switch_core_session_reporting_state().
|
static |
Definition at line 512 of file switch_core_state_machine.c.
References switch_core_session::channel, CS_HANGUP, CS_ROUTING, SWITCH_CAUSE_LOSE_RACE, switch_channel_get_cause(), switch_channel_get_running_state(), switch_channel_presence, switch_channel_set_variable, and switch_channel_state_name().
Referenced by switch_core_session_run().
void switch_core_session_run | ( | switch_core_session_t * | session | ) |
Definition at line 528 of file switch_core_state_machine.c.
References CF_BLOCK_STATE, CF_NO_CDR, CF_REDIRECT, CF_STATE_REPEAT, CF_THREAD_SLEEPING, CF_TRANSFER, CF_VIDEO, switch_core_session::channel, check_presence(), switch_core_session::cond, CS_CONSUME_MEDIA, CS_DESTROY, CS_EXCHANGE_MEDIA, CS_EXECUTE, CS_HANGUP, CS_HIBERNATE, CS_INIT, CS_NEW, CS_NONE, CS_PARK, CS_REPORTING, CS_RESET, CS_ROUTING, CS_SOFT_EXECUTE, switch_core_session::endpoint_interface, db_job::event, switch_core_session::event_hooks, index, switch_endpoint_interface::io_routines, switch_core_session::mutex, switch_io_event_hook_state_run::next, SSF_THREAD_RUNNING, switch_endpoint_interface::state_handler, STATE_MACRO, switch_io_event_hook_state_run::state_run, switch_io_routines::state_run, switch_assert, SWITCH_CALL_DIRECTION_OUTBOUND, SWITCH_CAUSE_WRONG_CALL_STATE, switch_channel_clear_flag(), switch_channel_direction(), switch_channel_event_set_data(), switch_channel_get_name(), switch_channel_get_running_state(), switch_channel_get_state(), switch_channel_hangup, SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_flag, switch_channel_set_running_state, switch_channel_set_state, switch_channel_state_name(), switch_channel_state_thread_lock(), switch_channel_state_thread_unlock(), switch_channel_test_flag(), switch_channel_wait_for_flag(), switch_clear_flag, switch_core_session_get_name, switch_core_session_hangup_state(), switch_core_session_reporting_state(), switch_core_session_wake_video_thread(), SWITCH_EVENT_CHANNEL_CREATE, SWITCH_EVENT_CHANNEL_ORIGINATE, switch_event_create, switch_event_fire, SWITCH_FALSE, switch_ivr_parse_all_events(), switch_ivr_parse_all_messages(), SWITCH_LOG_DEBUG, SWITCH_LOG_DEBUG1, switch_log_printf(), SWITCH_LOG_WARNING, switch_mutex_lock(), switch_mutex_unlock(), switch_set_flag, SWITCH_STATUS_SUCCESS, switch_thread_cond_wait(), SWITCH_TRUE, switch_yield, and switch_core_session::uuid_str.
|
static |
Definition at line 408 of file switch_core_state_machine.c.
References switch_core_session::channel, switch_assert, switch_channel_get_name(), SWITCH_CHANNEL_SESSION_LOG, SWITCH_LOG_DEBUG, and switch_log_printf().
|
static |
Definition at line 172 of file switch_core_state_machine.c.
References switch_core_session::channel, switch_channel_get_name(), SWITCH_CHANNEL_SESSION_LOG, SWITCH_LOG_DEBUG, and switch_log_printf().
|
static |
Definition at line 388 of file switch_core_state_machine.c.
References switch_core_session::channel, switch_channel_get_name(), SWITCH_CHANNEL_SESSION_LOG, SWITCH_LOG_DEBUG, and switch_log_printf().
|
static |
Definition at line 318 of file switch_core_state_machine.c.
References switch_caller_application::application_data, switch_caller_application::application_name, CF_CONFIRM_BLIND_TRANSFER, CF_RECOVERED, CF_RECOVERING, CF_RESET, switch_core_session::channel, CS_EXECUTE, CS_PARK, switch_caller_extension::current_application, switch_core_session_message::from, switch_core_session_message::message_id, switch_caller_application::next, switch_core_session_message::numeric_arg, SWITCH_CAUSE_NORMAL_CLEARING, switch_channel_audio_sync, switch_channel_clear_flag(), switch_channel_get_caller_extension(), switch_channel_get_name(), switch_channel_get_state(), switch_channel_get_variable, switch_channel_hangup, switch_channel_ready, SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_flag, switch_channel_set_state, switch_channel_set_variable, switch_channel_test_flag(), switch_channel_video_sync, switch_core_session_execute_application, switch_core_session_get_uuid(), switch_core_session_locate, switch_core_session_receive_message, switch_core_session_rwunlock(), switch_core_session_video_reset(), SWITCH_LOG_DEBUG, SWITCH_LOG_NOTICE, switch_log_printf(), SWITCH_MESSAGE_INDICATE_BLIND_TRANSFER_RESPONSE, and SWITCH_STATUS_SUCCESS.
|
static |
Definition at line 55 of file switch_core_state_machine.c.
References switch_caller_application::application_data, switch_caller_application::application_name, switch_rtp_numbers_t::burstrate, CF_RECOVERING, CF_ZOMBIE_EXEC, switch_core_session::channel, switch_rtp_numbers_t::cng_packet_count, switch_caller_extension::current_application, switch_rtp_numbers_t::dtmf_packet_count, switch_rtp_numbers_t::flaws, switch_rtp_numbers_t::flush_packet_count, switch_rtp_stats_t::inbound, switch_rtp_numbers_t::jb_packet_count, switch_rtp_numbers_t::largest_jb_size, switch_rtp_numbers_t::lossrate, switch_rtp_numbers_t::max_variance, switch_rtp_numbers_t::mean_interval, switch_rtp_numbers_t::media_bytes, switch_rtp_numbers_t::media_packet_count, switch_rtp_numbers_t::min_variance, switch_rtp_numbers_t::mos, switch_caller_application::next, switch_rtcp_numbers_t::octet_count, switch_rtp_stats_t::outbound, switch_rtp_numbers_t::packet_count, switch_rtcp_numbers_t::packet_count, switch_rtp_numbers_t::R, switch_rtp_numbers_t::raw_bytes, switch_rtp_stats_t::rtcp, switch_rtp_numbers_t::skip_packet_count, switch_channel_cause2str(), switch_channel_clear_flag(), switch_channel_get_caller_extension(), switch_channel_get_cause(), switch_channel_get_name(), switch_channel_get_variable, SWITCH_CHANNEL_SESSION_LOG, switch_channel_test_flag(), switch_core_media_get_stats(), switch_core_media_set_stats(), switch_core_recovery_untrack(), switch_core_session_execute_application, switch_core_session_get_pool(), SWITCH_LOG_DEBUG, switch_log_printf(), SWITCH_LOG_WARNING, SWITCH_MEDIA_TYPE_AUDIO, SWITCH_STATUS_IGNORE, SWITCH_STATUS_SUCCESS, SWITCH_TRUE, and switch_true().
|
static |
Definition at line 414 of file switch_core_state_machine.c.
References switch_core_session::channel, switch_assert, switch_channel_get_name(), SWITCH_CHANNEL_SESSION_LOG, SWITCH_LOG_DEBUG, and switch_log_printf().
|
static |
Definition at line 38 of file switch_core_state_machine.c.
References CF_RECOVERING, CF_RECOVERING_BRIDGE, switch_core_session::channel, CS_EXECUTE, CS_RESET, CS_ROUTING, switch_channel_clear_flag(), switch_channel_get_name(), SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_state, switch_channel_test_flag(), SWITCH_LOG_DEBUG, and switch_log_printf().
|
static |
Definition at line 400 of file switch_core_state_machine.c.
References switch_core_session::channel, switch_assert, switch_channel_get_name(), SWITCH_CHANNEL_SESSION_LOG, switch_core_session_reset(), switch_ivr_park(), SWITCH_LOG_DEBUG, switch_log_printf(), and SWITCH_TRUE.
|
static |
Definition at line 165 of file switch_core_state_machine.c.
References switch_core_session::channel, switch_channel_cause2str(), switch_channel_get_cause(), switch_channel_get_name(), SWITCH_CHANNEL_SESSION_LOG, SWITCH_LOG_DEBUG, and switch_log_printf().
|
static |
Definition at line 178 of file switch_core_state_machine.c.
References CF_BRIDGE_ORIGINATOR, CF_MEDIA_ACK, CF_PROXY_MODE, CF_RECOVERING_BRIDGE, switch_core_session::channel, CS_RESET, switch_channel_clear_flag(), switch_channel_get_name(), switch_channel_get_partner_uuid(), SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_variable, switch_channel_test_flag(), switch_channel_up, switch_channel_wait_for_flag(), switch_channel_wait_for_state_timeout(), switch_core_session_get_channel(), switch_core_session_get_uuid(), switch_core_session_locate, switch_core_session_rwunlock(), switch_ivr_signal_bridge(), switch_ivr_uuid_bridge(), SWITCH_LOG_DEBUG, switch_log_printf(), SWITCH_TRUE, and switch_yield.
|
static |
Definition at line 222 of file switch_core_state_machine.c.
References CF_ANSWERED, CF_EARLY_MEDIA, CF_PROXY_MODE, CF_SIGNAL_BRIDGE_TTL, switch_core_session::channel, count, CS_CONSUME_MEDIA, CS_EXECUTE, switch_caller_profile::dialplan, switch_dialplan_interface::hunt_function, SMF_NONE, SWITCH_CALL_DIRECTION_OUTBOUND, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER, SWITCH_CAUSE_NO_ROUTE_DESTINATION, switch_channel_direction(), switch_channel_expand_variables, switch_channel_get_caller_profile(), switch_channel_get_name(), switch_channel_get_queued_extension(), switch_channel_hangup, SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_caller_extension(), switch_channel_set_state, switch_channel_set_variable, switch_channel_test_flag(), switch_core_session_get_uuid(), switch_core_session_strdup, SWITCH_FALSE, switch_ivr_blind_transfer_ack(), switch_ivr_media(), switch_loadable_module_get_dialplan_interface(), SWITCH_LOG_DEBUG, SWITCH_LOG_ERROR, SWITCH_LOG_INFO, switch_log_printf(), switch_separate_string(), SWITCH_STATUS_SUCCESS, UNPROTECT_INTERFACE, switch_core_session::uuid_str, and zstr.
|
static |
Definition at line 394 of file switch_core_state_machine.c.
References switch_core_session::channel, switch_assert, switch_channel_get_name(), SWITCH_CHANNEL_SESSION_LOG, SWITCH_LOG_DEBUG, and switch_log_printf().
void switch_core_state_machine_init | ( | switch_memory_pool_t * | pool | ) |
Definition at line 420 of file switch_core_state_machine.c.
Referenced by switch_core_init().