Sat Aug 6 00:40:09 2011

Asterisk developer's documentation


sip_pvt Struct Reference

sip_pvt: PVT structures are used for each SIP dialog, ie. a call, a registration, a subscribe More...


Data Fields

ast_string_field __begin_field [0]
ast_string_field __end_field [0]
ast_string_field_mgr __field_mgr
const ast_string_field accountcode
enum transfermodes allowtransfer
int amaflags
const ast_string_field authname
int authtries
int autoframing
int autokillid
long branch
ast_group_t callgroup
const ast_string_field callid
int callingpres
int capability
ast_variablechanvars
const ast_string_field cid_name
const ast_string_field cid_num
const ast_string_field context
int dialogver
const ast_string_field domain
int expiry
const ast_string_field exten
ast_flags flags [2]
const ast_string_field from
const ast_string_field fromdomain
const ast_string_field fromname
const ast_string_field fromuser
const ast_string_field fullcontact
int glareinvite
int hangupcause
sip_history_headhistory
size_t history_entries
unsigned int icseq
int initid
sip_request initreq
long invite_branch
enum invitestates invitestate
int jointcapability
int jointnoncodeccapability
const ast_string_field language
const char * last_provisional
int lastinvite
char lastmsg [256]
time_t lastrtprx
time_t lastrtptx
int laststate
ast_mutex_t lock
int maxcallbitrate
int maxtime
int method
const ast_string_field mohinterpret
const ast_string_field mohsuggest
sip_pvtnext
const ast_string_field nonce
int noncecount
int noncodeccapability
unsigned int ocseq
offered_media offered_media [3]
const ast_string_field okcontacturi
const ast_string_field opaque
sip_invite_paramoptions
const ast_string_field our_contact
in_addr ourip
ast_channelowner
sip_pktpackets
sip_authpeerauth
int peercapability
const ast_string_field peermd5secret
const ast_string_field peername
const ast_string_field peersecret
int pendinginvite
ast_group_t pickupgroup
unsigned int portinuri:1
int prefcodec
ast_codec_pref prefs
provisional_keepalive_dataprovisional_keepalive_data
const ast_string_field qop
const ast_string_field randdata
const ast_string_field rdnis
const ast_string_field realm
sockaddr_in recv
int redircodecs
sockaddr_in redirip
sip_referrefer
sip_registryregistry
sip_peerrelatedpeer
sip_pvt::request_queue request_queue
int request_queue_sched_id
sip_routeroute
int route_persistant
const ast_string_field rpid
const ast_string_field rpid_from
ast_rtprtp
int rtptimeout
sockaddr_in sa
int sessionid
int sessionversion
unsigned int sipoptions
unsigned int stalenonce:1
int stateid
const ast_string_field subscribecontext
enum subscriptiontype subscribed
const ast_string_field subscribeuri
t38properties t38
char tag [11]
const ast_string_field theirtag
int timer_t1
const ast_string_field tohost
ast_udptludptl
sockaddr_in udptlredirip
const ast_string_field uri
const ast_string_field useragent
const ast_string_field username
ast_dspvad
char via [128]
sockaddr_in vredirip
ast_rtpvrtp
int waitid

Data Structures

struct  request_queue


Detailed Description

sip_pvt: PVT structures are used for each SIP dialog, ie. a call, a registration, a subscribe

Definition at line 946 of file chan_sip.c.


Field Documentation

ast_string_field __begin_field[0]

Definition at line 987 of file chan_sip.c.

ast_string_field __end_field[0]

Definition at line 987 of file chan_sip.c.

struct ast_string_field_mgr __field_mgr

Definition at line 987 of file chan_sip.c.

const ast_string_field accountcode

Definition at line 987 of file chan_sip.c.

Referenced by sip_new().

enum transfermodes allowtransfer

REFER: restriction scheme

Definition at line 1045 of file chan_sip.c.

Referenced by create_addr_from_peer(), handle_request_refer(), and sip_show_channel().

int amaflags

AMA Flags

Definition at line 1033 of file chan_sip.c.

Referenced by sip_new().

const ast_string_field authname

Definition at line 987 of file chan_sip.c.

Referenced by build_reply_digest(), handle_response_refer(), and transmit_register().

int authtries

Times we've tried to authenticate

Definition at line 1010 of file chan_sip.c.

Referenced by do_proxy_auth(), do_register_auth(), handle_response_invite(), handle_response_refer(), and handle_response_register().

int autoframing

