Wed Apr 6 11:30:13 2011

Asterisk developer's documentation


mansession_session Struct Reference
[AMI functions]


Data Fields

int authenticated
ao2_containerblackfilters
char challenge [10]
mansession_session::mansession_datastores datastores
FILE * f
int fd
char inbuf [1025]
int inlen
int inuse
eventqentlast_ev
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
timeval sessionstart_tv
time_t sessiontimeout
sockaddr_in sin
char username [80]
pthread_t waiting_thread
ao2_containerwhitefilters
int writeperm
int writetimeout

Data Structures

struct  mansession_datastores

Detailed Description

Definition at line 931 of file manager.c.


Field Documentation

int authenticated

Authentication status

Definition at line 945 of file manager.c.

Referenced by action_login(), astman_is_authed(), process_events(), process_message(), and purge_sessions().

struct ao2_container* blackfilters

Definition at line 957 of file manager.c.

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

char challenge[10]

Authentication challenge

Definition at line 944 of file manager.c.

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

struct mansession_session::mansession_datastores datastores

Data stores on the session

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

FILE* f

fdopen() on the underlying fd

Definition at line 934 of file manager.c.

Referenced by astman_append(), process_events(), send_string(), session_destructor(), and session_do().

int fd

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

Definition at line 935 of file manager.c.

Referenced by send_string(), and session_do().

char inbuf[1025]

Buffer

Definition at line 948 of file manager.c.

Referenced by do_message(), and get_input().

int inlen

number of buffered bytes

Definition at line 950 of file manager.c.

Referenced by get_input().

int inuse

number of HTTP sessions using this entry

Definition at line 936 of file manager.c.

Referenced by check_manager_session_inuse(), and purge_sessions().

struct eventqent* last_ev

last event processed.

Definition at line 952 of file manager.c.

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

struct { ... } list

uint32_t managerid

Unique manager identifier, 0 for AMI sessions

Definition at line 939 of file manager.c.

Referenced by action_login(), and action_waitevent().

unsigned long nc

incremental nonce counter

Definition at line 959 of file manager.c.

int needdestroy

Whether an HTTP session should be destroyed

Definition at line 937 of file manager.c.

Referenced by action_waitevent().

struct mansession_session* next

Definition at line 961 of file manager.c.

time_t noncetime

Timer for nonce value expiration

Definition at line 955 of file manager.c.

unsigned long oldnonce

Stale nonce value

Definition at line 958 of file manager.c.

int pending_event

Pending events indicator in case when waiting_thread is NULL

Definition at line 954 of file manager.c.

int readperm

Authorization for reading

Definition at line 946 of file manager.c.

Referenced by authenticate(), and process_events().

int send_events

XXX what ?

Definition at line 951 of file manager.c.

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

time_t sessionstart

Session start time

Definition at line 940 of file manager.c.

Referenced by authenticate().

struct timeval sessionstart_tv

Session start time

Definition at line 941 of file manager.c.

Referenced by authenticate(), report_auth_success(), report_failed_acl(), report_failed_challenge_response(), report_inval_password(), report_invalid_user(), report_req_bad_format(), report_req_not_allowed(), and report_session_limit().

time_t sessiontimeout

Session timeout if HTTP

Definition at line 942 of file manager.c.

Referenced by action_waitevent(), and purge_sessions().

struct sockaddr_in sin

address we are connecting from

Definition at line 933 of file manager.c.

Referenced by action_login(), authenticate(), purge_sessions(), report_auth_success(), report_failed_acl(), report_failed_challenge_response(), report_inval_password(), report_invalid_user(), report_req_bad_format(), report_req_not_allowed(), report_session_limit(), and session_do().

char username[80]

Logged in username

Definition at line 943 of file manager.c.

Referenced by action_login(), authenticate(), manager_displayconnects(), mansession_cmp_fn(), purge_sessions(), report_auth_success(), report_failed_challenge_response(), report_req_bad_format(), report_req_not_allowed(), and report_session_limit().

pthread_t waiting_thread

Sleeping thread using this descriptor

Definition at line 938 of file manager.c.

Referenced by action_waitevent().

struct ao2_container* whitefilters

Definition at line 956 of file manager.c.

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

int writeperm

Authorization for writing

Definition at line 947 of file manager.c.

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

int writetimeout

Timeout for ast_carefulwrite()

Definition at line 953 of file manager.c.

Referenced by authenticate(), and send_string().


The documentation for this struct was generated from the following file:
Generated on Wed Apr 6 11:30:13 2011 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7