Thu Oct 11 06:38:35 2012

Asterisk developer's documentation


ast_rtp Struct Reference

RTP session description. More...

Collaboration diagram for ast_rtp:

Collaboration graph
[legend]

Data Fields

struct ast_sockaddr alt_rtp_address
struct ast_rtpbridged
ast_cond_t cond
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
pj_ice_sess * ice
unsigned int ice_started:1
struct io_contextio
int * ioid
unsigned int last_end_timestamp
unsigned int last_seqno
unsigned int lastdigitts
unsigned int lasteventseqn
unsigned int lastitexttimestamp
unsigned int lastividtimestamp
unsigned int lastotexttimestamp
unsigned int lastovidtimestamp
struct timeval lastrx
struct ast_format lastrxformat
int lastrxseqno
unsigned int lastrxts
unsigned int lastts
struct ast_format lasttxformat
uint16_t learning_max_seq
int learning_probation
struct ao2_containerlocal_candidates
char local_passwd [256]
char local_ufrag [256]
ast_mutex_t lock
unsigned int passthrough:1
unsigned char rawdata [8192+AST_FRIENDLY_OFFSET]
struct rtp_redred
struct ao2_containerremote_candidates
char remote_passwd [256]
char remote_ufrag [256]
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 ast_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
pj_turn_sock * turn_rtcp
pj_turn_sock * turn_rtp
pj_turn_state_t turn_state
struct timeval txcore
unsigned int txcount
unsigned int txoctetcount

Detailed Description

RTP session description.

Definition at line 177 of file res_rtp_asterisk.c.


Field Documentation

Alternate remote address information

Definition at line 240 of file res_rtp_asterisk.c.

Referenced by ast_rtp_alt_remote_address_set(), and ast_rtp_read().

struct ast_rtp* bridged [read]

Who we are Packet bridged to

Definition at line 236 of file res_rtp_asterisk.c.

Referenced by bridge_p2p_rtp_write().

unsigned int cycles

Shifted count of sequence number cycles

Definition at line 198 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 234 of file res_rtp_asterisk.c.

Referenced by ast_rtp_sendcng().

double drxcore

The double representation of the first received packet

Definition at line 225 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 212 of file res_rtp_asterisk.c.

Referenced by ast_rtp_read(), and process_dtmf_rfc2833().

unsigned int dtmf_timeout

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

Definition at line 213 of file res_rtp_asterisk.c.

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

The current DTMF mode of the RTP stream

Definition at line 215 of file res_rtp_asterisk.c.

Referenced by ast_rtp_dtmf_mode_get(), and ast_rtp_dtmf_mode_set().

struct timeval dtmfmute [read]

unsigned int dtmfsamples

Definition at line 214 of file res_rtp_asterisk.c.

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

struct ast_frame f [read]

unsigned int flags

Definition at line 222 of file res_rtp_asterisk.c.

Referenced by process_dtmf_cisco().

pj_ice_sess* ice

unsigned int ice_started

Bit to indicate ICE connectivity checks have started

Definition at line 258 of file res_rtp_asterisk.c.

Referenced by ast_rtp_ice_start().

struct io_context* io [read]

Definition at line 233 of file res_rtp_asterisk.c.

int* ioid

Definition at line 229 of file res_rtp_asterisk.c.

unsigned int last_end_timestamp

The last known timestamp received from an END packet

Definition at line 211 of file res_rtp_asterisk.c.

Referenced by process_dtmf_rfc2833().

unsigned int last_seqno

The last known sequence number for any DTMF packet

Definition at line 210 of file res_rtp_asterisk.c.

Referenced by process_dtmf_rfc2833().

unsigned int lastdigitts

unsigned int lasteventseqn

Definition at line 190 of file res_rtp_asterisk.c.

unsigned int lastitexttimestamp

Definition at line 188 of file res_rtp_asterisk.c.

Referenced by ast_rtp_read().

unsigned int lastividtimestamp

Definition at line 186 of file res_rtp_asterisk.c.

Referenced by ast_rtp_read().

unsigned int lastotexttimestamp

Definition at line 189 of file res_rtp_asterisk.c.

Referenced by ast_rtp_raw_write().

unsigned int lastovidtimestamp

Definition at line 187 of file res_rtp_asterisk.c.

Referenced by ast_rtp_raw_write().

struct timeval lastrx [read]

timeval when we last received a packet

Definition at line 226 of file res_rtp_asterisk.c.

struct ast_format lastrxformat [read]

Definition at line 202 of file res_rtp_asterisk.c.

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

Last received sequence number

Definition at line 191 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 185 of file res_rtp_asterisk.c.

Referenced by ast_rtp_read().

unsigned int lastts

struct ast_format lasttxformat [read]

Definition at line 201 of file res_rtp_asterisk.c.

Referenced by ast_rtp_write().

uint16_t learning_max_seq

Highest sequence number heard

Definition at line 246 of file res_rtp_asterisk.c.