Definition at line 1069 of file chan_sip.c.

Referenced by create_addr_from_peer(), process_sdp_a_audio(), register_verify(), and transmit_response_with_sdp().

int autokillid

Auto-kill ID (scheduler)

Definition at line 1044 of file chan_sip.c.

Referenced by __sip_autodestruct(), handle_request_invite(), handle_request_subscribe(), notify_extenstate_update(), sip_cancel_destroy(), and sip_hangup().

long branch

The branch identifier of this session

Definition at line 1012 of file chan_sip.c.

Referenced by build_via(), reqprep(), transmit_invite(), and transmit_register().

ast_group_t callgroup

Call group

Definition at line 991 of file chan_sip.c.

Referenced by create_addr_from_peer(), and sip_new().

const ast_string_field callid

Definition at line 987 of file chan_sip.c.

Referenced by __sip_ack(), __sip_autodestruct(), __sip_destroy(), __sip_semi_ack(), __sip_show_channels(), build_callid_pvt(), build_callid_registry(), build_reply_digest(), check_pendings(), complete_sipch(), create_addr_from_peer(), find_call(), get_refer_info(), get_sip_pvt_byid_locked(), handle_request_info(), handle_request_invite(), handle_request_notify(), handle_request_refer(), handle_request_register(), handle_request_subscribe(), handle_response_invite(), handle_response_refer(), handle_response_register(), initialize_initreq(), initreqprep(), process_sdp(), receive_message(), reqprep(), retrans_pkt(), sip_alreadygone(), sip_destroy(), sip_dump_history(), sip_fixup(), sip_handle_t38_reinvite(), sip_hangup(), sip_new(), sip_scheddestroy(), sip_set_rtp_peer(), sip_set_udptl_peer(), sip_show_channel(), sip_show_history(), transmit_refer(), transmit_register(), transmit_request_with_auth(), transmit_response_with_sdp(), and transmit_response_with_t38_sdp().

int callingpres

Calling presentation

Definition at line 1009 of file chan_sip.c.

Referenced by build_rpid(), initreqprep(), sip_call(), and sip_new().

int capability

Special capability (codec)

Definition at line 998 of file chan_sip.c.

Referenced by create_addr_from_peer(), handle_request_invite(), process_sdp(), sip_call(), sip_get_codec(), sip_new(), sip_set_rtp_peer(), sip_show_channel(), and try_suggested_sip_codec().

struct ast_variable* chanvars

Channel variables to set for inbound call

Definition at line 1062 of file chan_sip.c.

Referenced by sip_new().

const ast_string_field cid_name

Definition at line 987 of file chan_sip.c.

Referenced by sip_call(), and sip_new().

const ast_string_field cid_num

Definition at line 987 of file chan_sip.c.

Referenced by __sip_show_channels(), get_destination(), sip_new(), and sip_show_channel().

const ast_string_field context

Definition at line 987 of file chan_sip.c.

Referenced by get_also_info(), get_destination(), get_refer_info(), handle_request_invite(), handle_request_options(), handle_request_refer(), handle_request_subscribe(), handle_response(), sip_new(), and transmit_state_notify().

int dialogver

SUBSCRIBE: Version for subscription dialog-info

Definition at line 1050 of file chan_sip.c.

Referenced by handle_request_subscribe(), and transmit_state_notify().

const ast_string_field domain

Definition at line 987 of file chan_sip.c.

Referenced by build_reply_digest(), get_destination(), reply_digest(), and sip_new().

int expiry

How long we take to expire

Definition at line 1011 of file chan_sip.c.

Referenced by handle_request_subscribe(), parse_register_contact(), respprep(), transmit_notify_with_mwi(), and transmit_state_notify().

const ast_string_field exten

Definition at line 987 of file chan_sip.c.

Referenced by build_contact(), handle_request_invite(), handle_request_subscribe(), handle_response(), sip_new(), and transmit_state_notify().

struct ast_flags flags[2]

SIP_ flags

Definition at line 994 of file chan_sip.c.

