FreeSWITCH API Documentation  1.7.0
Data Fields
switch_rtp Struct Reference
+ Collaboration diagram for switch_rtp:

Data Fields

switch_socket_tsock_input
 
switch_socket_tsock_output
 
switch_socket_trtcp_sock_input
 
switch_socket_trtcp_sock_output
 
switch_pollfd_tread_pollfd
 
switch_pollfd_trtcp_read_pollfd
 
switch_pollfd_tjb_pollfd
 
switch_sockaddr_tlocal_addr
 
switch_sockaddr_trtcp_local_addr
 
rtp_msg_t send_msg
 
rtcp_msg_t rtcp_send_msg
 
switch_rtcp_frame_t rtcp_frame
 
uint8_t fir_seq
 
uint16_t fir_count
 
uint16_t pli_count
 
uint32_t cur_tmmbr
 
uint32_t tmmbr
 
uint32_t tmmbn
 
ts_normalize_t ts_norm
 
switch_sockaddr_tremote_addr
 
switch_sockaddr_trtcp_remote_addr
 
rtp_msg_t recv_msg
 
rtcp_msg_t rtcp_recv_msg
 
rtcp_msg_trtcp_recv_msg_p
 
uint32_t autoadj_window
 
uint32_t autoadj_threshold
 
uint32_t autoadj_tally
 
srtp_ctx_t * send_ctx [2]
 
srtp_ctx_t * recv_ctx [2]
 
srtp_policy_t send_policy [2]
 
srtp_policy_t recv_policy [2]
 
uint32_t srtp_errs [2]
 
uint32_t srctp_errs [2]
 
int srtp_idx_rtp
 
int srtp_idx_rtcp
 
switch_dtls_tdtls
 
switch_dtls_trtcp_dtls
 
rtp_hdr_t last_rtp_hdr
 
uint16_t seq
 
uint32_t ssrc
 
uint32_t remote_ssrc
 
uint32_t last_jb_read_ssrc
 
int8_t sending_dtmf
 
uint8_t need_mark
 
switch_payload_t payload
 
switch_rtp_invalid_handler_t invalid_handler
 
void * private_data
 
uint32_t ts
 
uint32_t last_write_ts
 
uint32_t last_read_ts
 
uint32_t last_cng_ts
 
uint32_t last_write_samplecount
 
uint32_t delay_samples
 
uint32_t next_write_samplecount
 
uint32_t max_next_write_samplecount
 
uint32_t queue_delay
 
switch_time_t last_write_timestamp
 
uint32_t flags [SWITCH_RTP_FLAG_INVALID]
 
switch_memory_pool_tpool
 
switch_sockaddr_tfrom_addr
 
switch_sockaddr_trtp_from_addr
 
switch_sockaddr_trtcp_from_addr
 
char * rx_host
 
switch_port_t rx_port
 
switch_rtp_ice_t ice
 
switch_rtp_ice_t rtcp_ice
 
char * timer_name
 
char * local_host_str
 
char * remote_host_str
 
char * eff_remote_host_str
 
switch_time_t first_stun
 
switch_time_t last_stun
 
uint32_t wrong_addrs
 
uint32_t samples_per_interval
 
uint32_t samples_per_second
 
uint32_t conf_samples_per_interval
 
switch_time_t rtcp_last_sent
 
uint32_t rsamples_per_interval
 
uint32_t ms_per_packet
 
uint32_t one_second
 
uint32_t consecutive_flaws
 
uint32_t jitter_lead
 
double old_mean
 
switch_time_t next_stat_check_time
 
switch_port_t local_port
 
switch_port_t remote_port
 
switch_port_t eff_remote_port
 
switch_port_t remote_rtcp_port
 
struct switch_rtp_vad_data vad_data
 
struct switch_rtp_rfc2833_data dtmf_data
 
switch_payload_t te
 
switch_payload_t recv_te
 
switch_payload_t cng_pt
 
switch_mutex_tflag_mutex
 
switch_mutex_tread_mutex
 
