Structure representing a RTP session. More...
Data Fields | |
struct sockaddr_in | altthem |
struct ast_rtp * | bridged |
ast_rtp_callback | callback |
struct rtpPayloadType | current_RTP_PT [MAX_RTP_PT] |
unsigned int | cycles |
void * | data |
double | drxcore |
unsigned int | dtmf_duration |
unsigned int | dtmf_timeout |
struct timeval | dtmfmute |
unsigned int | dtmfsamples |
struct ast_frame | f |
unsigned int | flags |
struct io_context * | io |
int * | ioid |
unsigned int | lastdigitts |
unsigned int | lastevent |
unsigned int | lasteventseqn |
unsigned int | lastitexttimestamp |
unsigned int | lastividtimestamp |
unsigned int | lastotexttimestamp |
unsigned int | lastovidtimestamp |
struct timeval | lastrx |
int | lastrxformat |
int | lastrxseqno |
unsigned int | lastrxts |
unsigned int | lastts |
int | lasttxformat |
int | nat |
struct ast_codec_pref | pref |
unsigned char | rawdata [8192+AST_FRIENDLY_OFFSET] |
struct rtp_red * | red |
char | resp |
struct ast_rtcp * | rtcp |
int | rtp_lookup_code_cache_code |
int | rtp_lookup_code_cache_isAstFormat |
int | rtp_lookup_code_cache_result |
int | rtpholdtimeout |
int | rtpkeepalive |
int | rtptimeout |
struct timeval | rxcore |
unsigned int | rxcount |
double | rxjitter |
unsigned int | rxoctetcount |
unsigned short | rxseqno |
unsigned int | rxssrc |
double | rxtransit |
int | s |
struct sched_context * | sched |
unsigned short | seedrxseqno |
unsigned int | seedrxts |
char | send_digit |
int | send_duration |
int | send_payload |
char | sending_digit |
unsigned short | seqno |
int | set_marker_bit:1 |
struct ast_smoother * | smoother |
unsigned int | ssrc |
struct sockaddr_in | strict_rtp_address |
enum strict_rtp_state | strict_rtp_state |
struct sockaddr_in | them |
unsigned int | themssrc |
struct timeval | txcore |
unsigned int | txcount |
unsigned int | txoctetcount |
struct sockaddr_in | us |
Structure representing a RTP session.
RTP session is defined on page 9 of RFC 3550: "An association among a set of participants communicating with RTP. A participant may be involved in multiple RTP sessions at the same time [...]"
RTP session description
struct sockaddr_in altthem |
Alternate source of remote media
Definition at line 149 of file rtp.c.
Referenced by ast_rtp_read(), and ast_rtp_set_alt_peer().
Who we are Packet bridged to
Definition at line 172 of file rtp.c.
Referenced by ast_rtp_get_bridged(), ast_rtp_read(), and p2p_set_bridge().
Definition at line 162 of file rtp.c.
Referenced by ast_rtp_set_callback(), and rtpread().
struct rtpPayloadType current_RTP_PT[MAX_RTP_PT] |
Definition at line 166 of file rtp.c.
Referenced by ast_rtp_get_current_formats(), ast_rtp_lookup_code(), ast_rtp_pt_clear(), ast_rtp_pt_copy(), ast_rtp_pt_default(), ast_rtp_set_m_type(), ast_rtp_set_rtpmap_type_rate(), ast_rtp_unset_m_type(), and bridge_p2p_rtp_write().
unsigned int cycles |
Shifted count of sequence number cycles
Definition at line 123 of file rtp.c.
Referenced by __ast_rtp_get_quality_loss(), ast_rtcp_write_rr(), ast_rtcp_write_sr(), and ast_rtp_read().
void* data |
Definition at line 161 of file rtp.c.
Referenced by ast_rtcp_send_h261fur(), ast_rtp_sendcng(), ast_rtp_set_data(), and rtpread().
double drxcore |
The double representation of the first received packet
Definition at line 152 of file rtp.c.
Referenced by calc_rxstamp().
unsigned int dtmf_duration |
Total duration in samples since the digit start event
Definition at line 136 of file rtp.c.
Referenced by ast_rtp_read(), and process_rfc2833().
unsigned int dtmf_timeout |
When this timestamp is reached we consider END frame lost and forcibly abort digit
Definition at line 137 of file rtp.c.
Referenced by ast_rtp_read(), ast_rtp_reset(), process_cisco_dtmf(), and process_rfc2833().
struct timeval dtmfmute |
Definition at line 154 of file rtp.c.
Referenced by ast_rtp_reset(), ast_rtp_sendcng(), ast_rtp_senddigit_begin(), ast_rtp_senddigit_end_with_duration(), and create_dtmf_frame().
unsigned int dtmfsamples |
Definition at line 138 of file rtp.c.
Referenced by ast_rtp_reset(), create_dtmf_frame(), process_cisco_dtmf(), and process_rfc2833().
Definition at line 104 of file rtp.c.
Referenced by ast_rtcp_read(), ast_rtp_read(), ast_rtp_senddigit_end_with_duration(), calc_rxstamp(), create_dtmf_frame(), and process_rfc3389().
struct io_context* io |
Definition at line 160 of file rtp.c.
Referenced by ast_rtp_destroy(), ast_rtp_new_with_bindaddr(), and p2p_callback_disable().
int* ioid |
Definition at line 156 of file rtp.c.
Referenced by ast_rtp_destroy(), ast_rtp_new_with_bindaddr(), and p2p_callback_disable().
unsigned int lastdigitts |
Definition at line 140 of file rtp.c.
Referenced by ast_rtp_raw_write(), ast_rtp_reset(), ast_rtp_senddigit_begin(), ast_rtp_senddigit_continuation(), and ast_rtp_senddigit_end_with_duration().
unsigned int lastevent |
Definition at line 135 of file rtp.c.
Referenced by ast_rtp_read(), ast_rtp_reset(), and process_rfc2833().
unsigned int lasteventseqn |
Definition at line 115 of file rtp.c.
Referenced by ast_rtp_reset().
unsigned int lastitexttimestamp |
Definition at line 113 of file rtp.c.
Referenced by ast_rtp_read(), and ast_rtp_reset().
unsigned int lastividtimestamp |
Definition at line 111 of file rtp.c.
Referenced by ast_rtp_read(), and ast_rtp_reset().
unsigned int lastotexttimestamp |
Definition at line 114 of file rtp.c.
Referenced by ast_rtp_raw_write(), and ast_rtp_reset().
unsigned int lastovidtimestamp |
Definition at line 112 of file rtp.c.
Referenced by ast_rtp_raw_write(), and ast_rtp_reset().
int lastrxformat |
Definition at line 127 of file rtp.c.
Referenced by ast_rtp_read(), ast_rtp_reset(), process_cisco_dtmf(), and process_rfc3389().
int lastrxseqno |
Last received sequence number
Definition at line 116 of file rtp.c.
Referenced by __ast_rtp_get_quality_loss(), ast_rtcp_write_rr(), ast_rtcp_write_sr(), and ast_rtp_read().
unsigned int lastrxts |
Definition at line 110 of file rtp.c.
Referenced by ast_rtp_read(), and ast_rtp_reset().
unsigned int lastts |
Definition at line 109 of file rtp.c.
Referenced by ast_rtcp_write_sr(), ast_rtp_raw_write(), ast_rtp_reset(), ast_rtp_sendcng(), ast_rtp_senddigit_begin(), and ast_rtp_senddigit_end_with_duration().
int lasttxformat |
Definition at line 126 of file rtp.c.
Referenced by ast_rtp_codec_setpref(), ast_rtp_reset(), and ast_rtp_write().
int nat |
Definition at line 145 of file rtp.c.
Referenced by ast_rtcp_read(), ast_rtp_raw_write(), ast_rtp_read(), ast_rtp_setnat(), and bridge_p2p_rtp_write().
struct ast_codec_pref pref |
Definition at line 171 of file rtp.c.
Referenced by ast_rtp_bridge(), ast_rtp_codec_getpref(), ast_rtp_codec_setpref(), and ast_rtp_write().
unsigned char rawdata[8192+AST_FRIENDLY_OFFSET] |
Definition at line 105 of file rtp.c.
Referenced by ast_rtp_read(), and process_rfc3389().
Definition at line 178 of file rtp.c.
Referenced by ast_rtp_stop(), ast_rtp_write(), red_buffer_t140(), red_write(), and rtp_red_init().
char resp |
Definition at line 134 of file rtp.c.
Referenced by ast_rtp_read(), create_dtmf_frame(), process_cisco_dtmf(), and process_rfc2833().
Definition at line 170 of file rtp.c.
Referenced by __ast_rtp_get_qos(), __ast_rtp_get_quality(), __ast_rtp_get_quality_jitter(), __ast_rtp_get_quality_loss(), __ast_rtp_get_quality_rtt(), ast_rtcp_fd(), ast_rtcp_read(), ast_rtcp_send_h261fur(), ast_rtcp_write(), ast_rtcp_write_rr(), ast_rtcp_write_sr(), ast_rtp_destroy(), ast_rtp_get_qosvalue(), ast_rtp_get_quality(), ast_rtp_new_with_bindaddr(), ast_rtp_raw_write(), ast_rtp_read(), ast_rtp_set_alt_peer(), ast_rtp_set_peer(), ast_rtp_stop(), and calc_rxstamp().
Definition at line 168 of file rtp.c.
Referenced by ast_rtp_lookup_code(), ast_rtp_pt_clear(), ast_rtp_pt_copy(), and ast_rtp_pt_default().
a cache for the result of rtp_lookup_code():
Definition at line 167 of file rtp.c.
Referenced by ast_rtp_lookup_code(), ast_rtp_pt_clear(), ast_rtp_pt_copy(), and ast_rtp_pt_default().
Definition at line 169 of file rtp.c.
Referenced by ast_rtp_lookup_code(), ast_rtp_pt_clear(), ast_rtp_pt_copy(), and ast_rtp_pt_default().
int rtpholdtimeout |
RTP timeout when on hold (negative or zero means disabled, negative value means temporarily disabled).
Definition at line 130 of file rtp.c.
Referenced by ast_rtp_get_rtpholdtimeout(), ast_rtp_set_rtpholdtimeout(), and ast_rtp_set_rtptimers_onhold().
int rtpkeepalive |
Send RTP comfort noice packets for keepalive
Definition at line 131 of file rtp.c.
Referenced by ast_rtp_get_rtpkeepalive(), and ast_rtp_set_rtpkeepalive().
int rtptimeout |
RTP timeout time (negative or zero means disabled, negative value means temporarily disabled)
Definition at line 129 of file rtp.c.
Referenced by ast_rtp_get_rtpholdtimeout(), ast_rtp_get_rtptimeout(), ast_rtp_set_rtptimeout(), and ast_rtp_set_rtptimers_onhold().
struct timeval rxcore |
Definition at line 150 of file rtp.c.
Referenced by ast_rtp_reset(), and calc_rxstamp().
unsigned int rxcount |
How many packets have we received?
Definition at line 119 of file rtp.c.
Referenced by __ast_rtp_get_quality(), __ast_rtp_get_quality_loss(), ast_rtcp_write_rr(), ast_rtcp_write_sr(), ast_rtp_destroy(), ast_rtp_get_qosvalue(), ast_rtp_get_quality(), and ast_rtp_read().
double rxjitter |
Interarrival jitter at the moment
Definition at line 124 of file rtp.c.
Referenced by __ast_rtp_get_quality(), __ast_rtp_get_quality_jitter(), ast_rtcp_write_rr(), ast_rtcp_write_sr(), ast_rtp_destroy(), ast_rtp_get_qosvalue(), ast_rtp_get_quality(), and calc_rxstamp().
unsigned int rxoctetcount |
unsigned short rxseqno |
Definition at line 158 of file rtp.c.
Referenced by ast_rtp_read(), ast_rtp_reset(), and ast_rtp_set_peer().
unsigned int rxssrc |
Definition at line 108 of file rtp.c.
Referenced by ast_rtp_read().
double rxtransit |
Relative transit time for previous packet
Definition at line 125 of file rtp.c.
Referenced by ast_rtp_destroy(), and calc_rxstamp().
int s |
Definition at line 103 of file rtp.c.
Referenced by ast_rtp_destroy(), ast_rtp_fd(), ast_rtp_new_with_bindaddr(), ast_rtp_raw_write(), ast_rtp_read(), ast_rtp_sendcng(), ast_rtp_senddigit_begin(), ast_rtp_senddigit_continuation(), ast_rtp_senddigit_end_with_duration(), ast_rtp_setqos(), ast_rtp_stun_request(), and bridge_p2p_rtp_write().
struct sched_context* sched |
Definition at line 159 of file rtp.c.
Referenced by ast_rtcp_write_rr(), ast_rtcp_write_sr(), ast_rtp_destroy(), ast_rtp_new_with_bindaddr(), ast_rtp_raw_write(), ast_rtp_read(), ast_rtp_stop(), and rtp_red_init().
unsigned short seedrxseqno |
What sequence number did they start with?
Definition at line 117 of file rtp.c.
Referenced by __ast_rtp_get_quality_loss(), ast_rtcp_write_rr(), ast_rtcp_write_sr(), and ast_rtp_read().
unsigned int seedrxts |
What RTP timestamp did they start with?
Definition at line 118 of file rtp.c.
Referenced by calc_rxstamp().
char send_digit |
digit we are sending
Definition at line 142 of file rtp.c.
Referenced by ast_rtp_senddigit_begin(), ast_rtp_senddigit_continuation(), and ast_rtp_senddigit_end_with_duration().
int send_duration |
Definition at line 144 of file rtp.c.
Referenced by ast_rtp_senddigit_begin(), ast_rtp_senddigit_continuation(), and ast_rtp_senddigit_end_with_duration().
int send_payload |
Definition at line 143 of file rtp.c.
Referenced by ast_rtp_senddigit_begin(), ast_rtp_senddigit_continuation(), and ast_rtp_senddigit_end_with_duration().
char sending_digit |
boolean - are we sending digits
Definition at line 141 of file rtp.c.
Referenced by ast_rtp_raw_write(), ast_rtp_read(), ast_rtp_senddigit_begin(), and ast_rtp_senddigit_end_with_duration().
unsigned short seqno |
Sequence number, RFC 3550, page 13.
Definition at line 157 of file rtp.c.
Referenced by ast_rtp_new_init(), ast_rtp_raw_write(), ast_rtp_reset(), ast_rtp_sendcng(), ast_rtp_senddigit_begin(), ast_rtp_senddigit_continuation(), and ast_rtp_senddigit_end_with_duration().
int set_marker_bit |
Whether to set the marker bit or not
Definition at line 177 of file rtp.c.
Referenced by ast_rtp_change_source(), ast_rtp_new_source(), and ast_rtp_raw_write().
struct ast_smoother* smoother |
Definition at line 155 of file rtp.c.
Referenced by ast_rtp_codec_setpref(), ast_rtp_destroy(), and ast_rtp_write().
unsigned int ssrc |
Synchronization source, RFC 3550, page 10.
Definition at line 106 of file rtp.c.
Referenced by __ast_rtp_get_quality(), ast_rtcp_write_rr(), ast_rtcp_write_sr(), ast_rtp_change_source(), ast_rtp_destroy(), ast_rtp_get_quality(), ast_rtp_new_init(), ast_rtp_raw_write(), ast_rtp_sendcng(), ast_rtp_senddigit_begin(), ast_rtp_senddigit_continuation(), and ast_rtp_senddigit_end_with_duration().
struct sockaddr_in strict_rtp_address |
Remote address information for strict RTP purposes
Definition at line 175 of file rtp.c.
Referenced by ast_rtp_read().
Current state that strict RTP protection is in
Definition at line 174 of file rtp.c.
Referenced by ast_rtp_new_init(), ast_rtp_read(), and ast_rtp_set_peer().
struct sockaddr_in them |
Socket representation of the remote endpoint.
Definition at line 148 of file rtp.c.
Referenced by ast_rtp_destroy(), ast_rtp_get_peer(), ast_rtp_new_init(), ast_rtp_raw_write(), ast_rtp_read(), ast_rtp_sendcng(), ast_rtp_senddigit_begin(), ast_rtp_senddigit_continuation(), ast_rtp_senddigit_end_with_duration(), ast_rtp_set_peer(), ast_rtp_stop(), ast_rtp_write(), bridge_p2p_rtp_write(), create_dtmf_frame(), and process_rfc3389().
unsigned int themssrc |
Their SSRC
Definition at line 107 of file rtp.c.
Referenced by __ast_rtp_get_quality(), ast_rtcp_write_rr(), ast_rtcp_write_sr(), ast_rtp_destroy(), ast_rtp_get_quality(), and ast_rtp_read().
struct timeval txcore |
Definition at line 151 of file rtp.c.
Referenced by ast_rtp_reset(), and calc_txstamp().
unsigned int txcount |
How many packets have we sent?
Definition at line 121 of file rtp.c.
Referenced by __ast_rtp_get_quality(), ast_rtcp_write(), ast_rtcp_write_sr(), ast_rtp_destroy(), ast_rtp_get_qosvalue(), ast_rtp_get_quality(), and ast_rtp_raw_write().
unsigned int txoctetcount |
How many octets have we sent? (txcount*160)
Definition at line 122 of file rtp.c.
Referenced by ast_rtcp_write_sr(), and ast_rtp_raw_write().
struct sockaddr_in us |
Socket representation of the local endpoint.
Definition at line 147 of file rtp.c.
Referenced by ast_rtp_get_us(), ast_rtp_new_init(), and ast_rtp_new_with_bindaddr().