Referenced by __sip_autodestruct(), __sip_destroy(), __sip_show_channels(), add_codec_to_sdp(), add_sdp(), append_history_full(), build_via(), change_hold_state(), check_pendings(), check_via(), copy_via_headers(), create_addr(), create_addr_from_peer(), do_register_auth(), find_call(), get_sip_pvt_byid_locked(), handle_invite_replaces(), handle_request(), handle_request_bye(), handle_request_info(), handle_request_invite(), handle_request_refer(), handle_request_subscribe(), handle_response(), handle_response_invite(), handle_response_peerpoke(), handle_response_refer(), handle_response_register(), initreqprep(), local_attended_transfer(), notify_extenstate_update(), parse_moved_contact(), process_sdp(), process_sdp_a_audio(), register_verify(), reqprep(), respprep(), retrans_pkt(), send_request(), send_response(), set_address_from_contact(), sip_alreadygone(), sip_call(), sip_dtmfmode(), sip_get_rtp_peer(), sip_get_udptl_peer(), sip_get_vrtp_peer(), sip_handle_t38_reinvite(), sip_hangup(), sip_indicate(), sip_nat_mode(), sip_new(), sip_poke_peer(), sip_read(), sip_real_dst(), sip_reg_timeout(), sip_reinvite_retry(), sip_request_call(), sip_reregister(), sip_rtp_read(), sip_scheddestroy(), sip_send_mwi_to_peer(), sip_senddigit_begin(), sip_senddigit_end(), sip_set_rtp_peer(), sip_set_udptl_peer(), sip_show_channel(), sip_write(), sipsock_read(), transmit_notify_with_mwi(), transmit_refer(), transmit_register(), transmit_reinvite_with_sdp(), transmit_reinvite_with_t38_sdp(), transmit_response_with_sdp(), and update_call_counter().

const ast_string_field from

Definition at line 987 of file chan_sip.c.

Referenced by find_call(), function_sipchaninfo_read(), retrans_pkt(), and sip_new().

const ast_string_field fromdomain

Definition at line 987 of file chan_sip.c.

Referenced by build_callid_pvt(), build_rpid(), initreqprep(), sip_alloc(), sip_new(), transmit_notify_with_mwi(), transmit_register(), and transmit_response_using_temp().

const ast_string_field fromname

Definition at line 987 of file chan_sip.c.

Referenced by initreqprep(), and sip_new().

const ast_string_field fromuser

Definition at line 987 of file chan_sip.c.

Referenced by build_rpid(), initreqprep(), sip_new(), and transmit_register().

const ast_string_field fullcontact

Definition at line 987 of file chan_sip.c.

Referenced by initreqprep(), respprep(), set_address_from_contact(), and sip_new().

int glareinvite

A invite received while a pending invite is already present is stored here. Its seqno is the value. Since this glare invite's seqno is not the same as the pending invite's, it must be held in order to properly process acknowledgements for our 491 response.

Definition at line 1035 of file chan_sip.c.

Referenced by handle_request_invite().

int hangupcause

Storage of hangupcause copied from our owner before we disconnect from the AST channel (only used at hangup)

Definition at line 1070 of file chan_sip.c.

Referenced by sip_hangup(), and transmit_request_with_auth().

struct sip_history_head* history

History of this SIP dialog

Definition at line 1060 of file chan_sip.c.

Referenced by sip_dump_history(), and sip_show_history().

size_t history_entries

Number of entires in the history

Definition at line 1061 of file chan_sip.c.

unsigned int icseq

Current incoming seqno

Definition at line 990 of file chan_sip.c.

Referenced by __sip_show_channels().

int initid

Auto-congest ID if appropriate (scheduler)

Definition at line 1042 of file chan_sip.c.

Referenced by auto_congest(), handle_response_invite(), and sip_call().

struct sip_request initreq

Request that opened the latest transaction within this SIP dialog

Definition at line 1038 of file chan_sip.c.

Referenced by create_addr_from_peer(), func_header_read(), get_also_info(), get_destination(), get_rdnis(), get_refer_info(), handle_request(), handle_request_bye(), handle_request_invite(), handle_request_register(), handle_request_subscribe(), handle_response_invite(), handle_response_refer(), handle_response_register(), initialize_initreq(), register_verify(), reqprep(), send_provisional_keepalive_full(), send_response(), sip_handle_t38_reinvite(), sip_indicate(), sip_sipredirect(), sip_write(), transmit_fake_auth_response(), transmit_invite(), transmit_notify_with_mwi(), transmit_notify_with_sipfrag(), transmit_refer(), transmit_register(), transmit_sip_request(), and transmit_state_notify().

long invite_branch

The branch used when we sent the initial INVITE

Definition at line 1013 of file chan_sip.c.

Referenced by reqprep(), and transmit_invite().

enum invitestates invitestate

