Asterisk - The Open Source Telephony Project
21.4.1
|
The Asterisk Management Interface - AMI (MWI event handling) More...
#include "asterisk.h"
#include "asterisk/manager.h"
#include "asterisk/app.h"
#include "asterisk/mwi.h"
#include "asterisk/channel.h"
#include "asterisk/stasis_message_router.h"
#include "asterisk/stasis.h"
Go to the source code of this file.
Functions | |
static int | exclude_event_cb (const char *key) |
Callback function used by mwi_app_event_cb to weed out "Event" keys. | |
int | manager_mwi_init (void) |
Initialize support for AMI MWI events. More... | |
static void | manager_mwi_shutdown (void) |
static void | mwi_app_event_cb (void *data, struct stasis_subscription *sub, struct stasis_message *message) |
Generic MWI event callback used for one-off events from voicemail modules. | |
static void | mwi_update_cb (void *data, struct stasis_subscription *sub, struct stasis_message *message) |
Variables | |
struct stasis_message_router * | mwi_state_router |
static struct stasis_forward * | topic_forwarder |
The Stasis Message Bus API subscription returned by the forwarding of the MWI topic to the manager topic. | |
The Asterisk Management Interface - AMI (MWI event handling)
Definition in file manager_mwi.c.
int manager_mwi_init | ( | void | ) |
Initialize support for AMI MWI events.
0 | on success |
non-zero | on error |
Definition at line 155 of file manager_mwi.c.
References ast_manager_get_message_router(), ast_manager_get_topic(), ast_mwi_state_type(), ast_mwi_topic_all(), ast_mwi_vm_app_type(), ast_register_cleanup(), manager_topic, mwi_app_event_cb(), stasis_forward_all(), and stasis_message_router_add().