FreeSWITCH API Documentation
1.7.0
|
Go to the source code of this file.
Data Structures | |
struct | media_job_t |
struct | switch_ivr_digit_stream_parser |
struct | switch_ivr_digit_stream |
Macros | |
#define | add_stat(_x, _i, _s) |
#define | add_stat_double(_x, _i, _s) |
#define | add_jstat(_j, _i, _s) |
#define | START_SAMPLES 32768 |
#define add_jstat | ( | _j, | |
_i, | |||
_s | |||
) |
Definition at line 3072 of file switch_ivr.c.
Referenced by switch_ivr_set_json_call_stats().
#define add_stat | ( | _x, | |
_i, | |||
_s | |||
) |
Definition at line 2569 of file switch_ivr.c.
Referenced by switch_ivr_set_xml_call_stats().
#define add_stat_double | ( | _x, | |
_i, | |||
_s | |||
) |
Definition at line 2574 of file switch_ivr.c.
Referenced by switch_ivr_set_xml_call_stats().
#define START_SAMPLES 32768 |
Definition at line 4007 of file switch_ivr.c.
Referenced by switch_ivr_insert_file().
|
static |
Definition at line 3736 of file switch_ivr.c.
Referenced by switch_ivr_set_user_xml().
|
static |
Definition at line 1988 of file switch_ivr.c.
References media_job_t::delay, media_job_t::flags, media_job_t::is3p, media_job_t::on, switch_ivr_3p_media(), switch_ivr_3p_nomedia(), switch_ivr_media(), switch_ivr_nomedia(), switch_yield, and media_job_t::uuid.
Referenced by switch_ivr_bg_media().
switch_status_t switch_ivr_parse_event | ( | switch_core_session_t * | session, |
switch_event_t * | event | ||
) |
Definition at line 497 of file switch_ivr.c.
References CF_BREAK, CF_BRIDGED, CF_BROADCAST, CF_EVENT_LOCK, CF_EVENT_LOCK_PRI, CF_EVENT_PARSE, CF_STOP_BROADCAST, switch_event_header::name, switch_event_header::next, SFF_CNG, SMF_ECHO_ALEG, SMF_LOOP, SMF_REBRIDGE, switch_caller_extension_add_application(), switch_caller_extension_new(), SWITCH_CAUSE_NORMAL_CLEARING, switch_channel_audio_sync, switch_channel_clear_flag(), switch_channel_clear_flag_recursive(), switch_channel_get_hold_music(), switch_channel_get_hold_music_partner(), switch_channel_get_name(), switch_channel_get_partner_uuid(), switch_channel_hangup, switch_channel_media_ready, switch_channel_ready, SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_flag, switch_channel_set_flag_recursive(), switch_channel_set_variable, switch_channel_set_variable_printf(), switch_channel_stop_broadcast, switch_channel_str2cause(), switch_channel_test_flag(), switch_channel_transfer_to_extension(), switch_channel_wait_for_flag(), switch_core_session_execute_application, switch_core_session_flush_private_events(), switch_core_session_get_channel(), switch_core_session_kill_channel, switch_core_session_locate, switch_core_session_read_frame(), switch_core_session_rwunlock(), switch_core_session_strdup, switch_event_get_body(), switch_event_get_header, SWITCH_FALSE, switch_hashfunc_default(), SWITCH_IO_FLAG_NONE, switch_is_moh(), switch_ivr_activate_unicast(), switch_ivr_broadcast(), switch_ivr_nomedia(), SWITCH_LOG_DEBUG, SWITCH_LOG_ERROR, switch_log_printf(), switch_micro_time_now(), SWITCH_READ_ACCEPTABLE, SWITCH_SIG_BREAK, SWITCH_STATUS_BREAK, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_str_nil, switch_test_flag, SWITCH_TRUE, switch_true(), switch_event_header::value, and zstr.
Referenced by switch_ivr_park(), and switch_ivr_parse_next_event().
switch_status_t switch_ivr_session_transfer | ( | switch_core_session_t * | session, |
const char * | extension, | ||
const char * | dialplan, | ||
const char * | context | ||
) |
Definition at line 2037 of file switch_ivr.c.
References CF_ORIGINATING, CF_TRANSFER, switch_caller_profile::context, CS_ROUTING, switch_caller_profile::destination_number, switch_caller_profile::dialplan, switch_core_session_message::from, switch_core_session_message::message_id, switch_caller_profile::pool, switch_caller_profile::rdnis, SMF_NONE, SWITCH_BRIDGE_VARIABLE, switch_caller_profile_clone(), SWITCH_CAUSE_BLIND_TRANSFER, SWITCH_CAUSE_EXCHANGE_ROUTING_ERROR, switch_channel_add_variable_var_check(), switch_channel_audio_sync, switch_channel_clear_flag(), switch_channel_clear_state_handler(), switch_channel_execute_on(), switch_channel_get_caller_profile(), switch_channel_get_name(), switch_channel_get_variable, switch_channel_hangup, SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_caller_profile(), switch_channel_set_flag, switch_channel_set_state, switch_channel_set_variable, switch_channel_set_variable_var_check(), switch_core_session_get_channel(), switch_core_session_locate, switch_core_session_receive_message, switch_core_session_reset(), switch_core_session_rwunlock(), switch_core_session_sprintf(), switch_core_sprintf(), switch_core_strdup, switch_epoch_time_now(), SWITCH_FALSE, SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE, switch_ivr_media(), SWITCH_LOG_NOTICE, switch_log_printf(), SWITCH_MAX_FORWARDS_VARIABLE, SWITCH_MAX_SESSION_TRANSFERS_VARIABLE, SWITCH_MESSAGE_INDICATE_TRANSFER, SWITCH_SIGNAL_BOND_VARIABLE, SWITCH_SIGNAL_BRIDGE_VARIABLE, SWITCH_STACK_PUSH, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, SWITCH_TEMP_HOLD_MUSIC_VARIABLE, SWITCH_TRANSFER_HISTORY_VARIABLE, SWITCH_TRANSFER_SOURCE_VARIABLE, SWITCH_TRUE, switch_caller_profile::transfer_source, switch_caller_profile::uuid_str, and zstr.
void switch_ivr_set_json_call_stats | ( | cJSON * | json, |
switch_core_session_t * | session, | ||
switch_media_type_t | type | ||
) |
Definition at line 3076 of file switch_ivr.c.
References add_jstat, switch_rtp_numbers_t::burstrate, cJSON_AddItemToArray(), cJSON_AddItemToObject(), cJSON_CreateArray(), cJSON_CreateNumber(), cJSON_CreateObject(), switch_rtp_numbers_t::cng_packet_count, switch_rtp_numbers_t::dtmf_packet_count, ep, switch_rtp_numbers_t::error_log, 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, error_period::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, error_period::start, switch_rtp_numbers_t::std_deviation, error_period::stop, switch_core_media_get_stats(), SWITCH_MEDIA_TYPE_VIDEO, and switch_rtp_numbers_t::variance.
Referenced by switch_ivr_generate_json_cdr().
|
static |
Definition at line 3146 of file switch_ivr.c.
References cJSON_AddItemToObject(), cJSON_CreateString(), memset(), switch_event_header::name, switch_event_header::next, switch_channel_variable_first(), switch_channel_variable_last(), switch_safe_free, switch_url_encode(), switch_event_header::value, and zstr.
Referenced by switch_ivr_generate_json_cdr().
|
static |
Definition at line 3055 of file switch_ivr.c.
References switch_caller_profile::ani, switch_caller_profile::aniii, switch_caller_profile::caller_id_name, switch_caller_profile::caller_id_number, switch_caller_profile::chan_name, cJSON_AddItemToObject(), cJSON_CreateString(), switch_caller_profile::context, switch_caller_profile::destination_number, switch_caller_profile::dialplan, switch_caller_profile::network_addr, switch_caller_profile::rdnis, switch_caller_profile::source, switch_caller_profile::username, and switch_caller_profile::uuid.
Referenced by switch_ivr_generate_json_cdr().
int switch_ivr_set_xml_call_stats | ( | switch_xml_t | xml, |
switch_core_session_t * | session, | ||
int | off, | ||
switch_media_type_t | type | ||
) |
Definition at line 2579 of file switch_ivr.c.
References add_stat, add_stat_double, switch_rtp_numbers_t::burstrate, switch_rtp_numbers_t::cng_packet_count, switch_rtp_numbers_t::dtmf_packet_count, ep, switch_rtp_numbers_t::error_log, 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, error_period::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, error_period::start, switch_rtp_numbers_t::std_deviation, error_period::stop, switch_core_media_get_stats(), SWITCH_MEDIA_TYPE_VIDEO, switch_snprintf(), SWITCH_TIME_T_FMT, switch_xml_add_child_d, switch_xml_set_txt_d, and switch_rtp_numbers_t::variance.
Referenced by switch_ivr_generate_xml_cdr().
|
static |
Definition at line 2667 of file switch_ivr.c.
References memset(), switch_url_encode(), switch_xml_add_child_d, switch_xml_set_txt_d, and zstr.
Referenced by switch_ivr_set_xml_chan_vars().
|
static |
Definition at line 355 of file switch_ivr.c.
References switch_unicast_conninfo::session, SUF_THREAD_RUNNING, switch_core_session_get_pool(), switch_set_flag_locked, switch_thread_create(), SWITCH_THREAD_STACKSIZE, switch_threadattr_create(), switch_threadattr_stacksize_set(), switch_unicast_conninfo::thread, and unicast_thread_run().
Referenced by switch_ivr_park().
|
static |
Definition at line 330 of file switch_ivr.c.
References switch_frame::buflen, switch_frame::data, switch_frame::datalen, switch_frame::samples, switch_unicast_conninfo::session, switch_unicast_conninfo::socket, switch_unicast_conninfo::stream_id, SUF_READY, SUF_THREAD_RUNNING, switch_clear_flag_locked, switch_core_session_write_frame(), SWITCH_IO_FLAG_NONE, switch_socket_recv(), SWITCH_STATUS_SUCCESS, switch_test_flag, and switch_unicast_conninfo::write_frame.
Referenced by unicast_thread_launch().