The state of the INVITE transaction only Global CallID Random data Account code Authorization realm Authorization nonce Opaque nonsense Quality of Protection, since SIP wasn't complicated enough yet. Authorization domain The From: header User agent in SIP request Extension where to start Context for this call Subscribecontext Subscribecontext Domain to show in the from field User to show in the user field Name to show in the user field Host we should put in the "to" field Default language for this call MOH class to use when put on hold MOH class to suggest when putting a peer on hold Referring DNIS Their tag [user] name [peer] name, not set if [user] Who we use for authentication Original requested URI URI from the 200 OK on INVITE Password Caller*ID number Caller*ID name The Contact: that the UA registers with us Our contact header Our RPID header Our RPID From header

Definition at line 949 of file chan_sip.c.

Referenced by check_pendings(), handle_request_cancel(), handle_request_invite(), handle_response_invite(), send_provisional_keepalive_full(), sip_call(), sip_hangup(), sip_indicate(), sip_read(), sip_write(), and transmit_request().

int jointcapability

Supported capability at both ends (codecs)

Definition at line 999 of file chan_sip.c.

Referenced by add_sdp(), handle_request_invite(), process_sdp(), sip_call(), sip_get_codec(), sip_new(), sip_rtp_read(), sip_set_rtp_peer(), sip_show_channel(), and try_suggested_sip_codec().

int jointnoncodeccapability

Joint Non codec capability

Definition at line 1003 of file chan_sip.c.

Referenced by add_sdp(), create_addr_from_peer(), process_sdp(), sip_call(), and sip_dtmfmode().

const ast_string_field language

Definition at line 987 of file chan_sip.c.

Referenced by sip_new().

const char* last_provisional

The last successfully transmitted provisonal response message

Definition at line 1066 of file chan_sip.c.

Referenced by send_provisional_keepalive_full().

int lastinvite

Last Cseq of invite

Definition at line 993 of file chan_sip.c.

Referenced by check_pendings(), handle_request_invite(), handle_request_notify(), handle_request_options(), handle_request_subscribe(), process_sdp(), transmit_invite(), and transmit_reinvite_with_t38_sdp().

char lastmsg[256]

Last Message sent/received

Definition at line 1032 of file chan_sip.c.

Referenced by __sip_autodestruct(), __sip_show_channels(), initreqprep(), reqprep(), and sip_show_channel().

time_t lastrtprx

Last RTP received

Definition at line 1021 of file chan_sip.c.

Referenced by add_sdp(), process_sdp(), sip_handle_t38_reinvite(), sip_read(), sip_set_rtp_peer(), and sip_set_udptl_peer().

time_t lastrtptx

Last RTP sent

Definition at line 1022 of file chan_sip.c.

Referenced by add_sdp(), process_sdp(), sip_handle_t38_reinvite(), sip_set_rtp_peer(), sip_set_udptl_peer(), and sip_write().

int laststate

SUBSCRIBE: Last known extension state

Definition at line 1049 of file chan_sip.c.

Referenced by handle_request_subscribe(), handle_response(), and notify_extenstate_update().

ast_mutex_t lock

Dialog private lock

Definition at line 947 of file chan_sip.c.

Referenced by __sip_ack(), __sip_autodestruct(), auto_congest(), get_sip_pvt_byid_locked(), handle_invite_replaces(), handle_request_invite(), handle_response_invite(), local_attended_transfer(), notify_extenstate_update(), retrans_pkt(), scheduler_process_request_queue(), send_provisional_keepalive_full(), sip_answer(), sip_dtmfmode(), sip_fixup(), sip_get_rtp_peer(), sip_get_udptl_peer(), sip_get_vrtp_peer(), sip_handle_t38_reinvite(), sip_hangup(), sip_indicate(), sip_new(), sip_park(), sip_read(), sip_reg_timeout(), sip_reinvite_retry(), sip_senddigit_begin(), sip_senddigit_end(), sip_set_rtp_peer(), sip_set_udptl_peer(), sip_transfer(), sip_write(), and sipsock_read().

int maxcallbitrate

Maximum Call Bitrate for Video Calls

Definition at line 1005 of file chan_sip.c.

Referenced by add_sdp(), create_addr_from_peer(), and sip_show_channel().

int maxtime

Max time for first response

Definition at line 1041 of file chan_sip.c.

Referenced by create_addr_from_peer(), and sip_call().

int method

SIP method that opened this dialog

Definition at line 948 of file chan_sip.c.

Referenced by __sip_autodestruct(), __sip_destroy(), __transmit_response(), handle_request(), handle_response(), respprep(), and sip_scheddestroy().