switch_mutex_twrite_mutex
 
switch_mutex_tice_mutex
 
switch_timer_t timer
 
uint8_t ready
 
uint8_t cn
 
switch_jb_tjb
 
switch_jb_tvb
 
switch_jb_tvbw
 
uint32_t max_missed_packets
 
uint32_t missed_count
 
rtp_msg_t write_msg
 
switch_rtp_crypto_key_tcrypto_keys [SWITCH_RTP_CRYPTO_MAX]
 
int reading
 
int writing
 
char * stun_ip
 
switch_port_t stun_port
 
int from_auto
 
uint32_t cng_count
 
switch_rtp_bug_flag_t rtp_bugs
 
switch_rtp_stats_t stats
 
uint32_t clean_stream
 
uint32_t bad_stream
 
uint32_t recovering_stream
 
uint32_t hot_hits
 
uint32_t sync_packets
 
int rtcp_interval
 
int rtcp_sent_packets
 
switch_bool_t rtcp_fresh_frame
 
switch_time_t send_time
 
switch_byte_t auto_adj_used
 
uint8_t pause_jb
 
uint16_t last_seq
 
switch_time_t last_read_time
 
switch_size_t last_flush_packet_count
 
uint32_t interdigit_delay
 
switch_core_session_tsession
 
payload_map_t ** pmaps
 
payload_map_tpmap_tail
 
int ice_adj
 
uint8_t has_rtp
 
uint8_t has_rtcp
 
uint8_t has_ice
 
uint8_t punts
 
uint8_t clean
 

Detailed Description

Definition at line 302 of file switch_rtp.c.

Field Documentation

switch_byte_t switch_rtp::auto_adj_used

Definition at line 440 of file switch_rtp.c.

Referenced by handle_ice(), and rtp_common_read().

uint32_t switch_rtp::autoadj_tally

Definition at line 333 of file switch_rtp.c.

Referenced by rtp_common_read().

uint32_t switch_rtp::autoadj_threshold

Definition at line 332 of file switch_rtp.c.

Referenced by rtp_common_read().

uint32_t switch_rtp::autoadj_window

Definition at line 331 of file switch_rtp.c.

Referenced by rtp_common_read().

uint32_t switch_rtp::bad_stream

Definition at line 430 of file switch_rtp.c.

Referenced by check_jitter(), do_mos(), and rtp_common_read().

uint8_t switch_rtp::clean

Definition at line 454 of file switch_rtp.c.

Referenced by read_rtp_packet().

uint32_t switch_rtp::clean_stream

Definition at line 429 of file switch_rtp.c.

Referenced by check_jitter().

uint8_t switch_rtp::cn

Definition at line 413 of file switch_rtp.c.

Referenced by check_rtcp_and_ice(), and rtp_common_write().

uint32_t switch_rtp::cng_count

Definition at line 426 of file switch_rtp.c.

Referenced by rtp_common_read().

switch_payload_t switch_rtp::cng_pt
uint32_t switch_rtp::conf_samples_per_interval

Definition at line 388 of file switch_rtp.c.

Referenced by switch_rtp_create().

uint32_t switch_rtp::consecutive_flaws

Definition at line 393 of file switch_rtp.c.

Referenced by do_mos(), and reset_jitter_seq().

Definition at line 420 of file switch_rtp.c.

uint32_t switch_rtp::cur_tmmbr

Definition at line 321 of file switch_rtp.c.

uint32_t switch_rtp::delay_samples

Definition at line 367 of file switch_rtp.c.

Referenced by do_2833(), and rtp_common_write().

switch_dtls_t* switch_rtp::dtls
struct switch_rtp_rfc2833_data switch_rtp::dtmf_data
char* switch_rtp::eff_remote_host_str

Definition at line 382 of file switch_rtp.c.

Referenced by enable_remote_rtcp_socket().

switch_port_t switch_rtp::eff_remote_port

Definition at line 399 of file switch_rtp.c.

uint16_t switch_rtp::fir_count

