Codename Pineapple

Home page | Mailing list | Docs

Last updated: Sat Feb 3 05:02:04 2007

Asterisk developer's documentation :: Codename Pineapple


sip_request Struct Reference

#include <sip3.h>

Collaboration diagram for sip_request:

Collaboration graph
[legend]

Detailed Description

sip_request: The data grabbed from the UDP socket

Definition at line 603 of file chan_sip.c.

Data Fields

unsigned int allocid
const char * callid
const char * cseqheader
char * data
char data [SIP_MAX_PACKET]
size_t data_size
sip_dialogdialog
unsigned int flags
const char * from
char * header [SIP_MAX_HEADERS]
char * header [SIP_MAX_HEADERS]
int headers
int len
char * line [SIP_MAX_LINES]
char * line [SIP_MAX_LINES]
int lines
int method
sip_requestnext
int retrans
int retransid
char * rlPart1
char * rlPart1
char * rlPart2
char * rlPart2
unsigned int sdp_end
unsigned int sdp_start
int seqno
sip_networksocket
enum transaction_state state
int timer_a
int timer_t1
int timer_t2
const char * to
const char * via


Field Documentation

unsigned int allocid
 

Allocation ID for debugging

Definition at line 575 of file sip3.h.

const char* callid
 

Pointer to the call ID header

Definition at line 580 of file sip3.h.

Referenced by match_or_create_dialog().

const char* cseqheader
 

Pointer to the cseq header

Definition at line 579 of file sip3.h.

Referenced by handle_request(), handle_response(), match_or_create_dialog(), and respprep().

char* data
 

Size of the data allocation The actual message - allocated on demand sized to order

Definition at line 609 of file sip3.h.

char data[SIP_MAX_PACKET]
 

Definition at line 613 of file chan_sip.c.

Referenced by __sip_pretend_ack(), __sip_semi_ack(), __sip_xmit(), add_blank(), add_header(), add_line(), append_send_history(), init_req(), init_resp(), parse_copy(), parse_request(), process_sip_queue(), retrans_pkt(), send_request(), send_response(), sip_hangup(), siprequest_free(), and sipsock_read().

size_t data_size
 

Definition at line 607 of file sip3.h.

Referenced by __transmit_response(), add_blank(), add_header(), add_line(), append_send_history(), init_req(), init_resp(), and parse_copy().

struct sip_dialog* dialog
 

Owner SIP dialog

Definition at line 602 of file sip3.h.

Referenced by __sip_ack(), __sip_destroy(), __sip_pretend_ack(), __sip_reliable_xmit(), __sip_semi_ack(), append_send_history(), retrans_pkt(), transmit_invite(), and transmit_request_with_auth().

unsigned int flags
 

SIP_PKT Flags for this packet

Definition at line 610 of file chan_sip.c.

const char* from
 

Pointer to the from header

Definition at line 583 of file sip3.h.

Referenced by get_destination(), handle_request(), initreqprep(), match_or_create_dialog(), respprep(), transmit_refer(), and transmit_register().

char* header[SIP_MAX_HEADERS]
 

Pointers to the headers

Definition at line 588 of file sip3.h.

char* header[SIP_MAX_HEADERS]
 

Definition at line 611 of file chan_sip.c.

Referenced by __get_header(), add_header(), determine_firstline_parts(), func_header_read(), handle_request(), init_req(), init_resp(), and parse_request().

int headers
 

# of SIP Headers

Definition at line 607 of file chan_sip.c.

Referenced by __get_header(), add_header(), create_addr_from_peer(), handle_request(), handle_request_invite(), handle_request_subscribe(), init_req(), init_resp(), initialize_initreq(), parse_request(), transmit_invite(), transmit_notify_with_mwi(), transmit_notify_with_sipfrag(), transmit_refer(), transmit_register(), and transmit_sip_request().

int len
 

Length

Definition at line 606 of file chan_sip.c.

