mansession_session Struct Reference
[AMI functions]

Collaboration diagram for mansession_session:

Collaboration graph
[legend]

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
FILE * f
int fd
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
unsigned long oldnonce
int pending_event
int readperm
int send_events
time_t sessionstart
struct timeval sessionstart_tv
time_t sessiontimeout
char username [80]
pthread_t waiting_thread
struct ao2_containerwhitefilters
int writeperm
int writetimeout

Data Structures

struct  mansession_datastores

Detailed Description

Definition at line 1457 of file manager.c.


Field Documentation

struct ast_sockaddr addr [read]

time_t authstart

Definition at line 1482 of file manager.c.

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

struct ao2_container* blackfilters [read]

Manager event filters - black list

Definition at line 1477 of file manager.c.

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

char challenge[10]

Authentication challenge

Definition at line 1470 of file manager.c.

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

struct ast_variable* chanvars [read]

Channel variables to set for originate

Definition at line 1478 of file manager.c.

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

FILE* f

int fd

descriptor used for output. Either the socket (AMI) or a temporary file (HTTP)

Definition at line 1461 of file manager.c.

Referenced by action_waitevent(), auth_http_callback(), build_mansession(), get_input(), handle_showmanconn(), send_string(), and session_do().

char inbuf[1025]

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

Definition at line 1474 of file manager.c.

Referenced by do_message(), and get_input().

int inlen

number of buffered bytes

Definition at line 1475 of file manager.c.

Referenced by get_input().

int inuse

struct eventqent* last_ev [read]

last event processed.

Definition at line 1480 of file manager.c.

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

struct { ... } list

uint32_t managerid

unsigned long nc

incremental nonce counter

Definition at line 1486 of file manager.c.

Referenced by auth_http_callback().

Whether an HTTP session should be destroyed

Definition at line 1463 of file manager.c.

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

struct mansession_session* next [read]

Definition at line 1488 of file manager.c.

time_t noncetime

Timer for nonce value expiration

Definition at line 1484 of file manager.c.

Referenced by auth_http_callback().

unsigned long oldnonce

Stale nonce value

Definition at line 1485 of file manager.c.

Referenced by auth_http_callback(), and find_session_by_nonce().

Pending events indicator in case when waiting_thread is NULL

Definition at line 1483 of file manager.c.

Referenced by __ast_manager_event_multichan(), and get_input().

int readperm

time_t sessionstart

Session start time

Definition at line 1466 of file manager.c.

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

struct timeval sessionstart_tv [read]

Session timeout if HTTP

Definition at line 1468 of file manager.c.

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

char username[80]

pthread_t waiting_thread

Sleeping thread using this descriptor

Definition at line 1464 of file manager.c.

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

struct ao2_container* whitefilters [read]

Manager event filters - white list

Definition at line 1476 of file manager.c.

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

int writeperm

Timeout for ast_carefulwrite()

Definition at line 1481 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:

Generated on Thu Apr 16 06:36:47 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6