Asterisk - The Open Source Telephony Project
18.5.0
|
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 = "30ef0c93b36035ec78c9cfd712d36d9b" , .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 279 of file func_srv.c.
|
static |
Definition at line 279 of file func_srv.c.
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 279 of file func_srv.c.
|
static |
Definition at line 265 of file func_srv.c.
References ast_custom_function_register, AST_MODULE_LOAD_DECLINE, and AST_MODULE_LOAD_SUCCESS.
|
static |
Definition at line 81 of file func_srv.c.
References ast_free, ast_srv_cleanup(), and srv_result_datastore::context.
|
static |
Definition at line 93 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, host, srv_result_datastore::id, LOG_NOTICE, and NULL.
Referenced by srv_query_read(), and srv_result_read().
|
static |
Definition at line 128 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, LOG_WARNING, and srv_datastore_setup().
|
static |
Definition at line 168 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, srv_result_datastore::context, ast_datastore::data, host, LOG_ERROR, LOG_WARNING, parse(), priority, srv_datastore_setup(), and weight.
|
static |
Definition at line 255 of file func_srv.c.
References ast_custom_function_unregister().
|
static |
Definition at line 279 of file func_srv.c.
|
static |
Definition at line 279 of file func_srv.c.
|
static |
Definition at line 163 of file func_srv.c.
|
static |
Definition at line 88 of file func_srv.c.
|
static |
Definition at line 250 of file func_srv.c.