FreeSWITCH API Documentation
1.7.0
|
Go to the source code of this file.
Variables | |
static uint32_t | CODEC_ID = 1 |
switch_codec_t* switch_core_session_get_effective_read_codec | ( | switch_core_session_t * | session | ) |
Definition at line 303 of file switch_core_codec.c.
switch_codec_t* switch_core_session_get_effective_write_codec | ( | switch_core_session_t * | session | ) |
Definition at line 466 of file switch_core_codec.c.
switch_codec_t* switch_core_session_get_read_codec | ( | switch_core_session_t * | session | ) |
Definition at line 310 of file switch_core_codec.c.
switch_codec_t* switch_core_session_get_video_read_codec | ( | switch_core_session_t * | session | ) |
Definition at line 524 of file switch_core_codec.c.
switch_codec_t* switch_core_session_get_video_write_codec | ( | switch_core_session_t * | session | ) |
Definition at line 569 of file switch_core_codec.c.
switch_codec_t* switch_core_session_get_write_codec | ( | switch_core_session_t * | session | ) |
Definition at line 474 of file switch_core_codec.c.
void switch_core_session_lock_codec_read | ( | switch_core_session_t * | session | ) |
Definition at line 72 of file switch_core_codec.c.
References switch_mutex_lock().
void switch_core_session_lock_codec_write | ( | switch_core_session_t * | session | ) |
Definition at line 62 of file switch_core_codec.c.
References switch_mutex_lock().
switch_status_t switch_core_session_set_read_codec | ( | switch_core_session_t * | session, |
switch_codec_t * | codec | ||
) |
Definition at line 195 of file switch_core_codec.c.
References CF_MEDIA_SET, switch_codec::implementation, memset(), switch_codec::next, switch_channel_event_set_data(), switch_channel_get_name(), SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_flag, switch_channel_set_variable, switch_core_codec_ready(), switch_core_session_get_channel(), switch_event_add_header(), switch_event_add_header_string(), SWITCH_EVENT_CODEC, switch_event_create, switch_event_fire, SWITCH_LOG_DEBUG, switch_log_printf(), switch_mutex_lock(), switch_mutex_unlock(), switch_snprintf(), SWITCH_STACK_BOTTOM, SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.
switch_status_t switch_core_session_set_real_read_codec | ( | switch_core_session_t * | session, |
switch_codec_t * | codec | ||
) |
Definition at line 94 of file switch_core_codec.c.
References CF_MEDIA_SET, switch_codec::implementation, memset(), switch_codec::next, switch_channel_event_set_data(), switch_channel_get_name(), SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_flag, switch_channel_set_variable, switch_core_codec_destroy(), switch_core_codec_ready(), switch_core_session_get_channel(), switch_event_add_header(), switch_event_add_header_string(), SWITCH_EVENT_CODEC, switch_event_create, switch_event_fire, SWITCH_LOG_DEBUG, switch_log_printf(), switch_mutex_lock(), switch_mutex_unlock(), switch_snprintf(), SWITCH_STACK_BOTTOM, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_thread_rwlock_unlock(), and switch_thread_rwlock_wrlock().
switch_status_t switch_core_session_set_video_read_codec | ( | switch_core_session_t * | session, |
switch_codec_t * | codec | ||
) |
Definition at line 484 of file switch_core_codec.c.
References memset(), switch_channel_event_set_data(), SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_variable, switch_core_codec_ready(), switch_core_session_get_channel(), switch_event_add_header(), switch_event_add_header_string(), SWITCH_EVENT_CODEC, switch_event_create, switch_event_fire, SWITCH_LOG_ERROR, switch_log_printf(), switch_snprintf(), SWITCH_STACK_BOTTOM, SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.
switch_status_t switch_core_session_set_video_write_codec | ( | switch_core_session_t * | session, |
switch_codec_t * | codec | ||
) |
Definition at line 533 of file switch_core_codec.c.
References switch_channel_event_set_data(), SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_variable, switch_core_codec_ready(), switch_core_session_get_channel(), switch_event_add_header(), switch_event_add_header_string(), SWITCH_EVENT_CODEC, switch_event_create, switch_event_fire, SWITCH_LOG_ERROR, switch_log_printf(), switch_snprintf(), SWITCH_STACK_BOTTOM, SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.
switch_status_t switch_core_session_set_write_codec | ( | switch_core_session_t * | session, |
switch_codec_t * | codec | ||
) |
Definition at line 401 of file switch_core_codec.c.
References switch_channel_event_set_data(), SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_variable, switch_core_codec_ready(), switch_core_session_get_channel(), switch_event_add_header(), switch_event_add_header_string(), SWITCH_EVENT_CODEC, switch_event_create, switch_event_fire, SWITCH_LOG_ERROR, switch_log_printf(), switch_mutex_lock(), switch_mutex_unlock(), switch_snprintf(), SWITCH_STACK_BOTTOM, SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.
void switch_core_session_unlock_codec_read | ( | switch_core_session_t * | session | ) |
Definition at line 77 of file switch_core_codec.c.
References switch_mutex_unlock().
void switch_core_session_unlock_codec_write | ( | switch_core_session_t * | session | ) |
Definition at line 67 of file switch_core_codec.c.
References switch_mutex_unlock().
void switch_core_session_unset_read_codec | ( | switch_core_session_t * | session | ) |
Definition at line 46 of file switch_core_codec.c.
References mutex, switch_mutex_lock(), and switch_mutex_unlock().
void switch_core_session_unset_write_codec | ( | switch_core_session_t * | session | ) |
Definition at line 82 of file switch_core_codec.c.
References mutex, switch_mutex_lock(), and switch_mutex_unlock().
|
static |
Definition at line 39 of file switch_core_codec.c.
Referenced by switch_core_codec_next_id().