Fri Mar 8 17:30:16 2019

Asterisk developer's documentation


mansession_session Struct Reference
[AMI functions]

Data Fields

ast_mutex_t __lock
int authenticated
time_t authstart
char challenge [10]
int displaysystemname
struct eventqenteventq
int fd
char inbuf [1024]
int inlen
int inuse
uint32_t managerid
int needdestroy
struct ast_dynamic_stroutputstr
int pending_event
int readperm
int send_events
time_t sessiontimeout
struct sockaddr_in sin
char username [80]
pthread_t waiting_thread
int writeperm
int writetimeout

Detailed Description

Definition at line 195 of file manager.c.


Field Documentation

Authentication status

Definition at line 219 of file manager.c.

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

time_t authstart

Definition at line 233 of file manager.c.

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

char challenge[10]

Authentication challenge

Definition at line 217 of file manager.c.

Referenced by authenticate(), and process_message().

Add system name to manager responses and events

Definition at line 228 of file manager.c.

Referenced by authenticate().

struct eventqent* eventq [read]

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

Referenced by do_message(), and get_input().

int inlen

Definition at line 226 of file manager.c.

Referenced by get_input().

int inuse

Whether an HTTP manager is in use

Definition at line 203 of file manager.c.

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

uint32_t managerid

Whether an HTTP session should be destroyed

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

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

Pending events indicator in case when waiting_thread is NULL

Definition at line 234 of file manager.c.

Referenced by get_input(), and manager_event().

int readperm

Authorization for reading

Definition at line 221 of file manager.c.

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

Session timeout if HTTP

Definition at line 211 of file manager.c.

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

struct sockaddr_in sin [read]
char username[80]

Logged in username

Definition at line 215 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 207 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 223 of file manager.c.

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


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

Generated on 8 Mar 2019 for Asterisk - the Open Source PBX by  doxygen 1.6.1