Sun Oct 16 2011 08:43:13

Asterisk developer's documentation


ast_rtp Struct Reference

RTP session description. More...

Collaboration diagram for ast_rtp:

Data Fields

struct ast_sockaddr alt_rtp_address
struct ast_rtpbridged
unsigned int cycles
void * data
double drxcore
unsigned int dtmf_duration
unsigned int dtmf_timeout
enum ast_rtp_dtmf_mode dtmfmode
struct timeval dtmfmute
unsigned int dtmfsamples
struct ast_frame f
unsigned int flags
struct io_contextio
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
format_t lastrxformat
int lastrxseqno
unsigned int lastrxts
unsigned int lastts
format_t lasttxformat
unsigned char rawdata [8192+AST_FRIENDLY_OFFSET]
struct rtp_redred
char resp
struct ast_rtcprtcp
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_contextsched
unsigned short seedrxseqno
unsigned int seedrxts
char send_digit
int send_duration
int send_payload
char sending_digit
unsigned short seqno
struct ast_smoothersmoother
unsigned int ssrc
struct ast_sockaddr strict_rtp_address
enum strict_rtp_state strict_rtp_state
unsigned int themssrc
struct timeval txcore
unsigned int txcount
unsigned int txoctetcount

Detailed Description

RTP session description.


Field Documentation

Alternate remote address information

Definition at line 175 of file res_rtp_asterisk.c.

Referenced by ast_rtp_read(), and ast_rtp_alt_remote_address_set().

struct ast_rtp* bridged

Who we are Packet bridged to

Definition at line 171 of file res_rtp_asterisk.c.

Referenced by bridge_p2p_rtp_write().

unsigned int cycles

Shifted count of sequence number cycles

Definition at line 134 of file res_rtp_asterisk.c.

Referenced by ast_rtcp_write_rr(), ast_rtcp_write_sr(), and ast_rtp_read().

void* data

Definition at line 169 of file res_rtp_asterisk.c.

double drxcore

The double representation of the first received packet

Definition at line 160 of file res_rtp_asterisk.c.

Referenced by calc_rxstamp().

unsigned int dtmf_duration

Total duration in samples since the digit start event

Definition at line 147 of file res_rtp_asterisk.c.

Referenced by process_dtmf_rfc2833(), and ast_rtp_read().

unsigned int dtmf_timeout

When this timestamp is reached we consider END frame lost and forcibly abort digit

Definition at line 148 of file res_rtp_asterisk.c.

Referenced by process_dtmf_rfc2833(), process_dtmf_cisco(), and ast_rtp_read().

The current DTMF mode of the RTP stream

Definition at line 150 of file res_rtp_asterisk.c.

Referenced by ast_rtp_dtmf_mode_set(), and ast_rtp_dtmf_mode_get().

unsigned int dtmfsamples

Definition at line 149 of file res_rtp_asterisk.c.

Referenced by create_dtmf_frame(), process_dtmf_rfc2833(), and process_dtmf_cisco().

unsigned int flags

Definition at line 157 of file res_rtp_asterisk.c.

Referenced by process_dtmf_cisco().

struct io_context* io

Definition at line 168 of file res_rtp_asterisk.c.

int* ioid

Definition at line 164 of file res_rtp_asterisk.c.

unsigned int lastevent

Definition at line 146 of file res_rtp_asterisk.c.

Referenced by process_dtmf_rfc2833().

unsigned int lasteventseqn

Definition at line 126 of file res_rtp_asterisk.c.

unsigned int lastitexttimestamp

Definition at line 124 of file res_rtp_asterisk.c.

Referenced by ast_rtp_read().

unsigned int lastividtimestamp

Definition at line 122 of file res_rtp_asterisk.c.

Referenced by ast_rtp_read().

unsigned int lastotexttimestamp

Definition at line 125 of file res_rtp_asterisk.c.

Referenced by ast_rtp_raw_write().

unsigned int lastovidtimestamp

Definition at line 123 of file res_rtp_asterisk.c.

Referenced by ast_rtp_raw_write().

struct timeval lastrx

timeval when we last received a packet

Definition at line 161 of file res_rtp_asterisk.c.

Last received sequence number

Definition at line 127 of file res_rtp_asterisk.c.

