43 endpoint_router =
NULL;
57 if (endpoint_router) {
65 if (!endpoint_topic) {
71 if (!endpoint_router) {
Asterisk main include file. File version handling, generic pbx functions.
CallerID (and other GR30) management and generation Includes code and algorithms from the Zapata libr...
int stasis_message_router_add(struct stasis_message_router *router, struct stasis_message_type *message_type, stasis_subscription_cb callback, void *data)
Add a route to a message router.
void stasis_message_router_unsubscribe_and_join(struct stasis_message_router *router)
Unsubscribe the router from the upstream topic, blocking until the final message has been processed...
static void endpoint_state_cb(void *data, struct stasis_subscription *sub, struct stasis_message *message)
struct stasis_topic * ast_endpoint_topic_all_cached(void)
Cached topic for all endpoint related messages.
static struct stasis_message_router * endpoint_router
General Asterisk PBX channel definitions.
int ast_register_cleanup(void(*func)(void))
Register a function to be executed before Asterisk gracefully exits.
Core PBX routines and definitions.
#define stasis_message_router_create(topic)
The AMI - Asterisk Manager Interface - is a TCP protocol created to manage Asterisk with third-party ...
struct stasis_message_type * ast_endpoint_state_type(void)
Message type for endpoint state changes.
void stasis_publish(struct stasis_topic *topic, struct stasis_message *message)
Publish a message to a topic's subscribers.
static void manager_endpoints_shutdown(void)
struct stasis_topic * ast_manager_get_topic(void)
Get the Stasis Message Bus API topic for AMI.
struct stasis_forward * sub
struct stasis_message_type * ast_endpoint_contact_state_type(void)
Message type for endpoint contact state changes.
int manager_endpoints_init(void)
Initialize support for AMI endpoint events.