Asterisk - The Open Source Telephony Project  21.4.1
Data Structures | Data Fields
mansession_session Struct Reference

Data Structures

struct  mansession_datastores
 

Data Fields

struct ast_sockaddr addr
 
int authenticated
 
time_t authstart
 
struct ao2_containerblackfilters
 
char challenge [10]
 
struct ast_variablechanvars
 
struct mansession_session::mansession_datastores datastores
 
char inbuf [1025]
 
int inlen
 
int inuse
 
unsigned int kicked:1
 
struct eventqentlast_ev
 
struct {
   struct mansession_session *   next
 
list
 
uint32_t managerid
 
unsigned long nc
 
int needdestroy
 
time_t noncetime
 
ast_mutex_t notify_lock
 
unsigned long oldnonce
 
int pending_event
 
int readperm
 
int send_events
 
time_t sessionstart
 
struct timeval sessionstart_tv
 
time_t sessiontimeout
 
struct ast_iostreamstream
 
char username [80]
 
pthread_t waiting_thread
 
struct ao2_containerwhitefilters
 
int writeperm
 
int writetimeout
 

Detailed Description

Definition at line 1740 of file manager.c.

Field Documentation

struct ast_sockaddr addr
Todo:
XXX need to document which fields it is protecting

address we are connecting from

Definition at line 1742 of file manager.c.

Referenced by ast_manager_hangup_helper(), build_mansession(), generic_http_callback(), get_input(), handle_showmanconn(), purge_sessions(), and session_do().

int authenticated

Authentication status

Definition at line 1753 of file manager.c.

Referenced by astman_is_authed(), generic_http_callback(), get_input(), process_events(), process_message(), purge_sessions(), and session_do().

struct ao2_container* blackfilters

Manager event filters - black list

Definition at line 1759 of file manager.c.

Referenced by action_filter(), and build_mansession().

char challenge[10]

Authentication challenge

Definition at line 1752 of file manager.c.

struct ast_variable* chanvars

Channel variables to set for originate

Definition at line 1760 of file manager.c.

char inbuf[1025]

Buffer - we use the extra byte to add a '\0' and simplify parsing

Definition at line 1756 of file manager.c.

Referenced by get_input().

int inlen

number of buffered bytes

Definition at line 1757 of file manager.c.

Referenced by get_input().

int inuse

number of HTTP sessions using this entry

Definition at line 1744 of file manager.c.

Referenced by find_session(), generic_http_callback(), handle_showmanconn(), and purge_sessions().

unsigned int kicked

Flag set if session is forcibly kicked

Definition at line 1769 of file manager.c.

Referenced by get_input(), handle_kickmanconn(), and session_do().

struct eventqent* last_ev

last event processed.

Definition at line 1762 of file manager.c.

Referenced by process_events(), and session_do().

uint32_t managerid
unsigned long nc

incremental nonce counter

Definition at line 1768 of file manager.c.

int needdestroy

Whether an HTTP session should be destroyed

Definition at line 1745 of file manager.c.

Referenced by find_session(), and generic_http_callback().

time_t noncetime

Timer for nonce value expiration

Definition at line 1766 of file manager.c.

ast_mutex_t notify_lock

Lock for notifying this session of events

Definition at line 1770 of file manager.c.

Referenced by build_mansession(), generic_http_callback(), get_input(), and handle_kickmanconn().

unsigned long oldnonce

Stale nonce value

Definition at line 1767 of file manager.c.

Referenced by find_session_by_nonce().

int pending_event

Pending events indicator in case when waiting_thread is NULL

Definition at line 1765 of file manager.c.

Referenced by get_input().

int readperm

Authorization for reading

Definition at line 1754 of file manager.c.

Referenced by astman_verify_session_readpermissions(), handle_showmanconn(), and process_events().

int send_events

XXX what ?

Definition at line 1761 of file manager.c.

Referenced by build_mansession(), generic_http_callback(), process_events(), and set_eventmask().

time_t sessionstart

Session start time

Definition at line 1748 of file manager.c.

Referenced by handle_showmanconn().

struct timeval sessionstart_tv

Session start time

Definition at line 1749 of file manager.c.

time_t sessiontimeout

Session timeout if HTTP

Definition at line 1750 of file manager.c.

Referenced by generic_http_callback(), and purge_sessions().

struct ast_iostream* stream
char username[80]
pthread_t waiting_thread

Sleeping thread using this descriptor

Definition at line 1746 of file manager.c.

Referenced by build_mansession(), generic_http_callback(), get_input(), and handle_kickmanconn().

struct ao2_container* whitefilters

Manager event filters - white list

Definition at line 1758 of file manager.c.

Referenced by action_filter(), and build_mansession().

int writeperm

Authorization for writing

Definition at line 1755 of file manager.c.

Referenced by action_status(), astman_verify_session_writepermissions(), handle_showmanconn(), and process_message().

int writetimeout

Timeout for ast_carefulwrite()

Definition at line 1763 of file manager.c.

Referenced by build_mansession(), and send_string().


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