Asterisk - The Open Source Telephony Project  18.5.0
Data Structures | Data Fields
mansession_session Struct Reference
Collaboration diagram for mansession_session:
Collaboration graph
[legend]

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
 
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 1581 of file manager.c.

Field Documentation

◆ addr

struct ast_sockaddr addr

◆ authenticated

int authenticated

◆ authstart

time_t authstart

Definition at line 1605 of file manager.c.

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

◆ blackfilters

struct ao2_container* blackfilters

Manager event filters - black list

Definition at line 1600 of file manager.c.

Referenced by action_filter(), authenticate(), build_mansession(), match_filter(), and session_destructor().

◆ challenge

char challenge[10]

Authentication challenge

Definition at line 1593 of file manager.c.

Referenced by action_challenge(), authenticate(), and report_failed_challenge_response().

◆ chanvars

struct ast_variable* chanvars

Channel variables to set for originate

Definition at line 1601 of file manager.c.

Referenced by action_originate(), authenticate(), and session_destructor().

◆ datastores

◆ inbuf

char inbuf[1025]

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

Definition at line 1597 of file manager.c.

Referenced by do_message(), and get_input().

◆ inlen

int inlen

number of buffered bytes

Definition at line 1598 of file manager.c.

Referenced by get_input().

◆ inuse

int inuse

number of HTTP sessions using this entry

Definition at line 1585 of file manager.c.

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

◆ last_ev

struct eventqent* last_ev

last event processed.

Definition at line 1603 of file manager.c.

Referenced by action_waitevent(), auth_http_callback(), process_events(), session_destructor(), and session_do().

◆ list

struct { ... } list

◆ managerid

uint32_t managerid

◆ nc

unsigned long nc

incremental nonce counter

Definition at line 1609 of file manager.c.

Referenced by auth_http_callback().

◆ needdestroy

int needdestroy

Whether an HTTP session should be destroyed

Definition at line 1586 of file manager.c.

Referenced by action_waitevent(), auth_http_callback(), find_session(), and generic_http_callback().

◆ next

struct mansession_session* next

Definition at line 1612 of file manager.c.

◆ noncetime

time_t noncetime

Timer for nonce value expiration

Definition at line 1607 of file manager.c.

Referenced by auth_http_callback().

◆ notify_lock

ast_mutex_t notify_lock

Lock for notifying this session of events

Definition at line 1610 of file manager.c.

Referenced by __manager_event_sessions_va(), action_waitevent(), build_mansession(), generic_http_callback(), get_input(), and session_destructor().

◆ oldnonce

unsigned long oldnonce

Stale nonce value

Definition at line 1608 of file manager.c.

Referenced by auth_http_callback(), and find_session_by_nonce().

◆ pending_event

int pending_event

Pending events indicator in case when waiting_thread is NULL

Definition at line 1606 of file manager.c.

Referenced by __manager_event_sessions_va(), and get_input().

◆ readperm

int readperm

◆ send_events

int send_events

◆ sessionstart

time_t sessionstart

Session start time

Definition at line 1589 of file manager.c.

Referenced by auth_http_callback(), authenticate(), and handle_showmanconn().

◆ sessionstart_tv

struct timeval sessionstart_tv

◆ sessiontimeout

time_t sessiontimeout

Session timeout if HTTP

Definition at line 1591 of file manager.c.

Referenced by action_waitevent(), auth_http_callback(), generic_http_callback(), and purge_sessions().

◆ stream

struct ast_iostream* stream

◆ username

char username[80]

◆ waiting_thread

pthread_t waiting_thread

Sleeping thread using this descriptor

Definition at line 1587 of file manager.c.

Referenced by __manager_event_sessions_va(), action_waitevent(), build_mansession(), generic_http_callback(), and get_input().

◆ whitefilters

struct ao2_container* whitefilters

Manager event filters - white list

Definition at line 1599 of file manager.c.

Referenced by action_filter(), authenticate(), build_mansession(), match_filter(), and session_destructor().

◆ writeperm

int writeperm

◆ writetimeout

int writetimeout

Timeout for ast_carefulwrite()

Definition at line 1604 of file manager.c.

Referenced by auth_http_callback(), authenticate(), build_mansession(), and send_string().


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