#include <stdio.h>#include <stdlib.h>#include <pthread.h>#include <string.h>#include <sys/time.h>#include <sys/types.h>#include <netdb.h>#include <sys/socket.h>#include <netinet/in.h>#include <netinet/tcp.h>#include <arpa/inet.h>#include <signal.h>#include <errno.h>#include <unistd.h>#include <sys/poll.h>#include <asterisk/channel.h>#include <asterisk/file.h>#include <asterisk/manager.h>#include <asterisk/config.h>#include <asterisk/lock.h>#include <asterisk/logger.h>#include <asterisk/options.h>#include <asterisk/cli.h>#include <asterisk/app.h>#include <asterisk/pbx.h>#include <asterisk/md5.h>#include <asterisk/acl.h>#include <asterisk/utils.h>Include dependency graph for manager.c:

Go to the source code of this file.
Data Structures | |
| struct | fast_originate_helper |
| struct | permalias |
Functions | |
| AST_MUTEX_DEFINE_STATIC (sessionlock) | |
| AST_MUTEX_DEFINE_STATIC (actionlock) | |
| int | ast_carefulwrite (int fd, char *s, int len, int timeoutms) |
| 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 | manager_event (int category, char *event, char *fmt,...) |
| int | ast_manager_unregister (char *action) |
| int | ast_manager_register2 (char *action, int auth, int(*func)(struct mansession *s, struct message *m), char *synopsis, char *description) |
| int | init_manager (void) |
| int | reload_manager (void) |
|
||||||||||||||||||||
|
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().
|
|
||||||||||||||||||||
|
Definition at line 1102 of file manager.c. References ast_carefulwrite(), ast_cli(), ast_mutex_lock, ast_mutex_unlock, and s.
|
|
|
Definition at line 1332 of file manager.c. References EVENT_FLAG_SYSTEM, init_manager(), and manager_event(). Referenced by ast_module_reload().
|
1.3.7