Asterisk - The Open Source Telephony Project GIT-master-5467495
Loading...
Searching...
No Matches
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 alert_pipe [2]
 
int authenticated
 
time_t authstart
 
char challenge [10]
 
struct ast_variablechanvars
 
struct mansession_session::mansession_datastores datastores
 
struct ao2_containerexcludefilters
 
pthread_t http_thread
 
ast_mutex_t http_thread_lock
 
char inbuf [1025]
 
struct ao2_containerincludefilters
 
int inlen
 
int inuse
 
unsigned int kicked:1
 
struct { 
 
   struct mansession_session *   next 
 
list 
 
uint32_t managerid
 
unsigned long nc
 
int needdestroy
 
time_t noncetime
 
unsigned long oldnonce
 
struct { 
 
   size_t   current 
 
   struct eventqent **   elems 
 
   size_t   max 
 
pending_events 
 
ast_mutex_t pending_events_lock
 
int readperm
 
int send_events
 
time_t sessionstart
 
struct timeval sessionstart_tv
 
time_t sessiontimeout
 
struct ast_iostreamstream
 
char username [80]
 
int writeperm
 
int writetimeout
 

Detailed Description

Definition at line 268 of file manager.c.

Field Documentation

◆ addr

struct ast_sockaddr addr

◆ alert_pipe

int alert_pipe[2]

Pipe for alerting this session

Definition at line 297 of file manager.c.

Referenced by action_waitevent_tcp(), build_mansession(), do_message(), and get_input().

◆ authenticated

int authenticated

Authentication status

Definition at line 282 of file manager.c.

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

◆ authstart

time_t authstart

Definition at line 292 of file manager.c.

Referenced by do_message(), and get_input().

◆ challenge

char challenge[10]

Authentication challenge

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

Referenced by action_originate(), and authenticate().

◆ current

size_t current

Definition at line 298 of file manager.c.

◆ datastores

◆ elems

struct eventqent* * elems

Definition at line 298 of file manager.c.

◆ excludefilters

struct ao2_container* excludefilters

Manager event filters - exclude list

Definition at line 288 of file manager.c.

Referenced by action_filter(), action_waitevent_http(), action_waitevent_tcp(), authenticate(), build_mansession(), and process_events().

◆ http_thread

pthread_t http_thread

HTTP thread waiting on this session

Definition at line 275 of file manager.c.

Referenced by action_waitevent_http(), and build_mansession().

◆ http_thread_lock

ast_mutex_t http_thread_lock

Lock for protecting the HTTP thread waiting on this session

Definition at line 274 of file manager.c.

Referenced by action_waitevent_http(), and build_mansession().

◆ inbuf

char inbuf[1025]

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

Definition at line 285 of file manager.c.

Referenced by do_message(), and get_input().

◆ includefilters

struct ao2_container* includefilters

Manager event filters - include list

Definition at line 287 of file manager.c.

Referenced by action_filter(), action_waitevent_http(), action_waitevent_tcp(), authenticate(), build_mansession(), and process_events().

◆ inlen

int inlen

number of buffered bytes

Definition at line 286 of file manager.c.

Referenced by get_input().

◆ inuse

int inuse

number of HTTP sessions using this entry

Definition at line 272 of file manager.c.

Referenced by check_manager_session_inuse().

◆ kicked

unsigned int kicked

Flag set if session is forcibly kicked

Definition at line 296 of file manager.c.

Referenced by action_waitevent_tcp(), and get_input().

◆ [struct]

struct { ... } list

◆ managerid

uint32_t managerid

Unique manager identifier, 0 for AMI sessions

Definition at line 276 of file manager.c.

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

◆ max

size_t max

Definition at line 298 of file manager.c.

◆ nc

unsigned long nc

incremental nonce counter

Definition at line 295 of file manager.c.

◆ needdestroy

int needdestroy

Whether an HTTP session should be destroyed

Definition at line 273 of file manager.c.

Referenced by action_waitevent_http().

◆ next

struct mansession_session* next

Definition at line 301 of file manager.c.

◆ noncetime

time_t noncetime

Timer for nonce value expiration

Definition at line 293 of file manager.c.

◆ oldnonce

unsigned long oldnonce

Stale nonce value

Definition at line 294 of file manager.c.

◆ [struct]

struct { ... } pending_events

Queue of pending events to send

Referenced by action_waitevent_http(), action_waitevent_tcp(), build_mansession(), and process_events().

◆ pending_events_lock

ast_mutex_t pending_events_lock

Lock for pending events queue

Definition at line 299 of file manager.c.

Referenced by action_waitevent_http(), action_waitevent_tcp(), build_mansession(), and process_events().

◆ readperm

int readperm

Authorization for reading

Definition at line 283 of file manager.c.

Referenced by action_waitevent_http(), authenticate(), and set_eventmask().

◆ send_events

int send_events

Event categories to send to this session

Definition at line 290 of file manager.c.

Referenced by action_login(), action_waitevent_http(), action_waitevent_tcp(), authenticate(), build_mansession(), process_events(), and set_eventmask().

◆ sessionstart

time_t sessionstart

Session start time

Definition at line 277 of file manager.c.

Referenced by authenticate().

◆ sessionstart_tv

struct timeval sessionstart_tv

◆ sessiontimeout

time_t sessiontimeout

Session timeout if HTTP

Definition at line 279 of file manager.c.

Referenced by action_waitevent_http().

◆ stream

struct ast_iostream* stream

AMI stream

Definition at line 271 of file manager.c.

Referenced by action_waitevent_tcp(), do_message(), get_input(), process_events(), and send_string().

◆ username

char username[80]

◆ writeperm

int writeperm

Authorization for writing

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

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


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