RTS API Documentation
1.10.11
|
Go to the source code of this file.
Data Structures | |
struct | msrp_socket_s |
struct | msrp_client_socket_s |
struct | worker_helper |
Macros | |
#define | MSRP_BUFF_SIZE (SWITCH_RTP_MAX_BUF_LEN - 32) |
#define | DEBUG_MSRP 0 |
#define | MSRP_TRANS_ID_LEN 16 |
#define | MSRP_SYNTAX "debug <on|off>|restart" |
Typedefs | |
typedef struct worker_helper | worker_helper_t |
Variables | |
struct { | |
int running | |
int debug | |
switch_memory_pool_t * pool | |
char * ip | |
int message_buffer_size | |
char * cert | |
char * key | |
const SSL_METHOD * ssl_method | |
SSL_CTX * ssl_ctx | |
int ssl_ready | |
const SSL_METHOD * ssl_client_method | |
SSL_CTX * ssl_client_ctx | |
switch_msrp_socket_t msock | |
switch_msrp_socket_t msock_ssl | |
} | globals |
char * | HEADER_NAMES [] |
#define DEBUG_MSRP 0 |
Definition at line 38 of file switch_msrp.c.
Referenced by switch_msrp_init().
#define MSRP_BUFF_SIZE (SWITCH_RTP_MAX_BUF_LEN - 32) |
Definition at line 37 of file switch_msrp.c.
Referenced by dump_buffer(), msrp_worker(), and switch_msrp_do_send().
#define MSRP_SYNTAX "debug <on|off>|restart" |
Definition at line 1848 of file switch_msrp.c.
Referenced by switch_msrp_load_apis_and_applications(), and SWITCH_STANDARD_API().
#define MSRP_TRANS_ID_LEN 16 |
Definition at line 1518 of file switch_msrp.c.
Referenced by switch_msrp_do_send().
typedef struct worker_helper worker_helper_t |
|
static |
Definition at line 239 of file switch_msrp.c.
References SWITCH_SHUTDOWN_READWRITE, switch_socket_close(), and switch_socket_shutdown().
Referenced by msrp_worker(), switch_msrp_destroy(), and switch_msrp_session_destroy().
void dump_buffer | ( | const char * | buf, |
switch_size_t | len, | ||
int | line, | ||
int | is_send | ||
) |
Definition at line 561 of file switch_msrp.c.
References MSRP_BUFF_SIZE, SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, SWITCH_LOG_NOTICE, switch_log_printf(), and SWITCH_SIZE_T_FMT.
Referenced by msrp_parse_buffer(), msrp_worker(), and switch_msrp_do_send().
char* find_delim | ( | char * | buf, |
int | len, | ||
const char * | delim | ||
) |
|
static |
Definition at line 190 of file switch_msrp.c.
References switch_directories::certs_dir, globals, msrp_listener(), switch_xml::next, SWITCH_CHANNEL_LOG, switch_core_gen_certs(), switch_core_sprintf(), switch_core_strdup, switch_file_exists(), SWITCH_GLOBAL_dirs, switch_log_printf(), SWITCH_LOG_WARNING, SWITCH_PATH_SEPARATOR, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, SWITCH_THREAD_FUNC, switch_true(), switch_xml_attr_soft(), switch_xml_child(), switch_xml_free(), switch_xml_open_cfg(), and msrp_socket_s::thread.
Referenced by switch_msrp_init().
|
static |
Definition at line 250 of file switch_msrp.c.
References SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, SWITCH_LOG_NOTICE, switch_log_printf(), SWITCH_PROTO_TCP, SWITCH_SO_IPV6_V6ONLY, SWITCH_SO_REUSEADDR, switch_sockaddr_get_family(), switch_sockaddr_info_get(), switch_socket_bind(), switch_socket_create(), switch_socket_listen(), switch_socket_opt_set(), SWITCH_STATUS_SUCCESS, and SWITCH_UNSPEC.
Referenced by switch_msrp_init().
|
static |
Definition at line 96 of file switch_msrp.c.
References MSRP_H_SUCCESS_REPORT, and switch_msrp_msg_get_header().
Referenced by msrp_worker().
|
static |
Definition at line 102 of file switch_msrp.c.
References globals.
Referenced by msrp_init_ssl(), and switch_msrp_destroy().
|
static |
Definition at line 1034 of file switch_msrp.c.
References switch_assert, SWITCH_FALSE, switch_snprintf(), and SWITCH_TRUE.
Referenced by msrp_worker().
|
static |
Definition at line 115 of file switch_msrp.c.
References fail, globals, msrp_deinit_ssl(), SWITCH_CHANNEL_LOG, SWITCH_DECLARE_GLOBAL_STRING_FUNC(), switch_file_exists(), SWITCH_LOG_ERROR, switch_log_printf(), and SWITCH_STATUS_SUCCESS.
Referenced by switch_msrp_init().
|
static |
Definition at line 1425 of file switch_msrp.c.
References worker_helper::csock, worker_helper::debug, globals, msock, msrp_worker(), pool, worker_helper::pool, msrp_socket_s::secure, msrp_client_socket_s::secure, msrp_socket_s::sock, msrp_client_socket_s::sock, switch_assert, SWITCH_CHANNEL_LOG, switch_core_alloc, switch_core_destroy_memory_pool, switch_core_new_memory_pool, switch_get_addr(), SWITCH_LOG_ERROR, SWITCH_LOG_NOTICE, switch_log_printf(), SWITCH_SO_TCP_NODELAY, switch_sockaddr_get_port(), switch_socket_accept(), switch_socket_addr_get(), switch_socket_opt_set(), SWITCH_STATUS_SUCCESS, switch_thread_create(), SWITCH_THREAD_STACKSIZE, switch_threadattr_create(), switch_threadattr_detach_set(), switch_threadattr_stacksize_set(), SWITCH_TRUE, and TRUE.
Referenced by load_config(), and switch_msrp_init().
char* msrp_msg_serialize | ( | switch_msrp_msg_t * | msrp_msg | ) |
Definition at line 476 of file switch_msrp.c.
References msrp_msg_s::byte_end, msrp_msg_s::byte_start, msrp_msg_s::bytes, msrp_msg_s::code_description, msrp_msg_s::code_number, msrp_msg_s::delimiter, msrp_msg_s::method, MSRP_H_CONTENT_TYPE, MSRP_H_FROM_PATH, MSRP_H_MESSAGE_ID, MSRP_H_TO_PATH, MSRP_METHOD_AUTH, MSRP_METHOD_REPLY, MSRP_METHOD_REPORT, MSRP_METHOD_SEND, msrp_msg_s::payload, switch_mprintf(), switch_msrp_msg_get_header(), switch_safe_free, SWITCH_SIZE_T_FMT, and msrp_msg_s::transaction_id.
Referenced by msrp_worker().
|
static |
Definition at line 878 of file switch_msrp.c.
References msrp_msg_s::accumulated_bytes, buf, msrp_msg_s::byte_end, msrp_msg_s::byte_start, msrp_msg_s::delimiter, dump_buffer(), find_delim(), globals, msrp_msg_s::last_p, msrp_parse_headers(), MSRP_ST_DONE, MSRP_ST_ERROR, MSRP_ST_WAIT_BODY, MSRP_ST_WAIT_HEADER, msrp_msg_s::payload, msrp_msg_s::payload_bytes, msrp_msg_s::range_star, msrp_msg_s::state, switch_assert, SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, SWITCH_LOG_ERROR, switch_log_printf(), switch_msrp_msg_create(), switch_msrp_msg_set_payload(), SWITCH_SIZE_T_FMT, and switch_stristr().
Referenced by msrp_worker().
|
static |
Definition at line 690 of file switch_msrp.c.
References switch_msrp_msg_add_header().
Referenced by msrp_parse_headers().
|
static |
Definition at line 706 of file switch_msrp.c.
References msrp_msg_s::byte_end, msrp_msg_s::byte_start, msrp_msg_s::bytes, msrp_msg_s::code_number, msrp_msg_s::delimiter, globals, msrp_msg_s::last_p, msrp_msg_s::method, MSRP_H_CODE_DESCRIPTION, MSRP_H_CONTENT_TYPE, MSRP_H_DELIMITER, MSRP_H_FAILURE_REPORT, MSRP_H_FROM_PATH, MSRP_H_KEEPALIVE, MSRP_H_MESSAGE_ID, MSRP_H_STATUS, MSRP_H_SUCCESS_REPORT, MSRP_H_TO_PATH, MSRP_H_TRASACTION_ID, MSRP_H_UNKNOWN, MSRP_METHOD_AUTH, MSRP_METHOD_REPLY, MSRP_METHOD_REPORT, MSRP_METHOD_SEND, msrp_parse_header(), MSRP_ST_DONE, MSRP_ST_ERROR, MSRP_ST_PARSE_HEADER, MSRP_ST_WAIT_BODY, msrp_msg_s::payload_bytes, msrp_msg_s::range_star, msrp_msg_s::state, switch_assert, SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, SWITCH_LOG_ERROR, switch_log_printf(), switch_msrp_msg_add_header(), and SWITCH_SIZE_T_FMT.
Referenced by msrp_parse_buffer().
switch_status_t msrp_reply | ( | switch_msrp_client_socket_t * | csock, |
switch_msrp_msg_t * | msrp_msg | ||
) |
Definition at line 997 of file switch_msrp.c.
References buf, msrp_msg_s::delimiter, MSRP_H_FROM_PATH, MSRP_H_TO_PATH, msrp_socket_send(), switch_msrp_msg_get_header(), switch_str_nil, and msrp_msg_s::transaction_id.
Referenced by msrp_worker().
switch_status_t msrp_report | ( | switch_msrp_client_socket_t * | csock, |
switch_msrp_msg_t * | msrp_msg, | ||
char * | status_code | ||
) |
Definition at line 1012 of file switch_msrp.c.
References msrp_msg_s::accumulated_bytes, buf, msrp_msg_s::byte_end, msrp_msg_s::bytes, msrp_msg_s::delimiter, globals, MSRP_H_FROM_PATH, MSRP_H_MESSAGE_ID, MSRP_H_TO_PATH, msrp_socket_send(), SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, switch_log_printf(), switch_msrp_msg_get_header(), SWITCH_SIZE_T_FMT, switch_str_nil, and msrp_msg_s::transaction_id.
Referenced by msrp_worker().
|
static |
Definition at line 519 of file switch_msrp.c.
References globals, msrp_client_socket_s::secure, msrp_client_socket_s::sock, msrp_client_socket_s::ssl, SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, switch_log_printf(), SWITCH_LOG_WARNING, switch_socket_recv(), SWITCH_SSIZE_T_FMT, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, and switch_strerror().
Referenced by msrp_worker().
|
static |
Definition at line 549 of file switch_msrp.c.
References msrp_client_socket_s::secure, msrp_client_socket_s::sock, msrp_client_socket_s::ssl, switch_socket_send(), SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.
Referenced by msrp_reply(), msrp_report(), and switch_msrp_do_send().
|
static |
Definition at line 1051 of file switch_msrp.c.
References msrp_msg_s::accumulated_bytes, buf, msrp_msg_s::byte_end, msrp_msg_s::byte_start, switch_msrp_session_s::call_id, cert, msrp_client_socket_s::client_mode, close_socket(), worker_helper::csock, switch_msrp_session_s::csock, worker_helper::debug, dump_buffer(), globals, msrp_msg_s::last_p, msrp_msg_s::method, MSRP_BUFF_SIZE, msrp_check_success_report(), msrp_find_uuid(), MSRP_H_CONTENT_TYPE, MSRP_H_TO_PATH, MSRP_METHOD_AUTH, MSRP_METHOD_SEND, switch_msrp_session_s::msrp_msg_buffer_size, switch_msrp_session_s::msrp_msg_count, msrp_msg_serialize(), msrp_parse_buffer(), msrp_reply(), msrp_report(), worker_helper::msrp_session, msrp_socket_recv(), MSRP_ST_DONE, MSRP_ST_ERROR, MSRP_ST_WAIT_BODY, switch_msrp_session_s::mutex, msrp_msg_s::payload_bytes, pool, worker_helper::pool, msrp_msg_s::range_star, switch_msrp_session_s::remote_path, switch_msrp_session_s::running, msrp_client_socket_s::secure, switch_msrp_session_s::secure, msrp_client_socket_s::sock, msrp_client_socket_s::ssl, msrp_msg_s::state, switch_assert, SWITCH_CHANNEL_LOG, switch_core_destroy_memory_pool, switch_core_media_get_msrp_session(), switch_core_session_locate, switch_core_session_rwunlock(), switch_core_strdup, SWITCH_LOG_CRIT, SWITCH_LOG_DEBUG, SWITCH_LOG_ERROR, SWITCH_LOG_INFO, SWITCH_LOG_NOTICE, switch_log_printf(), SWITCH_LOG_WARNING, switch_msrp_msg_add_header(), switch_msrp_msg_create(), switch_msrp_msg_destroy(), switch_msrp_msg_dup(), switch_msrp_msg_get_header(), switch_msrp_msg_set_payload(), switch_msrp_send, switch_msrp_session_push_msg(), switch_mutex_lock(), switch_mutex_unlock(), switch_os_sock_get(), SWITCH_PROTO_TCP, SWITCH_SIZE_T_FMT, SWITCH_SO_KEEPALIVE, SWITCH_SO_TCP_KEEPIDLE, SWITCH_SO_TCP_KEEPINTVL, SWITCH_SO_TCP_NODELAY, SWITCH_SOCK_INVALID, switch_sockaddr_get_family(), switch_sockaddr_info_get(), switch_socket_connect(), switch_socket_create(), switch_socket_opt_set(), switch_socket_timeout_set(), SWITCH_STATUS_SUCCESS, switch_strerror(), switch_stristr(), SWITCH_TRUE, SWITCH_UNSPEC, switch_yield, and TRUE.
Referenced by msrp_listener(), and switch_msrp_start_client().
void random_string | ( | char * | buf, |
uint16_t | size | ||
) |
Definition at line 1513 of file switch_msrp.c.
References switch_stun_random_string().
Referenced by switch_msrp_do_send().
SWITCH_DECLARE_GLOBAL_STRING_FUNC | ( | set_global_ip | , |
globals. | ip | ||
) |
Referenced by msrp_init_ssl().
switch_status_t switch_msrp_destroy | ( | void | ) |
Definition at line 349 of file switch_msrp.c.
References close_socket(), globals, msrp_deinit_ssl(), msrp_socket_s::sock, SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, switch_log_printf(), switch_safe_free, SWITCH_STATUS_SUCCESS, and switch_thread_join().
Referenced by switch_core_destroy(), and SWITCH_STANDARD_API().
|
static |
Definition at line 1519 of file switch_msrp.c.
References buf, switch_msrp_session_s::call_id, switch_msrp_session_s::csock, dump_buffer(), globals, switch_msrp_session_s::local_path, MSRP_BUFF_SIZE, MSRP_H_CONTENT_TYPE, MSRP_H_FROM_PATH, MSRP_H_TO_PATH, msrp_socket_send(), MSRP_TRANS_ID_LEN, msrp_msg_s::payload, msrp_msg_s::payload_bytes, random_string(), switch_msrp_session_s::remote_path, SWITCH_CHANNEL_ID_LOG, SWITCH_LOG_ERROR, switch_log_printf(), SWITCH_LOG_WARNING, switch_msrp_msg_get_header(), SWITCH_SIZE_T_FMT, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, SWITCH_UUID_FORMATTED_LENGTH, switch_uuid_str(), and zstr.
Referenced by switch_msrp_perform_send().
switch_status_t switch_msrp_init | ( | void | ) |
Definition at line 294 of file switch_msrp.c.
References DEBUG_MSRP, globals, load_config(), memset(), msock_init(), msrp_init_ssl(), msrp_listener(), pool, SWITCH_CHANNEL_LOG, switch_core_new_memory_pool, SWITCH_LOG_ERROR, switch_log_printf(), SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_thread_create(), SWITCH_THREAD_STACKSIZE, switch_threadattr_create(), switch_threadattr_stacksize_set(), and msrp_socket_s::thread.
Referenced by switch_core_init_and_modload(), and SWITCH_STANDARD_API().
const char* switch_msrp_listen_ip | ( | void | ) |
Definition at line 289 of file switch_msrp.c.
References globals.
Referenced by switch_core_media_negotiate_sdp().
void switch_msrp_load_apis_and_applications | ( | switch_loadable_module_interface_t ** | module_interface | ) |
Definition at line 1870 of file switch_msrp.c.
References MSRP_SYNTAX, SAF_SUPPORT_NOMEDIA, SAF_SUPPORT_TEXT_ONLY, SWITCH_ADD_API, SWITCH_ADD_APP, and switch_console_set_complete().
switch_status_t switch_msrp_msg_add_header | ( | switch_msrp_msg_t * | msrp_msg, |
switch_msrp_header_type_t | htype, | ||
char * | fmt, | ||
... | |||
) |
Definition at line 651 of file switch_msrp.c.
References msrp_msg_s::code_description, msrp_msg_s::delimiter, msrp_msg_s::headers, MSRP_H_CODE_DESCRIPTION, MSRP_H_DELIMITER, MSRP_H_TRASACTION_ID, switch_event_add_header_string(), switch_msrp_msg_get_header(), switch_msrp_msg_header_name(), SWITCH_STACK_BOTTOM, SWITCH_STATUS_MEMERR, switch_vasprintf(), and msrp_msg_s::transaction_id.
Referenced by msrp_parse_header(), msrp_parse_headers(), msrp_worker(), SWITCH_STANDARD_API(), and SWITCH_STANDARD_APP().
switch_msrp_msg_t* switch_msrp_msg_create | ( | void | ) |
Definition at line 1625 of file switch_msrp.c.
References msrp_msg_s::headers, memset(), switch_assert, switch_event_create, and SWITCH_EVENT_GENERAL.
Referenced by msrp_parse_buffer(), msrp_worker(), SWITCH_STANDARD_API(), and SWITCH_STANDARD_APP().
void switch_msrp_msg_destroy | ( | switch_msrp_msg_t ** | msg | ) |
Definition at line 1663 of file switch_msrp.c.
References msrp_msg_s::headers, msrp_msg_s::payload, switch_event_destroy(), and switch_safe_free.
Referenced by msrp_worker(), switch_msrp_perform_send(), switch_msrp_session_destroy(), SWITCH_STANDARD_API(), and SWITCH_STANDARD_APP().
switch_msrp_msg_t* switch_msrp_msg_dup | ( | switch_msrp_msg_t * | msg | ) |
Definition at line 1637 of file switch_msrp.c.
References msrp_msg_s::code_description, msrp_msg_s::code_number, msrp_msg_s::delimiter, msrp_msg_s::headers, memset(), msrp_msg_s::method, MSRP_H_CODE_DESCRIPTION, MSRP_H_DELIMITER, MSRP_H_TRASACTION_ID, msrp_msg_s::payload, msrp_msg_s::payload_bytes, msrp_msg_s::state, switch_assert, switch_event_dup(), switch_msrp_msg_get_header(), and msrp_msg_s::transaction_id.
Referenced by msrp_worker(), and switch_msrp_perform_send().
const char* switch_msrp_msg_get_header | ( | switch_msrp_msg_t * | msrp_msg, |
switch_msrp_header_type_t | htype | ||
) |
Definition at line 685 of file switch_msrp.c.
References msrp_msg_s::headers, switch_event_get_header, and switch_msrp_msg_header_name().
Referenced by msrp_check_success_report(), msrp_msg_serialize(), msrp_reply(), msrp_report(), msrp_worker(), switch_msrp_do_send(), switch_msrp_msg_add_header(), switch_msrp_msg_dup(), and SWITCH_STANDARD_APP().
char* switch_msrp_msg_header_name | ( | switch_msrp_header_type_t | htype | ) |
Definition at line 645 of file switch_msrp.c.
References HEADER_NAMES, and MSRP_H_UNKNOWN.
Referenced by switch_msrp_msg_add_header(), and switch_msrp_msg_get_header().
void switch_msrp_msg_set_payload | ( | switch_msrp_msg_t * | msrp_msg, |
const char * | buf, | ||
switch_size_t | payload_bytes | ||
) |
Definition at line 82 of file switch_msrp.c.
References msrp_msg_s::payload, msrp_msg_s::payload_bytes, switch_assert, and switch_malloc.
Referenced by msrp_parse_buffer(), msrp_worker(), SWITCH_STANDARD_API(), and SWITCH_STANDARD_APP().
switch_status_t switch_msrp_perform_send | ( | switch_msrp_session_t * | ms, |
switch_msrp_msg_t * | msrp_msg, | ||
const char * | file, | ||
const char * | func, | ||
int | line | ||
) |
Definition at line 1583 of file switch_msrp.c.
References switch_msrp_session_s::call_id, globals, msrp_msg_s::payload, msrp_msg_s::payload_bytes, switch_msrp_session_s::pool, switch_msrp_session_s::running, switch_msrp_session_s::send_queue, SWITCH_CHANNEL_ID_LOG, SWITCH_LOG_ERROR, switch_log_printf(), SWITCH_LOG_WARNING, switch_msrp_do_send(), switch_msrp_msg_destroy(), switch_msrp_msg_dup(), switch_queue_create(), switch_queue_term(), switch_queue_trypop(), switch_queue_trypush(), SWITCH_SIZE_T_FMT, and SWITCH_STATUS_SUCCESS.
switch_status_t switch_msrp_session_destroy | ( | switch_msrp_session_t ** | ms | ) |
Definition at line 392 of file switch_msrp.c.
References close_socket(), SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, SWITCH_LOG_INFO, switch_log_printf(), switch_msrp_msg_destroy(), switch_mutex_destroy(), switch_mutex_lock(), switch_mutex_unlock(), switch_queue_trypop(), SWITCH_STATUS_SUCCESS, and switch_yield.
Referenced by switch_media_handle_destroy().
switch_msrp_session_t* switch_msrp_session_new | ( | switch_memory_pool_t * | pool, |
const char * | call_id, | ||
switch_bool_t | secure | ||
) |
Definition at line 378 of file switch_msrp.c.
References switch_msrp_session_s::call_id, globals, switch_msrp_session_s::local_port, switch_msrp_session_s::msrp_msg_buffer_size, switch_msrp_session_s::mutex, pool, switch_msrp_session_s::pool, msrp_socket_s::secure, switch_msrp_session_s::secure, switch_assert, switch_core_alloc, switch_core_strdup, switch_mutex_init(), and SWITCH_MUTEX_NESTED.
Referenced by switch_core_media_gen_local_sdp(), and switch_core_media_negotiate_sdp().
switch_msrp_msg_t* switch_msrp_session_pop_msg | ( | switch_msrp_session_t * | ms | ) |
Definition at line 445 of file switch_msrp.c.
References switch_msrp_session_s::last_msg, switch_msrp_session_s::msrp_msg, switch_msrp_session_s::msrp_msg_count, switch_msrp_session_s::mutex, msrp_msg_s::next, switch_mutex_lock(), switch_mutex_unlock(), and switch_yield.
Referenced by SWITCH_STANDARD_APP().
switch_status_t switch_msrp_session_push_msg | ( | switch_msrp_session_t * | ms, |
switch_msrp_msg_t * | msg | ||
) |
Definition at line 426 of file switch_msrp.c.
References switch_msrp_session_s::last_msg, switch_msrp_session_s::msrp_msg, switch_msrp_session_s::msrp_msg_count, switch_msrp_session_s::mutex, msrp_msg_s::next, switch_mutex_lock(), switch_mutex_unlock(), and SWITCH_STATUS_SUCCESS.
Referenced by msrp_worker().
switch_status_t switch_msrp_start_client | ( | switch_msrp_session_t * | msrp_session | ) |
Definition at line 1488 of file switch_msrp.c.
References switch_msrp_session_s::call_id, msrp_client_socket_s::client_mode, worker_helper::csock, worker_helper::debug, globals, worker_helper::msrp_session, msrp_worker(), worker_helper::pool, switch_msrp_session_s::pool, msrp_client_socket_s::secure, switch_msrp_session_s::secure, msrp_client_socket_s::sock, switch_assert, SWITCH_CHANNEL_LOG, switch_core_alloc, SWITCH_LOG_NOTICE, switch_log_printf(), SWITCH_STATUS_SUCCESS, switch_thread_create(), SWITCH_THREAD_STACKSIZE, switch_threadattr_create(), switch_threadattr_detach_set(), switch_threadattr_stacksize_set(), and msrp_socket_s::thread.
Referenced by switch_core_media_negotiate_sdp().
SWITCH_STANDARD_API | ( | uuid_msrp_send_function | ) |
Definition at line 1805 of file switch_msrp.c.
References MSRP_H_CONTENT_TYPE, switch_core_media_get_msrp_session(), switch_core_session_locate, switch_core_session_rwunlock(), switch_msrp_msg_add_header(), switch_msrp_msg_create(), switch_msrp_msg_destroy(), switch_msrp_msg_set_payload(), switch_msrp_send, switch_separate_string(), SWITCH_STATUS_SUCCESS, and zstr.
SWITCH_STANDARD_API | ( | msrp_api_function | ) |
Definition at line 1849 of file switch_msrp.c.
References globals, MSRP_SYNTAX, switch_msrp_destroy(), switch_msrp_init(), SWITCH_STATUS_SUCCESS, and zstr.
SWITCH_STANDARD_APP | ( | msrp_recv_file_function | ) |
Definition at line 1676 of file switch_msrp.c.
References switch_directories::base_dir, CF_TEXT_PASSIVE, filename, msrp_msg_s::method, MSRP_H_MESSAGE_ID, MSRP_METHOD_SEND, switch_msrp_session_s::msrp_msg_count, msrp_msg_s::payload, msrp_msg_s::payload_bytes, pool, switch_channel_answer, switch_channel_clear_flag(), switch_channel_get_variable, SWITCH_CHANNEL_LOG, switch_channel_ready, SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_flag, switch_core_media_get_msrp_session(), switch_core_session_get_channel(), switch_core_session_get_pool(), switch_core_session_sprintf(), switch_file_close(), switch_file_open(), switch_file_write(), SWITCH_FOPEN_CREATE, SWITCH_FOPEN_TRUNCATE, SWITCH_FOPEN_WRITE, SWITCH_FPROT_OS_DEFAULT, SWITCH_GLOBAL_dirs, SWITCH_LOG_DEBUG, SWITCH_LOG_DEBUG1, SWITCH_LOG_ERROR, switch_log_printf(), SWITCH_LOG_WARNING, switch_msrp_msg_get_header(), switch_msrp_session_pop_msg(), SWITCH_PATH_SEPARATOR, switch_safe_free, SWITCH_SIZE_T_FMT, SWITCH_STATUS_SUCCESS, and zstr.
SWITCH_STANDARD_APP | ( | msrp_send_file_function | ) |
Definition at line 1740 of file switch_msrp.c.
References buf, msrp_msg_s::byte_end, msrp_msg_s::byte_start, filename, MSRP_H_CONTENT_TYPE, msrp_msg_s::payload_bytes, pool, switch_msrp_session_s::running, SWITCH_CHANNEL_LOG, switch_channel_ready, switch_core_media_get_msrp_session(), switch_core_session_get_channel(), switch_core_session_get_pool(), switch_file_close(), switch_file_get_size(), switch_file_open(), switch_file_read(), SWITCH_FOPEN_READ, SWITCH_FPROT_OS_DEFAULT, SWITCH_LOG_DEBUG, SWITCH_LOG_DEBUG1, SWITCH_LOG_ERROR, switch_log_printf(), SWITCH_LOG_WARNING, switch_msrp_msg_add_header(), switch_msrp_msg_create(), switch_msrp_msg_destroy(), switch_msrp_msg_set_payload(), switch_msrp_send, SWITCH_SIZE_T_FMT, SWITCH_STATUS_SUCCESS, and switch_yield.
char* cert |
Definition at line 63 of file switch_msrp.c.
Referenced by do_dtls(), dtls_state_setup(), and msrp_worker().
int debug |
Definition at line 57 of file switch_msrp.c.
Referenced by switch_ivr_delay_echo().
struct { ... } globals |
Referenced by load_config(), msrp_deinit_ssl(), msrp_init_ssl(), msrp_listener(), msrp_parse_buffer(), msrp_parse_headers(), msrp_report(), msrp_socket_recv(), msrp_worker(), switch_msrp_destroy(), switch_msrp_do_send(), switch_msrp_init(), switch_msrp_listen_ip(), switch_msrp_perform_send(), switch_msrp_session_new(), switch_msrp_start_client(), and SWITCH_STANDARD_API().
char* HEADER_NAMES[] |
Definition at line 628 of file switch_msrp.c.
Referenced by switch_msrp_msg_header_name().
char* ip |
Definition at line 60 of file switch_msrp.c.
Referenced by check_ice(), handle_ice(), switch_check_network_list_ip_port_token(), switch_core_media_negotiate_sdp(), switch_core_media_receive_message(), switch_core_media_recover_session(), switch_core_media_set_udptl_image_sdp(), switch_media_type2str(), switch_parse_audio_col(), switch_stun_ip_lookup(), switch_stun_packet_attribute_add_binded_address(), switch_stun_packet_attribute_add_xor_binded_address(), switch_stun_packet_attribute_get_mapped_address(), switch_stun_packet_attribute_get_xor_mapped_address(), switch_stun_packet_parse(), and timesub().
char* key |
Definition at line 64 of file switch_msrp.c.
Referenced by check_channel_status(), core_event_handler(), ecd_deliver(), generate_m(), handle_rfc2833(), preprocess_env_set(), preprocess_exec_set(), preprocess_stun_set(), sb_on_dtmf(), signal_bridge_on_hibernate(), switch_ci_hashfunc_default(), switch_config_perform_set_item(), switch_console_loop(), switch_console_save_history(), switch_core_codec_ready(), switch_core_hash_delete_multi(), switch_core_inthash_insert(), switch_core_media_add_crypto(), switch_core_media_build_crypto(), switch_core_media_sdp_map(), switch_errno_is_break(), switch_event_import_xml(), switch_live_array_create(), and switch_loadable_module_shutdown().
int message_buffer_size |
Definition at line 61 of file switch_msrp.c.
switch_msrp_socket_t msock |
Definition at line 71 of file switch_msrp.c.
Referenced by msrp_listener().
switch_msrp_socket_t msock_ssl |
Definition at line 72 of file switch_msrp.c.
switch_memory_pool_t* pool |
Definition at line 58 of file switch_msrp.c.
Referenced by msrp_listener(), msrp_worker(), switch_msrp_init(), switch_msrp_session_new(), and SWITCH_STANDARD_APP().
int running |
Definition at line 56 of file switch_msrp.c.
SSL_CTX* ssl_client_ctx |
Definition at line 69 of file switch_msrp.c.
const SSL_METHOD* ssl_client_method |
Definition at line 68 of file switch_msrp.c.
SSL_CTX* ssl_ctx |
Definition at line 66 of file switch_msrp.c.
Referenced by switch_rtp_add_dtls().
const SSL_METHOD* ssl_method |
Definition at line 65 of file switch_msrp.c.
Referenced by switch_rtp_add_dtls().
int ssl_ready |
Definition at line 67 of file switch_msrp.c.