Definition at line 319 of file switch_rtp.c.

Referenced by check_rtcp_and_ice().

uint8_t switch_rtp::fir_seq

Definition at line 318 of file switch_rtp.c.

Referenced by check_rtcp_and_ice().

switch_time_t switch_rtp::first_stun

Definition at line 383 of file switch_rtp.c.

Referenced by handle_ice().

switch_mutex_t* switch_rtp::flag_mutex
uint32_t switch_rtp::flags[SWITCH_RTP_FLAG_INVALID]
switch_sockaddr_t* switch_rtp::from_addr
int switch_rtp::from_auto

Definition at line 425 of file switch_rtp.c.

uint8_t switch_rtp::has_ice

Definition at line 452 of file switch_rtp.c.

Referenced by read_rtp_packet().

uint8_t switch_rtp::has_rtcp

Definition at line 451 of file switch_rtp.c.

Referenced by read_rtp_packet().

uint8_t switch_rtp::has_rtp

Definition at line 450 of file switch_rtp.c.

Referenced by read_rtp_packet(), and rtp_common_read().

uint32_t switch_rtp::hot_hits

Definition at line 433 of file switch_rtp.c.

Referenced by read_rtp_packet(), and rtp_common_read().

switch_rtp_ice_t switch_rtp::ice
int switch_rtp::ice_adj

Definition at line 449 of file switch_rtp.c.

Referenced by handle_ice().

switch_mutex_t* switch_rtp::ice_mutex

Definition at line 410 of file switch_rtp.c.

Referenced by handle_ice(), and switch_rtp_create().

uint32_t switch_rtp::interdigit_delay

Definition at line 445 of file switch_rtp.c.

Referenced by do_2833().

switch_rtp_invalid_handler_t switch_rtp::invalid_handler

Definition at line 360 of file switch_rtp.c.

Referenced by rtp_common_read().

switch_jb_t* switch_rtp::jb

Definition at line 414 of file switch_rtp.c.

Referenced by do_flush(), handle_rfc2833(), read_rtp_packet(), and rtp_common_read().

switch_pollfd_t* switch_rtp::jb_pollfd

Definition at line 311 of file switch_rtp.c.

uint32_t switch_rtp::jitter_lead

Definition at line 394 of file switch_rtp.c.

Referenced by check_jitter(), reset_jitter_seq(), and rtp_common_read().

uint32_t switch_rtp::last_cng_ts

Definition at line 365 of file switch_rtp.c.

Referenced by read_rtp_packet(), and rtp_common_read().

switch_size_t switch_rtp::last_flush_packet_count

Definition at line 444 of file switch_rtp.c.

Referenced by read_rtp_packet().

uint32_t switch_rtp::last_jb_read_ssrc

Definition at line 356 of file switch_rtp.c.

Referenced by read_rtp_packet().

switch_time_t switch_rtp::last_read_time

Definition at line 443 of file switch_rtp.c.

Referenced by read_rtp_packet().

uint32_t switch_rtp::last_read_ts

Definition at line 364 of file switch_rtp.c.

Referenced by read_rtp_packet(), and rtp_common_read().

rtp_hdr_t switch_rtp::last_rtp_hdr
uint16_t switch_rtp::last_seq

Definition at line 442 of file switch_rtp.c.

Referenced by read_rtp_packet().

switch_time_t switch_rtp::last_stun

Definition at line 384 of file switch_rtp.c.

Referenced by handle_ice(), and ice_out().

uint32_t switch_rtp::last_write_samplecount

Definition at line 366 of file switch_rtp.c.

Referenced by check_rtcp_and_ice(), do_2833(), and rtp_common_write().

switch_time_t switch_rtp::last_write_timestamp

Definition at line 371 of file switch_rtp.c.

Referenced by rtp_common_write().

uint32_t switch_rtp::last_write_ts
switch_sockaddr_t* switch_rtp::local_addr

Definition at line 313 of file switch_rtp.c.

Referenced by handle_nack(), ping_socket(), read_rtp_packet(), and rtp_common_write().