Referenced by __sip_xmit(), add_blank(), add_header(), add_line(), handle_request_cancel(), init_req(), init_resp(), parse_copy(), process_sip_queue(), send_request(), and send_response().

char* line[SIP_MAX_LINES]
 

Pointer to content (attachment) lines

Definition at line 590 of file sip3.h.

char* line[SIP_MAX_LINES]
 

Definition at line 612 of file chan_sip.c.

Referenced by add_line(), find_sdp(), get_body(), get_msg_text(), get_sdp_iterate(), and parse_request().

int lines
 

Body Content

Definition at line 609 of file chan_sip.c.

Referenced by add_blank(), add_header(), add_line(), find_sdp(), get_body(), get_msg_text(), initialize_initreq(), and transmit_register().

int method
 

Method of this request

Definition at line 608 of file chan_sip.c.

Referenced by __sip_ack(), __sip_pretend_ack(), append_send_history(), find_call(), get_destination(), handle_request(), handle_request_bye(), handle_request_invite(), handle_request_register(), handle_request_subscribe(), init_req(), init_resp(), initialize_initreq(), process_sip_queue(), respprep(), retrans_pkt(), send_request(), send_response(), transmit_final_response(), and transmit_invite().

struct sip_request* next
 

For linked list of packets, use this

Definition at line 599 of file sip3.h.

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

int retrans
 

Retransmission number

Definition at line 600 of file sip3.h.

Referenced by retrans_pkt().

int retransid
 

Retransmission ID

Definition at line 603 of file sip3.h.

Referenced by __sip_ack(), __sip_semi_ack(), and retrans_pkt().

char* rlPart1
 

SIP Method Name or "SIP/2.0" protocol version

Definition at line 577 of file sip3.h.

char* rlPart1
 

SIP Method Name or "SIP/2.0" protocol version

Definition at line 604 of file chan_sip.c.

Referenced by determine_firstline_parts(), and handle_request().

char* rlPart2
 

The Request URI or Response Status

Definition at line 578 of file sip3.h.

char* rlPart2
 

The Request URI or Response Status

Definition at line 605 of file chan_sip.c.

Referenced by append_send_history(), determine_firstline_parts(), get_destination(), handle_request(), process_sip_queue(), and reqprep().

unsigned int sdp_end
 

the line number where the SDP ends

Definition at line 615 of file chan_sip.c.

Referenced by find_sdp().

unsigned int sdp_start
 

the line number where the SDP begins

Definition at line 614 of file chan_sip.c.

Referenced by find_sdp(), and process_sdp().

int seqno
 

Sequence number

Definition at line 601 of file sip3.h.

Referenced by __sip_ack(), __sip_pretend_ack(), __sip_semi_ack(), __transmit_response(), handle_request(), handle_request_invite(), handle_request_subscribe(), handle_response(), handle_response_invite(), parse_request(), reqprep(), respprep(), transmit_register(), transmit_response_with_attachment(), transmit_response_with_auth(), transmit_response_with_sdp(), and transmit_response_with_t38_sdp().

struct sip_network* socket
 

SIP socket for this request

Definition at line 612 of file sip3.h.

Referenced by siprequest_free().

enum transaction_state state
 

State of this transaction

Definition at line 576 of file sip3.h.

int timer_a
 

SIP timer A, retransmission timer

Definition at line 604 of file sip3.h.

Referenced by retrans_pkt().

int timer_t1
 

SIP Timer T1, estimated RTT or 500 ms

Definition at line 605 of file sip3.h.

Referenced by retrans_pkt().

int timer_t2
 

SIP Timer T2, defaults to 4 secs

Definition at line 606 of file sip3.h.

const char* to
 

Pointer to the To header

Definition at line 582 of file sip3.h.

Referenced by handle_response(), initreqprep(), match_or_create_dialog(), respprep(), and transmit_register().

const char* via
 

Pointer to the Via header

Definition at line 581 of file sip3.h.

Referenced by find_via_branch().


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

Asterisk is a trademark for Digium, inc.. | Edvina.net | Asterisk.org | This documentation was generated with Doxygen