29 #include "asterisk/stasis_message_router.h"
30 #include "asterisk/stasis_system.h"
37 static void manager_system_shutdown(
void)
39 stasis_forward_cancel(topic_forwarder);
40 topic_forwarder = NULL;
54 if (!message_router) {
63 if (!topic_forwarder) {
Asterisk main include file. File version handling, generic pbx functions.
struct stasis_topic * ast_system_topic(void)
A Stasis Message Bus API topic which publishes messages regarding system changes. ...
int manager_system_init(void)
Initialize support for AMI system events.
static struct stasis_topic * system_topic
The Stasis Message Bus API topic for system level changes.
Stasis Message Bus API. See Stasis Message Bus API for detailed documentation.
static struct stasis_forward * topic_forwarder
The Stasis Message Bus API subscription returned by the forwarding of the system topic to the manager...
static struct stasis_topic * manager_topic
A stasis_topic that all topics AMI cares about will be forwarded to.
int ast_register_cleanup(void(*func)(void))
Register a function to be executed before Asterisk gracefully exits.
struct stasis_message_router * ast_manager_get_message_router(void)
Get the stasis_message_router for AMI.
struct stasis_topic * ast_manager_get_topic(void)
Get the Stasis Message Bus API topic for AMI.
struct stasis_forward * stasis_forward_all(struct stasis_topic *from_topic, struct stasis_topic *to_topic)
Create a subscription which forwards all messages from one topic to another.