const ast_string_field mohinterpret

Definition at line 987 of file chan_sip.c.

Referenced by sip_indicate().

const ast_string_field mohsuggest

Definition at line 987 of file chan_sip.c.

Referenced by process_sdp().

struct sip_pvt* next

Next dialog in chain

Definition at line 1067 of file chan_sip.c.

Referenced by __sip_destroy(), __sip_show_channels(), complete_sipch(), do_monitor(), find_call(), get_sip_pvt_byid_locked(), sip_show_channel(), sip_show_history(), and unload_module().

const ast_string_field nonce

Definition at line 987 of file chan_sip.c.

Referenced by build_reply_digest(), reply_digest(), and transmit_register().

int noncecount

Nonce-count

Definition at line 1030 of file chan_sip.c.

Referenced by build_reply_digest(), reply_digest(), transmit_register(), and transmit_response_with_auth().

int noncodeccapability

DTMF RFC2833 telephony-event

Definition at line 1002 of file chan_sip.c.

Referenced by create_addr_from_peer(), process_sdp(), sip_call(), and sip_show_channel().

unsigned int ocseq

Current outgoing seqno

Definition at line 989 of file chan_sip.c.

Referenced by __sip_show_channels(), initreqprep(), reqprep(), transmit_info_with_digit(), transmit_info_with_vidupdate(), transmit_invite(), transmit_message_with_text(), transmit_notify_with_mwi(), transmit_notify_with_sipfrag(), transmit_refer(), transmit_register(), transmit_reinvite_with_t38_sdp(), transmit_request(), transmit_request_with_auth(), transmit_sip_request(), and transmit_state_notify().

struct offered_media offered_media[3]

When receiving an SDP offer, it is important to take note of what media types were offered. By doing this, even if we don't want to answer a particular media stream with something meaningful, we can still put an m= line in our answer with the port set to 0.

The reason for the length being 3 is that in this branch of Asterisk, the only media types supported are image, audio, and video. Therefore we need to keep track of which types of media were offered.

Note that if we wanted to be 100% correct, we would keep a list of all media streams offered. That way we could respond even to unknown media types, and we could respond to multiple streams of the same type. Such large-scale changes are not a good idea for released branches, though, so we're compromising by just making sure that for the common cases: audio and video, and audio and T.38, we give the appropriate response to both media streams.

The large-scale changes would be a good idea for implementing during an SDP rewrite.

Definition at line 1085 of file chan_sip.c.

Referenced by add_sdp(), process_sdp(), transmit_invite(), and transmit_reinvite_with_t38_sdp().

const ast_string_field okcontacturi

Definition at line 987 of file chan_sip.c.

Referenced by reqprep().

const ast_string_field opaque

Definition at line 987 of file chan_sip.c.

Referenced by build_reply_digest(), reply_digest(), and transmit_register().

struct sip_invite_param* options

Options for INVITE

Definition at line 1068 of file chan_sip.c.

Referenced by do_proxy_auth(), handle_response_invite(), initreqprep(), sip_call(), sip_request_call(), transmit_invite(), and transmit_request_with_auth().

const ast_string_field our_contact

Definition at line 987 of file chan_sip.c.

Referenced by handle_response_register(), initreqprep(), reqprep(), respprep(), sip_sipredirect(), transmit_refer(), and transmit_register().

struct in_addr ourip

Our IP

Definition at line 1025 of file chan_sip.c.

Referenced by add_sdp(), build_callid_pvt(), build_rpid(), build_via(), initreqprep(), sip_handle_t38_reinvite(), sip_poke_peer(), sip_send_mwi_to_peer(), sip_set_rtp_peer(), sip_set_udptl_peer(), sip_show_channel(), and transmit_notify_with_mwi().

struct ast_channel* owner

Who owns us (if we have an owner)

Definition at line 1026 of file chan_sip.c.

Referenced by __sip_autodestruct(), __sip_destroy(), __sip_show_channels(), __transmit_response(), add_sdp(), auto_congest(), build_rpid(), check_pendings(), get_also_info(), get_refer_info(), get_sip_pvt_byid_locked(), handle_invite_replaces(), handle_request_info(), handle_request_invite(), handle_request_refer(), handle_response(), handle_response_invite(), handle_response_refer(), initreqprep(), local_attended_transfer(), parse_moved_contact(), process_sdp(), receive_message(), retrans_pkt(), scheduler_process_request_queue(), send_provisional_keepalive_full(), sip_fixup(), sip_handle_t38_reinvite(), sip_hangup(), sip_new(), sip_reinvite_retry(), sip_rtp_read(), sip_show_channel(), sipsock_read(), transmit_invite(), try_suggested_sip_codec(), and unload_module().

