Tue Aug 24 20:38:28 2010

Asterisk developer's documentation


sip_peer Struct Reference

Structure for SIP peer data, we place calls to peers if registered or fixed IP address (host). More...

Collaboration diagram for sip_peer:
Collaboration graph
[legend]

Public Member Functions

 AST_DECLARE_STRING_FIELDS (AST_STRING_FIELD(secret);AST_STRING_FIELD(md5secret);AST_STRING_FIELD(remotesecret);AST_STRING_FIELD(context);AST_STRING_FIELD(subscribecontext);AST_STRING_FIELD(username);AST_STRING_FIELD(accountcode);AST_STRING_FIELD(tohost);AST_STRING_FIELD(regexten);AST_STRING_FIELD(fromuser);AST_STRING_FIELD(fromdomain);AST_STRING_FIELD(fullcontact);AST_STRING_FIELD(cid_num);AST_STRING_FIELD(cid_name);AST_STRING_FIELD(vmexten);AST_STRING_FIELD(language);AST_STRING_FIELD(mohinterpret);AST_STRING_FIELD(mohsuggest);AST_STRING_FIELD(parkinglot);AST_STRING_FIELD(useragent);)

Data Fields

enum transfermodes allowtransfer
int amaflags
struct sip_auth * auth
int busy_level
int call_limit
int callingpres
enum sip_transport default_outbound_transport
struct ast_flags flags [2]
int inRinging
int inUse
int lastmsgssent
char name [80]
int onHold
struct ast_codec_pref prefs
unsigned int sipoptions
struct sip_socket socket
int t38_maxdatagram
unsigned int transports:3

Detailed Description

Structure for SIP peer data, we place calls to peers if registered or fixed IP address (host).

Definition at line 1827 of file chan_sip.c.


Member Function Documentation

AST_DECLARE_STRING_FIELDS ( AST_STRING_FIELD(secret);AST_STRING_FIELD(md5secret);AST_STRING_FIELD(remotesecret);AST_STRING_FIELD(context);AST_STRING_FIELD(subscribecontext);AST_STRING_FIELD(username);AST_STRING_FIELD(accountcode);AST_STRING_FIELD(tohost);AST_STRING_FIELD(regexten);AST_STRING_FIELD(fromuser);AST_STRING_FIELD(fromdomain);AST_STRING_FIELD(fullcontact);AST_STRING_FIELD(cid_num);AST_STRING_FIELD(cid_name);AST_STRING_FIELD(vmexten);AST_STRING_FIELD(language);AST_STRING_FIELD(mohinterpret);AST_STRING_FIELD(mohsuggest);AST_STRING_FIELD(parkinglot);AST_STRING_FIELD(useragent);   ) 

Field Documentation

int amaflags

AMA Flags (for billing)

Definition at line 1856 of file chan_sip.c.

Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), and sip_show_user().

struct sip_auth* auth [read]

Realm authentication list

Definition at line 1855 of file chan_sip.c.

Referenced by _sip_show_peer(), build_peer(), create_addr_from_peer(), and sip_destroy_peer().

Level of active channels where we signal busy

Definition at line 1863 of file chan_sip.c.

Referenced by _sip_show_peer(), build_peer(), function_sippeer(), and sip_devicestate().

Calling id presentation

Definition at line 1857 of file chan_sip.c.

Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), and sip_show_user().

Peer Registration may change the default outbound transport. If register expires, default should be reset. to this value

Definition at line 1852 of file chan_sip.c.

Referenced by build_peer(), expire_register(), parse_register_contact(), and set_peer_defaults().

struct ast_flags flags[2] [read]
int inRinging

Number of calls ringing

Definition at line 1859 of file chan_sip.c.

Referenced by sip_devicestate(), sip_show_inuse(), and update_call_counter().

int inUse

Number of calls in use

Definition at line 1858 of file chan_sip.c.

Referenced by function_sippeer(), sip_devicestate(), sip_show_inuse(), and update_call_counter().

Definition at line 1866 of file chan_sip.c.

Referenced by _sip_show_peer(), build_peer(), and register_verify().

char name[80]
int onHold

Peer has someone on hold

Definition at line 1860 of file chan_sip.c.

Referenced by sip_devicestate(), sip_peer_hold(), and sip_show_inuse().

struct ast_codec_pref prefs [read]

SIP Refer restriction scheme codec prefs

Definition at line 1865 of file chan_sip.c.

Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), function_sippeer(), register_verify(), set_peer_defaults(), sip_show_user(), and temp_peer().

unsigned int sipoptions

Supported SIP options

Definition at line 1867 of file chan_sip.c.

Referenced by _sip_show_peer(), check_peer_ok(), and parse_register_contact().

struct sip_socket socket [read]

T.38 FaxMaxDatagram override

Definition at line 1862 of file chan_sip.c.

Referenced by _sip_show_peer(), build_peer(), check_peer_ok(), create_addr_from_peer(), and set_peer_defaults().

unsigned int transports

Transports (enum sip_transport) that are acceptable for this peer

Definition at line 1854 of file chan_sip.c.

Referenced by _sip_show_peer(), build_peer(), find_peer(), parse_register_contact(), peer_ipcmp_cb(), and set_peer_defaults().


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

Generated on 24 Aug 2010 for Asterisk - the Open Source PBX by  doxygen 1.6.1