|
Asterisk - The Open Source Telephony Project GIT-master-57e2743
|
#include "asterisk.h"#include "asterisk/module.h"#include "asterisk/manager.h"#include "asterisk/stasis.h"#include "asterisk/devicestate.h"#include "asterisk/mwi.h"#include "asterisk/conversions.h"
Go to the source code of this file.
Functions | |
| static void | __reg_module (void) |
| static void | __unreg_module (void) |
| static int | action_devicestatechange (struct mansession *s, const struct message *m) |
| static int | action_devicestatelist (struct mansession *s, const struct message *m) |
| static int | action_mailboxstatechange (struct mansession *s, const struct message *m) |
| struct ast_module * | AST_MODULE_SELF_SYM (void) |
| static int | load_module (void) |
| static int | unload_module (void) |
Variables | |
| static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Manager Device State Topic Forwarder" , .key = ASTERISK_GPL_KEY , .buildopt_sum = AST_BUILDOPT_SUM, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEVSTATE_CONSUMER, } |
| static const struct ast_module_info * | ast_module_info = &__mod_info |
| static struct stasis_forward * | topic_forwarder |
|
static |
Definition at line 348 of file res_manager_devicestate.c.
|
static |
Definition at line 348 of file res_manager_devicestate.c.
|
static |
Definition at line 199 of file res_manager_devicestate.c.
References AST_DEVICE_UNKNOWN, AST_DEVSTATE_CACHABLE, AST_DEVSTATE_NOT_CACHABLE, ast_devstate_val(), ast_eid_cmp(), ast_eid_default, ast_false(), ast_publish_device_state_full(), ast_str_to_eid(), ast_strlen_zero(), astman_get_header(), astman_send_ack(), astman_send_error(), and ast_eid::eid.
Referenced by load_module().
|
static |
Definition at line 157 of file res_manager_devicestate.c.
References ao2_cleanup, ao2_iterator_destroy(), ao2_iterator_init(), ao2_iterator_next, ao2_ref, ast_device_state_cache(), ast_device_state_message_type(), ast_strlen_zero(), astman_append(), astman_get_header(), astman_send_error(), astman_send_list_complete_end(), astman_send_list_complete_start(), astman_send_listack(), ast_manager_event_blob::extra_fields, ast_manager_event_blob::manager_event, NULL, RAII_VAR, stasis_cache_dump_by_eid(), and stasis_message_to_ami().
Referenced by load_module().
|
static |
Definition at line 243 of file res_manager_devicestate.c.
References ast_eid_cmp(), ast_eid_default, ast_publish_mwi_state_full(), ast_str_to_eid(), ast_str_to_int(), ast_strdupa, ast_strlen_zero(), astman_get_header(), astman_send_ack(), astman_send_error(), ast_eid::eid, mbox(), NULL, and strsep().
Referenced by load_module().
| struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 348 of file res_manager_devicestate.c.
|
static |
Definition at line 304 of file res_manager_devicestate.c.
References action_devicestatechange(), action_devicestatelist(), action_mailboxstatechange(), ast_device_state_topic_all(), ast_eid_default, ast_eid_is_empty(), ast_log, ast_manager_get_topic(), ast_manager_register_xml, ast_manager_unregister(), AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, EVENT_FLAG_CALL, EVENT_FLAG_REPORTING, LOG_ERROR, manager_topic, stasis_forward_all(), stasis_forward_cancel(), and topic_forwarder.
|
static |
Definition at line 294 of file res_manager_devicestate.c.
References ast_manager_unregister(), stasis_forward_cancel(), and topic_forwarder.
|
static |
Definition at line 348 of file res_manager_devicestate.c.
|
static |
Definition at line 348 of file res_manager_devicestate.c.
|
static |
Definition at line 155 of file res_manager_devicestate.c.
Referenced by load_module(), and unload_module().