Referenced by ast_rtcp_write_rr(), ast_rtcp_write_sr(), and ast_rtp_read().

unsigned int lastrxts

Definition at line 121 of file res_rtp_asterisk.c.

Referenced by ast_rtp_read().

Definition at line 137 of file res_rtp_asterisk.c.

Referenced by ast_rtp_write().

unsigned char rawdata[8192+AST_FRIENDLY_OFFSET]

Definition at line 116 of file res_rtp_asterisk.c.

Referenced by process_cn_rfc3389(), and ast_rtp_read().

RTP timeout when on hold (negative or zero means disabled, negative value means temporarily disabled).

Definition at line 141 of file res_rtp_asterisk.c.

Send RTP comfort noice packets for keepalive

Definition at line 142 of file res_rtp_asterisk.c.

RTP timeout time (negative or zero means disabled, negative value means temporarily disabled)

Definition at line 140 of file res_rtp_asterisk.c.

struct timeval rxcore

Definition at line 158 of file res_rtp_asterisk.c.

Referenced by calc_rxstamp().

unsigned int rxcount

How many packets have we received?

Definition at line 130 of file res_rtp_asterisk.c.

Referenced by ast_rtcp_write_rr(), ast_rtcp_write_sr(), ast_rtp_read(), and ast_rtp_get_stat().

double rxjitter

Interarrival jitter at the moment

Definition at line 135 of file res_rtp_asterisk.c.

Referenced by ast_rtcp_write_rr(), ast_rtcp_write_sr(), calc_rxstamp(), and ast_rtp_get_stat().

unsigned int rxoctetcount

How many octets have we received? should be rxcount *160

Definition at line 131 of file res_rtp_asterisk.c.

unsigned short rxseqno

Definition at line 166 of file res_rtp_asterisk.c.

Referenced by ast_rtp_read(), and ast_rtp_remote_address_set().

unsigned int rxssrc

Definition at line 119 of file res_rtp_asterisk.c.

Referenced by ast_rtp_read().

double rxtransit

Relative transit time for previous packet

Definition at line 136 of file res_rtp_asterisk.c.

Referenced by calc_rxstamp().

unsigned short seedrxseqno

What sequence number did they start with?

Definition at line 128 of file res_rtp_asterisk.c.

Referenced by 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 129 of file res_rtp_asterisk.c.

Referenced by calc_rxstamp().

char send_digit

digit we are sending

Definition at line 154 of file res_rtp_asterisk.c.

Referenced by ast_rtp_dtmf_begin(), ast_rtp_dtmf_continuation(), and ast_rtp_dtmf_end_with_duration().

boolean - are we sending digits

Definition at line 153 of file res_rtp_asterisk.c.

Referenced by ast_rtp_dtmf_begin(), ast_rtp_dtmf_end_with_duration(), ast_rtp_raw_write(), and ast_rtp_read().

unsigned short seqno

Definition at line 163 of file res_rtp_asterisk.c.

Referenced by ast_rtp_destroy(), and ast_rtp_write().

Remote address information for strict RTP purposes

Definition at line 174 of file res_rtp_asterisk.c.

Referenced by ast_rtp_read().

Current state that strict RTP protection is in

Definition at line 173 of file res_rtp_asterisk.c.

Referenced by ast_rtp_new(), ast_rtp_read(), and ast_rtp_remote_address_set().

unsigned int themssrc

Their SSRC

Definition at line 118 of file res_rtp_asterisk.c.

Referenced by ast_rtcp_write_rr(), ast_rtcp_write_sr(), ast_rtp_read(), and ast_rtp_get_stat().

struct timeval txcore

Definition at line 159 of file res_rtp_asterisk.c.

Referenced by calc_txstamp().

unsigned int txcount

How many packets have we sent?

Definition at line 132 of file res_rtp_asterisk.c.

Referenced by ast_rtcp_write_sr(), ast_rtcp_write(), ast_rtp_raw_write(), and ast_rtp_get_stat().

unsigned int txoctetcount

How many octets have we sent? (txcount*160)

Definition at line 133 of file res_rtp_asterisk.c.

Referenced by ast_rtcp_write_sr(), and ast_rtp_raw_write().


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