#include <stdarg.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <asterisk/lock.h>
Include dependency graph for manager.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | mansession |
struct | message |
struct | manager_action |
Defines | |
#define | DEFAULT_MANAGER_PORT 5038 /* Default port for Asterisk management via TCP */ |
#define | EVENT_FLAG_SYSTEM (1 << 0) /* System events such as module load/unload */ |
#define | EVENT_FLAG_CALL (1 << 1) /* Call event, such as state change, etc */ |
#define | EVENT_FLAG_LOG (1 << 2) /* Log events */ |
#define | EVENT_FLAG_VERBOSE (1 << 3) /* Verbose messages */ |
#define | EVENT_FLAG_COMMAND (1 << 4) /* Ability to read/set commands */ |
#define | EVENT_FLAG_AGENT (1 << 5) /* Ability to read/set agent info */ |
#define | EVENT_FLAG_USER (1 << 6) /* Ability to read/set user info */ |
#define | MAX_HEADERS 80 |
#define | MAX_LEN 256 |
#define | ast_manager_register(a, b, c, d) ast_manager_register2(a, b, c, d, NULL) |
Functions | |
int | ast_carefulwrite (int fd, char *s, int len, int timeoutms) |
int | ast_manager_register2 (char *action, int authority, int(*func)(struct mansession *s, struct message *m), char *synopsis, char *description) |
int | ast_manager_unregister (char *action) |
int | manager_event (int category, char *event, char *contents,...) __attribute__((format(printf |
char * | astman_get_header (struct message *m, char *var) |
void | astman_send_error (struct mansession *s, struct message *m, char *error) |
void | astman_send_response (struct mansession *s, struct message *m, char *resp, char *msg) |
void | astman_send_ack (struct mansession *s, struct message *m, char *msg) |
int | init_manager (void) |
int | reload_manager (void) |
|
Definition at line 97 of file manager.h. Referenced by init_manager(). |
|
Definition at line 42 of file manager.h. Referenced by init_manager(). |
|
|
|
Definition at line 45 of file manager.h. Referenced by ast_change_name(), ast_channel_bridge(), ast_do_masquerade(), ast_hangup(), ast_pbx_run(), ast_request(), ast_set_callerid(), ast_setstate(), and init_manager(). |
|
Definition at line 48 of file manager.h. Referenced by init_manager(). |
|
|
|
Definition at line 44 of file manager.h. Referenced by reload_manager(). |
|
|
|
|
|
|
|
|
|
Definition at line 83 of file manager.c. References pollfd::events, pollfd::fd, poll(), POLLOUT, and s. Referenced by manager_event().
|
|
Definition at line 1197 of file manager.c. References ast_log(), ast_mutex_unlock, description(), LOG_WARNING, and malloc. Referenced by init_manager().
|
|
Definition at line 1129 of file manager.c. References ast_mutex_lock, ast_mutex_unlock, ast_verbose(), free, option_verbose, and VERBOSE_PREFIX_2.
|
|
Definition at line 230 of file manager.c. References message::hdrcount, and message::headers. Referenced by astman_send_error(), and astman_send_response().
|
|
Definition at line 266 of file manager.c. References astman_send_response(), and s.
|
|
Definition at line 241 of file manager.c. References ast_cli(), ast_mutex_lock, ast_mutex_unlock, astman_get_header(), and s.
|
|
Definition at line 252 of file manager.c. References ast_cli(), ast_mutex_lock, ast_mutex_unlock, astman_get_header(), and s. Referenced by astman_send_ack().
|
|
Definition at line 1221 of file manager.c. References ast_cli_register(), ast_destroy(), ast_extension_state_add(), ast_load(), ast_log(), ast_manager_register, ast_manager_register2(), ast_true(), ast_variable_retrieve(), ast_verbose(), DEFAULT_MANAGER_PORT, EVENT_FLAG_CALL, EVENT_FLAG_COMMAND, LOG_NOTICE, LOG_WARNING, and option_verbose. Referenced by main(), and reload_manager().
|
|
Referenced by ast_change_name(), ast_channel_bridge(), ast_do_masquerade(), ast_hangup(), ast_pbx_run(), ast_request(), ast_set_callerid(), ast_setstate(), and reload_manager(). |
|
Definition at line 1332 of file manager.c. References EVENT_FLAG_SYSTEM, init_manager(), and manager_event(). Referenced by ast_module_reload().
|