|
Defines |
| #define | switch_core_session_destroy(session) switch_core_session_perform_destroy(session, __FILE__, __SWITCH_FUNC__, __LINE__) |
| | Destroy a session and return the memory pool to the core.
|
| #define | switch_core_session_kill_channel(session, sig) switch_core_session_perform_kill_channel(session, __FILE__, __SWITCH_FUNC__, __LINE__, sig) |
| | Send a signal to a channel.
|
Functions |
| switch_core_session_t * | switch_core_session_request (_In_ const switch_endpoint_interface_t *endpoint_interface, _Inout_opt_ switch_memory_pool_t **pool) |
| | Allocate and return a new session from the core.
|
| void | switch_core_session_perform_destroy (_Inout_ switch_core_session_t **session, _In_z_ const char *file, _In_z_ const char *func, _In_ int line) |
| uint32_t | switch_core_session_count (void) |
| | Provide the total number of sessions.
|
| uint32_t | switch_core_session_get_id (switch_core_session_t *session) |
| switch_size_t | switch_core_session_id (void) |
| | Provide the current session_id.
|
| switch_core_session_t * | switch_core_session_request_by_name (_In_z_ const char *endpoint_name, _Inout_ switch_memory_pool_t **pool) |
| | Allocate and return a new session from the core based on a given endpoint module name.
|
| switch_status_t | switch_core_session_thread_launch (_In_ switch_core_session_t *session) |
| | Launch the session thread (state machine) on a given session.
|
| _Ret_ switch_channel_t * | switch_core_session_get_channel (_In_ switch_core_session_t *session) |
| | Retrieve a pointer to the channel object associated with a given session.
|
| void | switch_core_session_signal_state_change (_In_ switch_core_session_t *session) |
| | Signal a session's state machine thread that a state change has occured.
|
| char * | switch_core_session_get_uuid (_In_ switch_core_session_t *session) |
| | Retrieve the unique identifier from a session.
|
| char * | switch_core_get_uuid (void) |
| | Retrieve the unique identifier from the core.
|
| switch_core_session_t * | switch_core_session_locate (_In_z_ const char *uuid_str) |
| | Locate a session based on it's uuiid.
|
| char * | switch_core_get_variable (_In_z_ const char *varname) |
| | Retrieve a global variable from the core.
|
| void | switch_core_set_variable (_In_z_ const char *varname, _In_opt_z_ const char *value) |
| | Add a global variable to the core.
|
| void | switch_core_dump_variables (_In_ switch_stream_handle_t *stream) |
| void | switch_core_session_hupall (_In_ switch_call_cause_t cause) |
| | Hangup All Sessions.
|
| void | switch_core_session_hupall_matching_var (_In_ const char *var_name, _In_ const char *var_val, _In_ switch_call_cause_t cause) |
| void | switch_core_session_hupall_endpoint (const switch_endpoint_interface_t *endpoint_interface, switch_call_cause_t cause) |
| switch_status_t | switch_core_session_message_send (_In_z_ const char *uuid_str, _In_ switch_core_session_message_t *message) |
| | Send a message to another session using it's uuid.
|
| switch_status_t | switch_core_session_queue_message (_In_ switch_core_session_t *session, _In_ switch_core_session_message_t *message) |
| | Queue a message on a session.
|
| switch_status_t | switch_core_session_pass_indication (_In_ switch_core_session_t *session, _In_ switch_core_session_message_types_t indication) |
| | pass an indication message on a session
|
| switch_status_t | switch_core_session_queue_indication (_In_ switch_core_session_t *session, _In_ switch_core_session_message_types_t indication) |
| | Queue an indication message on a session.
|
| switch_status_t | switch_core_session_dequeue_message (_In_ switch_core_session_t *session, _Out_ switch_core_session_message_t **message) |
| | DE-Queue an message on a given session.
|
| switch_status_t | switch_core_session_flush_message (_In_ switch_core_session_t *session) |
| | Flush a message queue on a given session.
|
| switch_status_t | switch_core_session_event_send (_In_z_ const char *uuid_str, _Inout_ switch_event_t **event) |
| | Queue an event on another session using its uuid.
|
| switch_app_log_t * | switch_core_session_get_app_log (_In_ switch_core_session_t *session) |
| switch_status_t | switch_core_session_exec (_In_ switch_core_session_t *session, _In_ const switch_application_interface_t *application_interface, _In_opt_z_ const char *arg) |
| switch_status_t | switch_core_session_execute_application (_In_ switch_core_session_t *session, _In_ const char *app, _In_opt_z_ const char *arg) |
| switch_status_t | switch_core_session_execute_exten (_In_ switch_core_session_t *session, _In_z_ const char *exten, _In_opt_z_ const char *dialplan, _In_opt_z_ const char *context) |
| switch_status_t | switch_core_session_receive_event (_In_ switch_core_session_t *session, _Inout_ switch_event_t **event) |
| | Send an event to a session translating it to it's native message format.
|
| void * | switch_core_session_get_private (_In_ switch_core_session_t *session) |
| | Retrieve private user data from a session.
|
| switch_status_t | switch_core_session_set_private (_In_ switch_core_session_t *session, _In_ void *private_info) |
| | Add private user data to a session.
|
| int | switch_core_session_add_stream (_In_ switch_core_session_t *session, _In_opt_ void *private_info) |
| | Add a logical stream to a session.
|
| void * | switch_core_session_get_stream (_In_ switch_core_session_t *session, _In_ int index) |
| | Retreive a logical stream from a session.
|
| int | switch_core_session_get_stream_count (_In_ switch_core_session_t *session) |
| | Determine the number of logical streams a session has.
|
| void | switch_core_session_launch_thread (_In_ switch_core_session_t *session, _In_ void *(*func)(switch_thread_t *, void *), _In_opt_ void *obj) |
| | Launch a thread designed to exist within the scope of a given session.
|
| void | switch_core_thread_session_end (_In_ switch_core_thread_session_t *thread_session) |
| | Signal a thread using a thread session to terminate.
|
| void | switch_core_service_session (_In_ switch_core_session_t *session, _In_ switch_core_thread_session_t *thread_session, _In_ int stream_id) |
| | Launch a service thread on a session to drop inbound data.
|
| switch_call_cause_t | switch_core_session_outgoing_channel (_In_opt_ switch_core_session_t *session, _In_opt_ switch_event_t *var_event, _In_z_ const char *endpoint_name, _In_ switch_caller_profile_t *caller_profile, _Inout_ switch_core_session_t **new_session, _Inout_ switch_memory_pool_t **pool, _In_ switch_originate_flag_t flags) |
| | Request an outgoing session spawned from an existing session using a desired endpoing module.
|
| switch_call_cause_t | switch_core_session_resurrect_channel (_In_z_ const char *endpoint_name, _Inout_ switch_core_session_t **new_session, _Inout_ switch_memory_pool_t **pool, _In_ void *data) |
| switch_status_t | switch_core_session_receive_message (_In_ switch_core_session_t *session, _In_ switch_core_session_message_t *message) |
| | Receive a message on a given session.
|
| switch_status_t | switch_core_session_queue_event (_In_ switch_core_session_t *session, _Inout_ switch_event_t **event) |
| | Queue an event on a given session.
|
| uint32_t | switch_core_session_event_count (_In_ switch_core_session_t *session) |
| | Indicate the number of waiting events on a session.
|
| switch_status_t | switch_core_session_dequeue_event (_In_ switch_core_session_t *session, _Out_ switch_event_t **event) |
| | DE-Queue an event on a given session.
|
| switch_status_t | switch_core_session_queue_private_event (_In_ switch_core_session_t *session, _Inout_ switch_event_t **event) |
| | Queue a private event on a given session.
|
| uint32_t | switch_core_session_private_event_count (_In_ switch_core_session_t *session) |
| | Indicate the number of waiting private events on a session.
|
| switch_status_t | switch_core_session_dequeue_private_event (_In_ switch_core_session_t *session, _Out_ switch_event_t **event) |
| | DE-Queue a private event on a given session.
|
| uint32_t | switch_core_session_flush_private_events (switch_core_session_t *session) |
| | Flush the private event queue of a session.
|
| switch_status_t | switch_core_session_read_frame (_In_ switch_core_session_t *session, switch_frame_t **frame, switch_io_flag_t flags, int stream_id) |
| | Read a frame from a session.
|
| switch_status_t | switch_core_session_read_video_frame (_In_ switch_core_session_t *session, switch_frame_t **frame, switch_io_flag_t flags, int stream_id) |
| | Read a video frame from a session.
|
| switch_status_t | switch_core_session_write_video_frame (_In_ switch_core_session_t *session, switch_frame_t *frame, switch_io_flag_t flags, int stream_id) |
| | Write a video frame to a session.
|
| void | switch_core_session_reset (_In_ switch_core_session_t *session, switch_bool_t flush_dtmf) |
| | Reset the buffers and resampler on a session.
|
| switch_status_t | switch_core_session_write_frame (_In_ switch_core_session_t *session, switch_frame_t *frame, switch_io_flag_t flags, int stream_id) |
| | Write a frame to a session.
|
| switch_status_t | switch_core_session_perform_kill_channel (_In_ switch_core_session_t *session, const char *file, const char *func, int line, switch_signal_t sig) |
| switch_status_t | switch_core_session_send_dtmf (_In_ switch_core_session_t *session, const switch_dtmf_t *dtmf) |
| | Send DTMF to a session.
|
| switch_status_t | switch_core_session_send_dtmf_string (switch_core_session_t *session, const char *dtmf_string) |
| switch_status_t | switch_core_session_recv_dtmf (_In_ switch_core_session_t *session, const switch_dtmf_t *dtmf) |
| | RECV DTMF on a session.
|