40 topic_forwarder =
NULL;
54 if (!message_router) {
63 if (!topic_forwarder) {
Asterisk main include file. File version handling, generic pbx functions.
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.
static void manager_system_shutdown(void)
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_system_topic(void)
A Stasis Message Bus API topic which publishes messages regarding system changes. ...
struct stasis_forward * stasis_forward_cancel(struct stasis_forward *forward)
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.