Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
#include "asterisk.h"
#include "asterisk/mwi.h"
#include "asterisk/devicestate.h"
#include "asterisk/module.h"
#include "asterisk/stasis_message_router.h"
#include "asterisk/stasis.h"
Go to the source code of this file.
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | load_module (void) |
static int | mwi_cached_cb (void *obj, void *arg, int flags) |
static void | mwi_update_cb (void *data, struct stasis_subscription *sub, struct stasis_message *msg) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "MWI Device State Subscriptions" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = AST_BUILDOPT_SUM, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEVSTATE_PROVIDER, } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static struct stasis_subscription * | mwi_sub |
|
static |
Definition at line 105 of file res_mwi_devstate.c.
|
static |
Definition at line 105 of file res_mwi_devstate.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 105 of file res_mwi_devstate.c.
|
static |
Definition at line 71 of file res_mwi_devstate.c.
References ao2_callback, ao2_ref, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, ast_mwi_state_cache(), ast_mwi_state_type(), ast_mwi_topic_all(), mwi_cached_cb(), mwi_sub, mwi_update_cb(), NULL, OBJ_NODATA, stasis_cache_dump(), stasis_subscribe, stasis_subscription_accept_message_type(), STASIS_SUBSCRIPTION_FILTER_SELECTIVE, stasis_subscription_set_filter(), and unload_module().
|
static |
Definition at line 56 of file res_mwi_devstate.c.
References mwi_sub, mwi_update_cb(), and NULL.
Referenced by load_module().
|
static |
Definition at line 33 of file res_mwi_devstate.c.
References ast_debug, AST_DEVICE_INUSE, AST_DEVICE_NOT_INUSE, AST_DEVSTATE_CACHABLE, ast_devstate_changed(), ast_mwi_state_type(), ast_mwi_state::new_msgs, stasis_message_data(), stasis_message_type(), and ast_mwi_state::uniqueid.
Referenced by load_module(), and mwi_cached_cb().
|
static |
Definition at line 64 of file res_mwi_devstate.c.
References mwi_sub, and stasis_unsubscribe().
Referenced by load_module().
|
static |
Definition at line 105 of file res_mwi_devstate.c.
|
static |
Definition at line 105 of file res_mwi_devstate.c.
|
static |
Definition at line 31 of file res_mwi_devstate.c.
Referenced by allow_and_or_replace_unsolicited(), has_mwi_subscription(), is_unsolicited_allowed(), load_module(), mwi_cached_cb(), mwi_contact_deleted(), mwi_get_notify_data(), mwi_stasis_cb(), mwi_stasis_subscription_alloc(), mwi_subscription_shutdown(), mwi_to_ami(), send_contact_notify(), send_notify(), serialized_cleanup(), serialized_notify(), unload_module(), and unsubscribe().