struct sip_pkt* packets

Packets scheduled for re-transmission

Definition at line 1059 of file chan_sip.c.

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

struct sip_auth* peerauth

Realm authentication

Definition at line 1029 of file chan_sip.c.

Referenced by build_reply_digest(), and create_addr_from_peer().

int peercapability

Supported peer capability

Definition at line 1000 of file chan_sip.c.

Referenced by process_sdp(), and sip_show_channel().

const ast_string_field peermd5secret

Definition at line 987 of file chan_sip.c.

Referenced by build_reply_digest(), and transmit_register().

const ast_string_field peername

Definition at line 987 of file chan_sip.c.

Referenced by build_reply_digest(), function_sipchaninfo_read(), handle_request_invite(), handle_response_register(), sip_new(), sip_peer_hold(), sip_request_call(), sip_show_channel(), transmit_register(), and update_call_counter().

const ast_string_field peersecret

Definition at line 987 of file chan_sip.c.

Referenced by build_reply_digest(), and transmit_register().

int pendinginvite

Any pending INVITE or state NOTIFY (in subscribe pvt's) ? (seqno of this)

Definition at line 1034 of file chan_sip.c.

Referenced by __sip_ack(), __sip_reliable_xmit(), check_pendings(), handle_request_bye(), handle_request_invite(), handle_response(), notify_extenstate_update(), sip_handle_t38_reinvite(), sip_read(), sip_set_rtp_peer(), sip_set_udptl_peer(), sip_write(), transmit_response_with_sdp(), transmit_response_with_t38_sdp(), and transmit_state_notify().

ast_group_t pickupgroup

Pickup group

Definition at line 992 of file chan_sip.c.

Referenced by create_addr_from_peer(), and sip_new().

unsigned int portinuri

Non zero if a port has been specified, will also disable srv lookups

Definition at line 1017 of file chan_sip.c.

Referenced by create_addr(), create_addr_from_peer(), and initreqprep().

int prefcodec

Preferred codec (outbound only)

Definition at line 1001 of file chan_sip.c.

Referenced by add_sdp(), sip_call(), and sip_new().

struct ast_codec_pref prefs

codec prefs

Definition at line 997 of file chan_sip.c.

Referenced by add_sdp(), create_addr_from_peer(), process_sdp(), sip_new(), and transmit_response_with_sdp().

struct provisional_keepalive_data* provisional_keepalive_data

Scheduler data for provisional responses that need to be sent out to avoid cancellation

Definition at line 1065 of file chan_sip.c.

Referenced by remove_provisional_keepalive_sched(), and update_provisional_keepalive().

const ast_string_field qop

Definition at line 987 of file chan_sip.c.

Referenced by build_reply_digest(), reply_digest(), and transmit_register().

const ast_string_field randdata

Definition at line 987 of file chan_sip.c.

Referenced by check_auth(), set_nonce_randdata(), and transmit_fake_auth_response().

const ast_string_field rdnis

Definition at line 987 of file chan_sip.c.

Referenced by sip_new().

const ast_string_field realm

Definition at line 987 of file chan_sip.c.

Referenced by build_reply_digest(), reply_digest(), transmit_register(), and transmit_request_with_auth().

struct sockaddr_in recv

Received as

Definition at line 1024 of file chan_sip.c.

Referenced by copy_via_headers(), create_addr(), create_addr_from_peer(), function_sipchaninfo_read(), handle_response_refer(), parse_register_contact(), respprep(), send_request(), set_address_from_contact(), sip_poke_peer(), sip_real_dst(), sip_show_channel(), and sipsock_read().

int redircodecs

Redirect codecs

Definition at line 1004 of file chan_sip.c.

Referenced by add_sdp(), and sip_set_rtp_peer().

struct sockaddr_in redirip

Where our RTP should be going if not to us

Definition at line 1019 of file chan_sip.c.

Referenced by add_sdp(), sip_set_rtp_peer(), and sip_show_channel().

struct sip_refer* refer

REFER: SIP transfer data structure

Definition at line 1046 of file chan_sip.c.

Referenced by __sip_autodestruct(), __sip_show_channels(), get_also_info(), get_refer_info(), handle_invite_replaces(), handle_request_invite(), handle_request_refer(), handle_response(), handle_response_refer(), local_attended_transfer(), sip_hangup(), sip_refer_allocate(), transmit_invite(), and transmit_refer().

struct sip_registry* registry

If this is a REGISTER dialog, to which registry

Definition at line 1056 of file chan_sip.c.

Referenced by handle_response_register(), reply_digest(), sip_reg_timeout(), sip_registry_destroy(), and transmit_register().

struct sip_peer* relatedpeer

If this dialog is related to a peer, which one Used in peerpoke, mwi subscriptions

Definition at line 1054 of file chan_sip.c.

Referenced by __sip_destroy(), handle_request_subscribe(), handle_response(), handle_response_peerpoke(), and sip_poke_peer().

struct sip_pvt::request_queue request_queue

Requests that arrived but could not be processed immediately

Referenced by process_request_queue(), and queue_request().

int request_queue_sched_id

Scheduler ID of any scheduled action to process queued requests

Definition at line 1064 of file chan_sip.c.

Referenced by queue_request().

struct sip_route* route

Head of linked list of routing steps (fm Record-Route)

Definition at line 1027 of file chan_sip.c.

Referenced by build_route(), initreqprep(), reqprep(), and sip_show_channel().

int route_persistant

Is this the "real" route?

Definition at line 1028 of file chan_sip.c.

Referenced by build_route().

const ast_string_field rpid

Definition at line 987 of file chan_sip.c.

Referenced by build_rpid(), initreqprep(), and reqprep().

const ast_string_field rpid_from

Definition at line 987 of file chan_sip.c.

Referenced by build_rpid().

struct ast_rtp* rtp

RTP Session

Definition at line 1057 of file chan_sip.c.

Referenced by __sip_destroy(), acf_channel_read(), add_codec_to_sdp(), add_noncodec_to_sdp(), add_sdp(), create_addr_from_peer(), do_setnat(), handle_request_invite(), handle_response_invite(), process_sdp(), process_sdp_a_audio(), register_verify(), sip_dtmfmode(), sip_get_rtp_peer(), sip_get_vrtp_peer(), sip_indicate(), sip_new(), sip_rtp_read(), sip_senddigit_begin(), sip_set_rtp_peer(), sip_write(), stop_media_flows(), transmit_invite(), and transmit_response_with_sdp().

int rtptimeout

RTP timeout time

Definition at line 1023 of file chan_sip.c.

Referenced by create_addr_from_peer().

struct sockaddr_in sa

Our peer

Definition at line 1018 of file chan_sip.c.

Referenced by __sip_show_channels(), build_reply_digest(), check_via(), create_addr(), create_addr_from_peer(), function_sipchaninfo_read(), handle_request_subscribe(), initreqprep(), process_via(), respprep(), send_request(), set_address_from_contact(), set_destination(), sip_poke_peer(), sip_real_dst(), sip_send_mwi_to_peer(), and sip_show_channel().

int sessionid

SDP Session ID

Definition at line 1015 of file chan_sip.c.

Referenced by add_sdp().

int sessionversion

SDP Session Version

Definition at line 1016 of file chan_sip.c.

Referenced by add_sdp().

unsigned int sipoptions

Supported SIP options on the other end

Definition at line 996 of file chan_sip.c.

Referenced by handle_request_invite(), parse_register_contact(), parse_sip_options(), and sip_show_channel().

unsigned int stalenonce

Marks the current nonce as responded too

Definition at line 1031 of file chan_sip.c.

Referenced by check_auth(), and set_nonce_randdata().

int stateid

SUBSCRIBE: ID for devicestate subscriptions

Definition at line 1048 of file chan_sip.c.

Referenced by handle_request_subscribe(), and notify_extenstate_update().

const ast_string_field subscribecontext

Definition at line 987 of file chan_sip.c.

Referenced by get_destination(), and handle_request_subscribe().

enum subscriptiontype subscribed

SUBSCRIBE: Is this dialog a subscription?

Definition at line 1047 of file chan_sip.c.

Referenced by __sip_autodestruct(), __sip_show_channels(), handle_request_subscribe(), handle_response(), notify_extenstate_update(), sip_dump_history(), sip_show_channel(), sip_show_history(), transmit_notify_with_mwi(), and transmit_state_notify().

const ast_string_field subscribeuri

Definition at line 987 of file chan_sip.c.

Referenced by handle_request_subscribe().

struct t38properties t38

T38 settings

Definition at line 1006 of file chan_sip.c.

Referenced by add_sdp(), create_addr_from_peer(), function_sipchaninfo_read(), handle_request_invite(), handle_response_invite(), process_sdp(), process_sdp_a_image(), sip_call(), sip_handle_t38_reinvite(), sip_read(), sip_rtp_read(), sip_write(), transmit_invite(), and transmit_response_with_sdp().

char tag[11]

Our tag for this session

Definition at line 1014 of file chan_sip.c.

Referenced by build_rpid(), find_call(), get_refer_info(), get_sip_pvt_byid_locked(), handle_request_invite(), handle_request_subscribe(), initreqprep(), reqprep(), respprep(), sip_show_channel(), transmit_refer(), and transmit_register().

const ast_string_field theirtag

Definition at line 987 of file chan_sip.c.

Referenced by find_call(), get_refer_info(), get_sip_pvt_byid_locked(), handle_response(), handle_response_invite(), initreqprep(), reqprep(), respprep(), sip_show_channel(), transmit_refer(), and transmit_register().

int timer_t1

SIP timer T1, ms rtt

Definition at line 995 of file chan_sip.c.

Referenced by __sip_reliable_xmit(), create_addr(), create_addr_from_peer(), and sip_scheddestroy().

const ast_string_field tohost

Definition at line 987 of file chan_sip.c.

Referenced by create_addr_from_peer(), initreqprep(), and transmit_register().

struct ast_udptl* udptl

T.38 UDPTL session

Definition at line 1008 of file chan_sip.c.

Referenced by add_sdp(), create_addr_from_peer(), do_setnat(), handle_request_invite(), handle_response_invite(), process_sdp(), process_sdp_a_image(), sip_get_udptl_peer(), sip_handle_t38_reinvite(), sip_new(), sip_rtp_read(), sip_set_udptl_peer(), sip_write(), stop_media_flows(), transmit_invite(), and transmit_response_with_t38_sdp().

struct sockaddr_in udptlredirip

Where our T.38 UDPTL should be going if not to us

Definition at line 1007 of file chan_sip.c.

Referenced by add_sdp(), sip_handle_t38_reinvite(), and sip_set_udptl_peer().

const ast_string_field uri

Definition at line 987 of file chan_sip.c.

Referenced by build_reply_digest(), function_sipchaninfo_read(), initreqprep(), reqprep(), sip_new(), sip_show_channel(), and transmit_register().

const ast_string_field useragent

Definition at line 987 of file chan_sip.c.

Referenced by function_sipchaninfo_read(), handle_request_subscribe(), sip_new(), and sip_show_channel().

const ast_string_field username

Definition at line 987 of file chan_sip.c.

Referenced by __sip_show_channels(), build_reply_digest(), handle_request_invite(), handle_request_subscribe(), handle_response_register(), initreqprep(), notify_extenstate_update(), sip_call(), sip_hangup(), sip_new(), sip_poke_peer(), sip_show_channel(), transmit_response_with_auth(), and update_call_counter().

struct ast_dsp* vad

Voice Activation Detection dsp

Definition at line 1052 of file chan_sip.c.

Referenced by sip_dtmfmode(), sip_hangup(), sip_new(), and sip_rtp_read().

char via[128]

Via: header

Definition at line 988 of file chan_sip.c.

Referenced by build_via(), initreqprep(), reqprep(), and transmit_register().

struct sockaddr_in vredirip

Where our Video RTP should be going if not to us

Definition at line 1020 of file chan_sip.c.

Referenced by add_sdp(), and sip_set_rtp_peer().

struct ast_rtp* vrtp

Video RTP session

Definition at line 1058 of file chan_sip.c.

Referenced by __sip_destroy(), acf_channel_read(), add_sdp(), create_addr_from_peer(), do_setnat(), handle_request_invite(), handle_response_invite(), process_sdp(), process_sdp_a_video(), sip_get_vrtp_peer(), sip_indicate(), sip_new(), sip_rtp_read(), sip_set_rtp_peer(), sip_write(), and stop_media_flows().

int waitid

Wait ID for scheduler after 491 or other delays

Definition at line 1043 of file chan_sip.c.

Referenced by check_pendings(), handle_response_invite(), and sip_reinvite_retry().


The documentation for this struct was generated from the following file:
Generated on Sat Aug 6 00:40:09 2011 for Asterisk - the Open Source PBX by  doxygen 1.4.7