sip_pkt Struct Reference

sip packet - raw format for outbound packets that are sent or scheduled for transmission Packets are linked in a list, whose head is in the struct sip_pvt they belong to. Each packet holds a reference to the parent struct sip_pvt. This structure is allocated in __sip_reliable_xmit() and only for packets that require retransmissions. More...

#include <sip.h>

Collaboration diagram for sip_pkt:

Collaboration graph
[legend]

Data Fields

struct ast_strdata
char is_fatal
char is_resp
int method
struct sip_pktnext
struct sip_pvtowner
int response_code
int retrans
int retrans_stop
int64_t retrans_stop_time
int retransid
uint32_t seqno
struct timeval time_sent
int timer_a
int timer_t1

Detailed Description

sip packet - raw format for outbound packets that are sent or scheduled for transmission Packets are linked in a list, whose head is in the struct sip_pvt they belong to. Each packet holds a reference to the parent struct sip_pvt. This structure is allocated in __sip_reliable_xmit() and only for packets that require retransmissions.

Definition at line 1216 of file sip.h.


Field Documentation

struct ast_str* data [read]

char is_fatal

non-zero if there is a fatal error

Definition at line 1222 of file sip.h.

Referenced by __sip_reliable_xmit(), and retrans_pkt().

char is_resp

1 if this is a response packet (e.g. 200 OK), 0 if it is a request

Definition at line 1221 of file sip.h.

Referenced by __sip_ack(), __sip_pretend_ack(), __sip_reliable_xmit(), __sip_semi_ack(), retrans_pkt(), and sip_hangup().

int method

SIP method for this packet

Definition at line 1219 of file sip.h.

Referenced by __sip_ack(), __sip_pretend_ack(), __sip_reliable_xmit(), retrans_pkt(), and sip_hangup().

struct sip_pkt* next [read]

Next packet in linked list

Definition at line 1217 of file sip.h.

Referenced by __sip_ack(), __sip_reliable_xmit(), __sip_semi_ack(), dialog_unlink_all(), handle_request_cancel(), retrans_pkt(), and sip_hangup().

struct sip_pvt* owner [read]

Owner AST call

Definition at line 1224 of file sip.h.

Referenced by __sip_ack(), __sip_reliable_xmit(), dialog_unlink_all(), handle_request_cancel(), and retrans_pkt().

If this is a response, the response code

Definition at line 1223 of file sip.h.

Referenced by __sip_reliable_xmit(), handle_request_cancel(), and retrans_pkt().

int retrans

Retransmission number

Definition at line 1218 of file sip.h.

Referenced by retrans_pkt().

Timeout is reached, stop retransmission

Definition at line 1230 of file sip.h.

Referenced by retrans_pkt().

Time in ms after 'now' that retransmission must stop

Definition at line 1229 of file sip.h.

Referenced by __sip_reliable_xmit(), and retrans_pkt().

int retransid

Retransmission ID

Definition at line 1225 of file sip.h.

Referenced by __sip_ack(), __sip_reliable_xmit(), __sip_semi_ack(), dialog_unlink_all(), handle_request_cancel(), and retrans_pkt().

uint32_t seqno

struct timeval time_sent [read]

When pkt was sent

Definition at line 1228 of file sip.h.

Referenced by __sip_reliable_xmit(), and retrans_pkt().

int timer_a

SIP timer A, retransmission timer

Definition at line 1226 of file sip.h.

Referenced by retrans_pkt().

int timer_t1

SIP Timer T1, estimated RTT or 500 ms

Definition at line 1227 of file sip.h.

Referenced by __sip_reliable_xmit(), and retrans_pkt().


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

Generated on Thu Apr 16 06:37:24 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6