Referenced by rtp_learning_rtp_seq_update(), and rtp_learning_seq_init().

Sequential packets untill source is valid

Definition at line 247 of file res_rtp_asterisk.c.

Referenced by rtp_learning_rtp_seq_update(), and rtp_learning_seq_init().

The local ICE candidates

Definition at line 266 of file res_rtp_asterisk.c.

Referenced by ast_rtp_destroy(), ast_rtp_ice_add_cand(), and ast_rtp_ice_get_local_candidates().

char local_passwd[256]

The local ICE password

Definition at line 264 of file res_rtp_asterisk.c.

Referenced by ast_rtp_ice_get_password(), and ast_rtp_new().

char local_ufrag[256]

The local ICE username

Definition at line 263 of file res_rtp_asterisk.c.

Referenced by ast_rtp_ice_get_ufrag(), and ast_rtp_new().

Lock for synchronization purposes

Definition at line 254 of file res_rtp_asterisk.c.

Referenced by ast_rtp_destroy(), ast_rtp_new(), ast_rtp_on_turn_rtcp_state(), ast_rtp_on_turn_rtp_state(), and rtp_add_candidates_to_ice().

unsigned int passthrough

Bit to indicate that the received packet should be passed through

Definition at line 257 of file res_rtp_asterisk.c.

Referenced by __rtp_recvfrom(), and ast_rtp_on_ice_rx_data().

unsigned char rawdata[8192+AST_FRIENDLY_OFFSET]

Definition at line 180 of file res_rtp_asterisk.c.

Referenced by ast_rtp_read(), and process_cn_rfc3389().

struct rtp_red* red [read]

The remote ICE candidates

Definition at line 267 of file res_rtp_asterisk.c.

Referenced by ast_rtp_destroy(), ast_rtp_ice_add_remote_candidate(), and ast_rtp_ice_start().

char remote_passwd[256]

The remote ICE password

Definition at line 261 of file res_rtp_asterisk.c.

Referenced by ast_rtp_ice_set_authentication(), and ast_rtp_ice_start().

char remote_ufrag[256]

The remote ICE username

Definition at line 260 of file res_rtp_asterisk.c.

Referenced by ast_rtp_ice_set_authentication(), and ast_rtp_ice_start().

char resp

The current digit being processed

Definition at line 209 of file res_rtp_asterisk.c.

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

struct ast_rtcp* rtcp [read]

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

Definition at line 205 of file res_rtp_asterisk.c.

Send RTP comfort noice packets for keepalive

Definition at line 206 of file res_rtp_asterisk.c.

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

Definition at line 204 of file res_rtp_asterisk.c.

struct timeval rxcore [read]

Definition at line 223 of file res_rtp_asterisk.c.

Referenced by calc_rxstamp().

unsigned int rxcount

How many packets have we received?

Definition at line 194 of file res_rtp_asterisk.c.

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

double rxjitter

Interarrival jitter at the moment in seconds

Definition at line 199 of file res_rtp_asterisk.c.

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

unsigned int rxoctetcount

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

Definition at line 195 of file res_rtp_asterisk.c.

unsigned short rxseqno

Definition at line 231 of file res_rtp_asterisk.c.

Referenced by ast_rtp_read(), and ast_rtp_remote_address_set().

unsigned int rxssrc

Definition at line 183 of file res_rtp_asterisk.c.

Referenced by ast_rtp_read().

double rxtransit

Relative transit time for previous packet

Definition at line 200 of file res_rtp_asterisk.c.

Referenced by calc_rxstamp().

int s

struct ast_sched_context* sched [read]

unsigned short seedrxseqno

What sequence number did they start with?

Definition at line 192 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 193 of file res_rtp_asterisk.c.

Referenced by calc_rxstamp().

char send_digit

digit we are sending

Definition at line 219 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 218 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

struct ast_smoother* smoother [read]

Definition at line 228 of file res_rtp_asterisk.c.

Referenced by ast_rtp_destroy(), and ast_rtp_write().

unsigned int ssrc

Remote address information for strict RTP purposes

Definition at line 239 of file res_rtp_asterisk.c.

Referenced by ast_rtp_read().

Current state that strict RTP protection is in

Definition at line 238 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 182 of file res_rtp_asterisk.c.

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

pj_turn_sock* turn_rtcp

pj_turn_sock* turn_rtp

pj_turn_state_t turn_state

Current state of the TURN relay session

Definition at line 255 of file res_rtp_asterisk.c.

Referenced by ast_rtp_on_turn_rtcp_state(), ast_rtp_on_turn_rtp_state(), and rtp_add_candidates_to_ice().

struct timeval txcore [read]

Definition at line 224 of file res_rtp_asterisk.c.

Referenced by calc_txstamp().

unsigned int txcount

How many packets have we sent?

Definition at line 196 of file res_rtp_asterisk.c.

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

unsigned int txoctetcount

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

Definition at line 197 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:

Generated on Thu Oct 11 06:38:35 2012 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6