Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
SRV Functions. More...
#include "asterisk.h"
#include "asterisk/module.h"
#include "asterisk/srv.h"
#include "asterisk/pbx.h"
#include "asterisk/app.h"
#include "asterisk/datastore.h"
#include "asterisk/channel.h"
Go to the source code of this file.
Data Structures | |
struct | srv_result_datastore |
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 void | srds_destroy_cb (void *data) |
static struct srv_context * | srv_datastore_setup (const char *service, struct ast_channel *chan) |
static int | srv_query_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
static int | srv_result_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "SRV related dialplan functions" , .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, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, .support_level = AST_MODULE_SUPPORT_CORE, } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static struct ast_custom_function | srv_query_function |
static const struct ast_datastore_info | srv_result_datastore_info |
static struct ast_custom_function | srv_result_function |
SRV Functions.
Definition in file func_srv.c.
|
static |
Definition at line 289 of file func_srv.c.
|
static |
Definition at line 289 of file func_srv.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 289 of file func_srv.c.
|
static |
Definition at line 275 of file func_srv.c.
References ast_custom_function_register, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, srv_query_function, and srv_result_function.
|
static |
Definition at line 91 of file func_srv.c.
References ast_free, ast_srv_cleanup(), and srv_result_datastore::context.
|
static |
Definition at line 103 of file func_srv.c.
References ast_autoservice_start(), ast_autoservice_stop(), ast_calloc, ast_channel_datastore_add(), ast_channel_lock, ast_channel_unlock, ast_datastore_alloc, ast_free, ast_log, ast_srv_cleanup(), ast_srv_lookup(), srv_result_datastore::context, ast_datastore::data, srv_result_datastore::id, LOG_NOTICE, NULL, service, and srv_result_datastore_info.
Referenced by srv_query_read(), and srv_result_read().
|
static |
Definition at line 138 of file func_srv.c.
References ast_channel_datastore_find(), ast_channel_datastore_remove(), ast_channel_lock, ast_channel_unlock, ast_copy_string(), ast_datastore_free(), ast_log, ast_strlen_zero(), buf, ast_datastore::data, len(), LOG_WARNING, srv_datastore_setup(), and srv_result_datastore_info.
|
static |
Definition at line 178 of file func_srv.c.
References args, AST_APP_ARG, ast_channel_datastore_find(), ast_channel_lock, ast_channel_unlock, ast_copy_string(), AST_DECLARE_APP_ARGS, ast_log, ast_srv_get_nth_record(), ast_srv_get_record_count(), AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero(), buf, srv_result_datastore::context, ast_datastore::data, len(), LOG_ERROR, LOG_WARNING, priority, srv_datastore_setup(), srv_result_datastore_info, and weight.
|
static |
Definition at line 265 of file func_srv.c.
References ast_custom_function_unregister(), srv_query_function, and srv_result_function.
|
static |
Definition at line 289 of file func_srv.c.
|
static |
Definition at line 289 of file func_srv.c.
|
static |
Definition at line 173 of file func_srv.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 98 of file func_srv.c.
Referenced by srv_datastore_setup(), srv_query_read(), and srv_result_read().
|
static |
Definition at line 260 of file func_srv.c.
Referenced by load_module(), and unload_module().