Fri Sep 25 19:28:48 2009

Asterisk developer's documentation


mansession Struct Reference
[AMI functions]

Collaboration diagram for mansession:

Collaboration graph
[legend]

Data Fields

ast_mutex_t __lock
int authenticated
char challenge [10]
int displaysystemname
struct eventqenteventq
int fd
char inbuf [1024]
int inlen
int inuse
unsigned long managerid
int needdestroy
struct ast_dynamic_str * outputstr
int readperm
int send_events
time_t sessiontimeout
struct sockaddr_in sin
pthread_t t
char username [80]
pthread_t waiting_thread
int writeperm
int writetimeout

Detailed Description

Definition at line 144 of file manager.c.


Field Documentation

Authentication status

Definition at line 170 of file manager.c.

Referenced by accept_thread(), generic_http_callback(), process_events(), process_message(), and session_do().

char challenge[10]

Authentication challenge

Definition at line 168 of file manager.c.

Referenced by authenticate(), and process_message().

Add system name to manager responses and events

Definition at line 179 of file manager.c.

Referenced by authenticate().

struct eventqent* eventq [read]

Definition at line 181 of file manager.c.

Referenced by accept_thread(), action_waitevent(), do_message(), free_session(), and process_events().

int fd

char inbuf[1024]

Buffer

Definition at line 176 of file manager.c.

Referenced by do_message(), and get_input().

int inlen

Definition at line 177 of file manager.c.

Referenced by get_input().

int inuse

Whether an HTTP manager is in use

Definition at line 154 of file manager.c.

Referenced by accept_thread(), find_session(), and generic_http_callback().

unsigned long managerid

Whether an HTTP session should be destroyed

Definition at line 156 of file manager.c.

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

struct ast_dynamic_str* outputstr [read]

Output from manager interface

Definition at line 164 of file manager.c.

Referenced by astman_append(), free_session(), generic_http_callback(), and process_events().

int readperm

Authorization for reading

Definition at line 172 of file manager.c.

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

Session timeout if HTTP

Definition at line 162 of file manager.c.

Referenced by accept_thread(), action_waitevent(), find_session(), generic_http_callback(), and process_message().

struct sockaddr_in sin [read]

pthread_t t

Execution thread

Definition at line 146 of file manager.c.

Referenced by accept_thread().

char username[80]

Logged in username

Definition at line 166 of file manager.c.

Referenced by accept_thread(), authenticate(), generic_http_callback(), handle_showmanconn(), process_message(), and session_do().

pthread_t waiting_thread

Whether an HTTP session has someone waiting on events

Definition at line 158 of file manager.c.

Referenced by accept_thread(), action_waitevent(), generic_http_callback(), get_input(), and manager_event().

int writeperm

Authorization for writing

Definition at line 174 of file manager.c.

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

Definition at line 183 of file manager.c.

Referenced by accept_thread(), astman_append(), authenticate(), and process_events().


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

Generated on Fri Sep 25 19:28:48 2009 for Asterisk - the Open Source PBX by  doxygen 1.5.5