34 #define SPANDSP_NO_TIFF 1
44 #include <apr_pools.h>
52 #include <apr_strings.h>
56 #include <apr_general.h>
58 #include <apr_portable.h>
76 #ifdef HAVE_SYS_RESOURCE_H
77 #include <sys/resource.h>
84 #define SWITCH_EVENT_QUEUE_LEN 256
85 #define SWITCH_MESSAGE_QUEUE_LEN 256
87 #define SWITCH_BUFFER_BLOCK_FRAMES 25
88 #define SWITCH_BUFFER_START_FRAMES 50
struct apr_queue_t switch_queue_t
switch_memory_pool_t * switch_core_memory_init(void)
#define SWITCH_MAX_STREAMS
uint32_t min_dtmf_duration
char * core_db_inner_post_trans_execute
switch_audio_resampler_t * write_resampler
switch_frame_t dummy_cng_frame
switch_queue_t * event_queue
switch_thread_rwlock_t * bug_rwlock
switch_status_t switch_core_sqldb_start(switch_memory_pool_t *pool, switch_bool_t manage)
uint8_t raw_read_buf[SWITCH_RECOMMENDED_BUFFER_SIZE]
const switch_state_handler_table_t * state_handlers[SWITCH_MAX_STATE_HANDLERS]
Abstraction of an module endpoint interface This is the glue between the abstract idea of a "channel"...
switch_mutex_t * codec_write_mutex
switch_session_flag_t flags
switch_frame_t enc_read_frame
switch_status_t(* switch_core_video_thread_callback_func_t)(switch_core_session_t *session, switch_frame_t *frame, void *user_data)
switch_queue_t * thread_queue
switch_buffer_t * raw_write_buffer
char * core_db_post_trans_execute
#define SWITCH_RECOMMENDED_BUFFER_SIZE
void switch_core_memory_stop(void)
switch_mutex_t * codec_read_mutex
switch_buffer_t * video_raw_read_buffer
switch_codec_t * video_read_codec
switch_memory_pool_t * pool
switch_codec_t * read_codec
Representation of an event.
switch_codec_t * real_read_codec
void * streams[SWITCH_MAX_STREAMS]
void switch_core_session_init(switch_memory_pool_t *pool)
switch_thread_rwlock_t * global_var_rwlock
switch_codec_implementation_t video_read_impl
switch_codec_t * video_write_codec
switch_event_t * global_vars
switch_codec_implementation_t video_write_impl
switch_codec_implementation_t read_impl
switch_mutex_t * throttle_mutex
switch_bool_t(* switch_media_bug_callback_t)(switch_media_bug_t *, void *, switch_abc_type_t)
switch_queue_t * signal_data_queue
#define SWITCH_MAX_STATE_HANDLERS
struct switch_runtime runtime
uint32_t microseconds_per_tick
struct apr_thread_cond_t switch_thread_cond_t
switch_thread_cond_t * cond
switch_media_handle_t * media_handle
switch_io_event_hooks_t event_hooks
switch_codec_implementation_t write_impl
switch_queue_t * private_event_queue
switch_dbtype_t odbc_dbtype
void * private_info[SWITCH_CORE_SESSION_MAX_PRIVATES]
int32_t sessions_peak_fivemin
switch_codec_implementation_t real_read_impl
switch_bool_t colorize_console
switch_channel_t * channel
switch_audio_resampler_t * read_resampler
switch_mutex_t * frame_read_mutex
switch_mutex_t * video_codec_write_mutex
uint8_t enc_write_buf[SWITCH_RECOMMENDED_BUFFER_SIZE]
void switch_core_session_uninit(void)
void * video_read_user_data
switch_codec_t * write_codec
struct apr_thread_rwlock_t switch_thread_rwlock_t
switch_media_bug_t * bugs
switch_mutex_t * resample_mutex
switch_queue_t * message_queue
switch_hash_t * mime_type_exts
switch_buffer_t * video_raw_write_buffer
An abstraction of a data frame.
switch_thread_cond_t * cond
uint32_t db_handle_timeout
char uuid_str[SWITCH_UUID_FORMATTED_LENGTH+1]
switch_thread_rwlock_t * io_rwlock
pthread_t switch_thread_id_t
switch_mutex_t * session_hash_mutex
switch_buffer_t * raw_read_buffer
switch_memory_pool_t * memory_pool
switch_mutex_t * global_mutex
#define SWITCH_CORE_SESSION_MAX_PRIVATES
switch_frame_t raw_read_frame
switch_hash_t * mime_types
An audio resampling handle.
switch_core_video_thread_callback_func_t video_read_callback
uint32_t max_dtmf_duration
switch_mutex_t * video_codec_read_mutex
switch_queue_t * private_event_queue_pri
struct apr_thread_mutex_t switch_mutex_t
switch_memory_pool_t * pool
switch_status_t
Common return values.
uint8_t enc_read_buf[SWITCH_RECOMMENDED_BUFFER_SIZE]
switch_hash_t * session_table
void switch_core_sqldb_stop(void)
switch_frame_t video_raw_read_frame
struct apr_thread_t switch_thread_t
switch_log_level_t hard_log_level
uint32_t default_dtmf_duration
struct switch_session_manager session_manager
switch_frame_t enc_write_frame
switch_frame_t video_raw_write_frame
char * core_db_pre_trans_execute
uint32_t port_alloc_flags
switch_ivr_dmachine_t * dmachine[2]
switch_mutex_t * uuid_mutex
struct apr_pool_t switch_memory_pool_t
switch_memory_pool_t * memory_pool
A table of settings and callbacks that define a paticular implementation of a codec.
switch_endpoint_interface_t * endpoint_interface
switch_codec_t * real_write_codec
switch_log_level_t loglevel
uint8_t raw_write_buf[SWITCH_RECOMMENDED_BUFFER_SIZE]
uint32_t cpu_idle_smoothing_depth
char * core_db_inner_pre_trans_execute
int multiple_registrations
switch_slin_data_t * sdata
switch_thread_id_t thread_id
typedefSWITCH_BEGIN_EXTERN_C struct switch_io_event_hooks switch_io_event_hooks_t
switch_frame_t raw_write_frame
void switch_core_state_machine_init(switch_memory_pool_t *pool)
switch_thread_rwlock_t * rwlock
char uuid_str[SWITCH_UUID_FORMATTED_LENGTH+1]
switch_app_log_t * app_log
switch_log_level_t
Log Level Enumeration.
switch_profile_timer_t * profile_timer
#define SWITCH_UUID_FORMATTED_LENGTH
uint32_t read_frame_count