char* switch_rtp::local_host_str

Definition at line 380 of file switch_rtp.c.

Referenced by enable_local_rtcp_socket().

switch_port_t switch_rtp::local_port

Definition at line 397 of file switch_rtp.c.

Referenced by enable_local_rtcp_socket().

uint32_t switch_rtp::max_missed_packets

Definition at line 417 of file switch_rtp.c.

Referenced by rtp_common_read().

uint32_t switch_rtp::max_next_write_samplecount

Definition at line 369 of file switch_rtp.c.

Referenced by do_2833(), and set_dtmf_delay().

uint32_t switch_rtp::missed_count

Definition at line 418 of file switch_rtp.c.

Referenced by read_rtp_packet(), and rtp_common_read().

uint32_t switch_rtp::ms_per_packet

Definition at line 391 of file switch_rtp.c.

Referenced by rtp_common_read(), and rtp_common_write().

uint8_t switch_rtp::need_mark

Definition at line 358 of file switch_rtp.c.

Referenced by do_2833(), and rtp_common_write().

switch_time_t switch_rtp::next_stat_check_time

Definition at line 396 of file switch_rtp.c.

Referenced by check_jitter().

uint32_t switch_rtp::next_write_samplecount

Definition at line 368 of file switch_rtp.c.

Referenced by do_2833(), and set_dtmf_delay().

double switch_rtp::old_mean

Definition at line 395 of file switch_rtp.c.

Referenced by check_jitter().

uint32_t switch_rtp::one_second

Definition at line 392 of file switch_rtp.c.

Referenced by check_jitter(), rtp_common_read(), and rtp_common_write().

uint8_t switch_rtp::pause_jb

Definition at line 441 of file switch_rtp.c.

Referenced by do_flush(), read_rtp_packet(), and rtp_common_read().

switch_payload_t switch_rtp::payload

Definition at line 359 of file switch_rtp.c.

Referenced by rtp_common_write(), and switch_rtp_create().

uint16_t switch_rtp::pli_count

Definition at line 320 of file switch_rtp.c.

Referenced by check_rtcp_and_ice().

payload_map_t* switch_rtp::pmap_tail

Definition at line 448 of file switch_rtp.c.

payload_map_t** switch_rtp::pmaps

Definition at line 447 of file switch_rtp.c.

Referenced by check_recv_payload(), get_recv_payload(), and rtp_common_read().

switch_memory_pool_t* switch_rtp::pool
void* switch_rtp::private_data

Definition at line 361 of file switch_rtp.c.

uint8_t switch_rtp::punts

Definition at line 453 of file switch_rtp.c.

Referenced by read_rtp_packet().

uint32_t switch_rtp::queue_delay

Definition at line 370 of file switch_rtp.c.

Referenced by do_2833(), rtp_common_write(), and set_dtmf_delay().

switch_mutex_t* switch_rtp::read_mutex

Definition at line 408 of file switch_rtp.c.

Referenced by switch_rtp_create(), and switch_rtp_zerocopy_read_frame().

switch_pollfd_t* switch_rtp::read_pollfd

Definition at line 310 of file switch_rtp.c.

Referenced by read_rtp_packet(), and rtp_common_read().

int switch_rtp::reading

Definition at line 421 of file switch_rtp.c.

uint8_t switch_rtp::ready

Definition at line 412 of file switch_rtp.c.

Referenced by switch_rtp_create(), and switch_rtp_new().

uint32_t switch_rtp::recovering_stream

Definition at line 431 of file switch_rtp.c.

Referenced by check_jitter().

srtp_ctx_t* switch_rtp::recv_ctx[2]

Definition at line 336 of file switch_rtp.c.

Referenced by read_rtcp_packet(), and read_rtp_packet().

rtp_msg_t switch_rtp::recv_msg

Definition at line 327 of file switch_rtp.c.

Referenced by do_flush(), read_rtp_packet(), rtp_common_read(), and switch_rtp_create().

srtp_policy_t switch_rtp::recv_policy[2]

