Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
The Asterisk Management Interface - AMI (endpoint handling) More...
#include "asterisk.h"
#include "asterisk/callerid.h"
#include "asterisk/channel.h"
#include "asterisk/manager.h"
#include "asterisk/stasis_message_router.h"
#include "asterisk/pbx.h"
#include "asterisk/stasis_endpoints.h"
Go to the source code of this file.
Functions | |
static void | endpoint_state_cb (void *data, struct stasis_subscription *sub, struct stasis_message *message) |
int | manager_endpoints_init (void) |
Initialize support for AMI endpoint events. More... | |
static void | manager_endpoints_shutdown (void) |
Variables | |
static struct stasis_message_router * | endpoint_router |
The Asterisk Management Interface - AMI (endpoint handling)
Definition in file manager_endpoints.c.
|
static |
Definition at line 46 of file manager_endpoints.c.
References ast_manager_get_topic(), and stasis_publish().
Referenced by manager_endpoints_init().
int manager_endpoints_init | ( | void | ) |
Initialize support for AMI endpoint events.
0 | on success. |
non-zero | on error. |
Definition at line 52 of file manager_endpoints.c.
References ast_endpoint_contact_state_type(), ast_endpoint_state_type(), ast_endpoint_topic_all_cached(), ast_register_cleanup(), endpoint_router, endpoint_state_cb(), manager_endpoints_shutdown(), NULL, stasis_message_router_add(), and stasis_message_router_create.
Referenced by subscribe_all().
|
static |
Definition at line 40 of file manager_endpoints.c.
References endpoint_router, NULL, and stasis_message_router_unsubscribe_and_join().
Referenced by manager_endpoints_init().
|
static |
Definition at line 38 of file manager_endpoints.c.
Referenced by manager_endpoints_init(), and manager_endpoints_shutdown().