Asterisk - The Open Source Telephony Project GIT-master-b023714
|
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 = ASTERISK_GPL_KEY , .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 295 of file func_srv.c.
|
static |
Definition at line 295 of file func_srv.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 295 of file func_srv.c.
|
static |
Definition at line 281 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 97 of file func_srv.c.
References ast_free, ast_srv_cleanup(), and srv_result_datastore::context.
|
static |
Definition at line 109 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 144 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 184 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 271 of file func_srv.c.
References ast_custom_function_unregister(), srv_query_function, and srv_result_function.
|
static |
Definition at line 295 of file func_srv.c.
|
static |
Definition at line 295 of file func_srv.c.
|
static |
Definition at line 179 of file func_srv.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 104 of file func_srv.c.
Referenced by srv_datastore_setup(), srv_query_read(), and srv_result_read().
|
static |
Definition at line 266 of file func_srv.c.
Referenced by load_module(), and unload_module().