Definition at line 339 of file switch_rtp.c.

Referenced by read_rtp_packet().

switch_payload_t switch_rtp::recv_te
switch_sockaddr_t* switch_rtp::remote_addr
char* switch_rtp::remote_host_str

Definition at line 381 of file switch_rtp.c.

switch_port_t switch_rtp::remote_port
switch_port_t switch_rtp::remote_rtcp_port

Definition at line 400 of file switch_rtp.c.

Referenced by enable_remote_rtcp_socket().

uint32_t switch_rtp::remote_ssrc

Definition at line 355 of file switch_rtp.c.

Referenced by check_rtcp_and_ice(), and rtcp_generate_report_block().

uint32_t switch_rtp::rsamples_per_interval

Definition at line 390 of file switch_rtp.c.

switch_dtls_t* switch_rtp::rtcp_dtls

Definition at line 349 of file switch_rtp.c.

Referenced by dtls_state_setup(), read_rtcp_packet(), and read_rtp_packet().

switch_rtcp_frame_t switch_rtp::rtcp_frame

Definition at line 316 of file switch_rtp.c.

Referenced by process_rtcp_report().

switch_bool_t switch_rtp::rtcp_fresh_frame

Definition at line 437 of file switch_rtp.c.

Referenced by process_rtcp_report().

switch_sockaddr_t * switch_rtp::rtcp_from_addr
switch_rtp_ice_t switch_rtp::rtcp_ice
int switch_rtp::rtcp_interval

Definition at line 435 of file switch_rtp.c.

Referenced by check_rtcp_and_ice(), and rtcp_stats().

switch_time_t switch_rtp::rtcp_last_sent

Definition at line 389 of file switch_rtp.c.

Referenced by check_rtcp_and_ice(), and switch_rtp_create().

switch_sockaddr_t * switch_rtp::rtcp_local_addr

Definition at line 313 of file switch_rtp.c.

Referenced by enable_local_rtcp_socket(), enable_remote_rtcp_socket(), and ping_socket().

switch_pollfd_t * switch_rtp::rtcp_read_pollfd

Definition at line 310 of file switch_rtp.c.

Referenced by enable_local_rtcp_socket(), and rtp_common_read().

rtcp_msg_t switch_rtp::rtcp_recv_msg

Definition at line 328 of file switch_rtp.c.

Referenced by rtp_common_read().

rtcp_msg_t* switch_rtp::rtcp_recv_msg_p
switch_sockaddr_t * switch_rtp::rtcp_remote_addr
rtcp_msg_t switch_rtp::rtcp_send_msg

Definition at line 315 of file switch_rtp.c.

Referenced by check_rtcp_and_ice(), and rtp_common_read().

int switch_rtp::rtcp_sent_packets

Definition at line 436 of file switch_rtp.c.

Referenced by check_rtcp_and_ice().

switch_socket_t * switch_rtp::rtcp_sock_input
switch_socket_t * switch_rtp::rtcp_sock_output
switch_rtp_bug_flag_t switch_rtp::rtp_bugs
switch_sockaddr_t * switch_rtp::rtp_from_addr
char* switch_rtp::rx_host

Definition at line 375 of file switch_rtp.c.

Referenced by switch_rtp_new().

switch_port_t switch_rtp::rx_port

Definition at line 376 of file switch_rtp.c.

Referenced by switch_rtp_new().

uint32_t switch_rtp::samples_per_interval
uint32_t switch_rtp::samples_per_second

Definition at line 387 of file switch_rtp.c.

Referenced by set_dtmf_delay().

srtp_ctx_t* switch_rtp::send_ctx[2]

Definition at line 335 of file switch_rtp.c.

Referenced by check_rtcp_and_ice(), rtp_common_read(), and rtp_common_write().

rtp_msg_t switch_rtp::send_msg

Definition at line 314 of file switch_rtp.c.

Referenced by check_rtcp_and_ice(), rtp_common_write(), and switch_rtp_create().

srtp_policy_t switch_rtp::send_policy[2]

