Asterisk - The Open Source Telephony Project GIT-master-2de1a68
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
 
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 1705 of file manager.c.

Field Documentation

◆ addr

struct ast_sockaddr addr

◆ authenticated

int authenticated

Authentication status

Definition at line 1718 of file manager.c.

Referenced by action_login(), do_message(), get_input(), process_events(), and process_message().

◆ authstart

time_t authstart

Definition at line 1729 of file manager.c.

Referenced by do_message(), and get_input().

◆ blackfilters

struct ao2_container* blackfilters

Manager event filters - black list

Definition at line 1724 of file manager.c.

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

◆ challenge

char challenge[10]

Authentication challenge

Definition at line 1717 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 1725 of file manager.c.

Referenced by action_originate(), and authenticate().

◆ datastores

Data stores on the session

Referenced by astman_datastore_add(), astman_datastore_find(), and astman_datastore_remove().

◆ inbuf

char inbuf[1025]

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

Definition at line 1721 of file manager.c.

Referenced by do_message(), and get_input().

◆ inlen

int inlen

number of buffered bytes

Definition at line 1722 of file manager.c.

Referenced by get_input().

◆ inuse

int inuse

number of HTTP sessions using this entry

Definition at line 1709 of file manager.c.

Referenced by check_manager_session_inuse().

◆ kicked

unsigned int kicked

Flag set if session is forcibly kicked

Definition at line 1734 of file manager.c.

Referenced by get_input().

◆ last_ev

struct eventqent* last_ev

last event processed.

Definition at line 1727 of file manager.c.

Referenced by action_waitevent(), and process_events().

◆ 

struct { ... } list

◆ managerid

uint32_t managerid

Unique manager identifier, 0 for AMI sessions

Definition at line 1712 of file manager.c.

Referenced by action_login(), action_waitevent(), and ast_manager_hangup_helper().

◆ nc

unsigned long nc

incremental nonce counter

Definition at line 1733 of file manager.c.

◆ needdestroy

int needdestroy

Whether an HTTP session should be destroyed

Definition at line 1710 of file manager.c.

Referenced by action_waitevent().

◆ next

struct mansession_session* next

Definition at line 1737 of file manager.c.

◆ noncetime

time_t noncetime

Timer for nonce value expiration

Definition at line 1731 of file manager.c.

◆ notify_lock

ast_mutex_t notify_lock

Lock for notifying this session of events

Definition at line 1735 of file manager.c.

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

◆ oldnonce

unsigned long oldnonce

Stale nonce value

Definition at line 1732 of file manager.c.

◆ pending_event

int pending_event

Pending events indicator in case when waiting_thread is NULL

Definition at line 1730 of file manager.c.

Referenced by get_input().

◆ readperm

int readperm

Authorization for reading

Definition at line 1719 of file manager.c.

Referenced by action_login(), action_waitevent(), authenticate(), and process_events().

◆ send_events

int send_events

XXX what ?

Definition at line 1726 of file manager.c.

Referenced by action_login(), action_waitevent(), build_mansession(), process_events(), and set_eventmask().

◆ sessionstart

time_t sessionstart

Session start time

Definition at line 1713 of file manager.c.

Referenced by authenticate().

◆ sessionstart_tv

struct timeval sessionstart_tv

◆ sessiontimeout

time_t sessiontimeout

Session timeout if HTTP

Definition at line 1715 of file manager.c.

Referenced by action_waitevent().

◆ stream

struct ast_iostream* stream

AMI stream

Definition at line 1708 of file manager.c.

Referenced by action_waitevent(), get_input(), process_events(), and send_string().

◆ username

char username[80]

◆ waiting_thread

pthread_t waiting_thread

Sleeping thread using this descriptor

Definition at line 1711 of file manager.c.

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

◆ whitefilters

struct ao2_container* whitefilters

Manager event filters - white list

Definition at line 1723 of file manager.c.

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

◆ writeperm

int writeperm

Authorization for writing

Definition at line 1720 of file manager.c.

Referenced by action_getvar(), action_listcommands(), action_originate(), action_status(), authenticate(), and process_message().

◆ writetimeout

int writetimeout

Timeout for ast_carefulwrite()

Definition at line 1728 of file manager.c.

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


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