Definition at line 338 of file switch_rtp.c.

Referenced by rtp_common_write().

switch_time_t switch_rtp::send_time

Definition at line 439 of file switch_rtp.c.

Referenced by rtp_common_write().

int8_t switch_rtp::sending_dtmf

Definition at line 357 of file switch_rtp.c.

Referenced by do_2833(), rtp_common_read(), and rtp_common_write().

uint16_t switch_rtp::seq

Definition at line 353 of file switch_rtp.c.

Referenced by do_2833(), rtp_common_write(), and switch_rtp_create().

switch_core_session_t* switch_rtp::session
switch_socket_t* switch_rtp::sock_input

Definition at line 309 of file switch_rtp.c.

Referenced by do_flush(), ping_socket(), read_rtp_packet(), and rtp_common_read().

switch_socket_t * switch_rtp::sock_output

Definition at line 309 of file switch_rtp.c.

Referenced by handle_ice(), ice_out(), and rtp_common_write().

uint32_t switch_rtp::srctp_errs[2]

Definition at line 342 of file switch_rtp.c.

uint32_t switch_rtp::srtp_errs[2]

Definition at line 341 of file switch_rtp.c.

Referenced by read_rtp_packet().

int switch_rtp::srtp_idx_rtcp
int switch_rtp::srtp_idx_rtp

Definition at line 345 of file switch_rtp.c.

Referenced by read_rtp_packet(), and rtp_common_write().

uint32_t switch_rtp::ssrc

Definition at line 354 of file switch_rtp.c.

Referenced by check_rtcp_and_ice(), rtp_common_write(), and switch_rtp_create().

switch_rtp_stats_t switch_rtp::stats
char* switch_rtp::stun_ip

Definition at line 423 of file switch_rtp.c.

switch_port_t switch_rtp::stun_port

Definition at line 424 of file switch_rtp.c.

uint32_t switch_rtp::sync_packets

Definition at line 434 of file switch_rtp.c.

Referenced by rtp_common_read().

switch_payload_t switch_rtp::te

Definition at line 404 of file switch_rtp.c.

Referenced by do_2833(), rtp_common_write(), and switch_rtp_create().

switch_timer_t switch_rtp::timer
char* switch_rtp::timer_name

Definition at line 379 of file switch_rtp.c.

Referenced by switch_rtp_create().

uint32_t switch_rtp::tmmbn

Definition at line 323 of file switch_rtp.c.

Referenced by check_rtcp_and_ice().

uint32_t switch_rtp::tmmbr

Definition at line 322 of file switch_rtp.c.

Referenced by check_rtcp_and_ice().

uint32_t switch_rtp::ts

Definition at line 362 of file switch_rtp.c.

Referenced by check_rtcp_and_ice(), get_next_write_ts(), and rtp_common_write().

ts_normalize_t switch_rtp::ts_norm

Definition at line 325 of file switch_rtp.c.

Referenced by rtp_common_write().

struct switch_rtp_vad_data switch_rtp::vad_data

Definition at line 402 of file switch_rtp.c.

Referenced by rtp_common_write().

switch_jb_t* switch_rtp::vb

Definition at line 415 of file switch_rtp.c.

Referenced by check_rtcp_and_ice(), do_flush(), read_rtp_packet(), and rtp_common_read().

switch_jb_t* switch_rtp::vbw

Definition at line 416 of file switch_rtp.c.

Referenced by do_flush(), handle_nack(), process_rtcp_report(), and rtp_common_write().

rtp_msg_t switch_rtp::write_msg

Definition at line 419 of file switch_rtp.c.

switch_mutex_t* switch_rtp::write_mutex

Definition at line 409 of file switch_rtp.c.

Referenced by switch_rtp_create().

int switch_rtp::writing

Definition at line 422 of file switch_rtp.c.

uint32_t switch_rtp::wrong_addrs

Definition at line 385 of file switch_rtp.c.

Referenced by handle_ice().


The documentation for this struct was generated from the following file: