Asterisk - The Open Source Telephony Project GIT-master-a63eec2
|
ENUM Functions. More...
#include "asterisk.h"
#include "asterisk/module.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/utils.h"
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/enum.h"
#include "asterisk/app.h"
Go to the source code of this file.
Data Structures | |
struct | enum_result_datastore |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | enum_query_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
static int | enum_result_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
static void | erds_destroy (struct enum_result_datastore *data) |
static void | erds_destroy_cb (void *data) |
static int | function_enum (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
static int | function_txtcidname (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "ENUM related dialplan functions" , .key = ASTERISK_GPL_KEY , .buildopt_sum = AST_BUILDOPT_SUM, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .requires = "enum", } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static unsigned int | enum_datastore_id |
static struct ast_custom_function | enum_function |
static struct ast_custom_function | enum_query_function |
static const struct ast_datastore_info | enum_result_datastore_info |
static struct ast_custom_function | enum_result_function |
static char * | synopsis = "Syntax: ENUMLOOKUP(number[,Method-type[,options[,record#[,zone-suffix]]]])\n" |
static struct ast_custom_function | txtcidname_function |
|
static |
Definition at line 492 of file func_enum.c.
|
static |
Definition at line 492 of file func_enum.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 492 of file func_enum.c.
|
static |
Definition at line 264 of file func_enum.c.
References args, AST_APP_ARG, ast_atomic_fetchadd_int(), ast_calloc, ast_channel_datastore_add(), ast_channel_lock, ast_channel_unlock, ast_copy_string(), ast_datastore_alloc, AST_DECLARE_APP_ARGS, ast_free, ast_get_enum(), ast_log, AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero(), buf, enum_result_datastore::context, ast_datastore::data, enum_datastore_id, enum_result_datastore_info, enum_result_datastore::id, len(), LOG_ERROR, LOG_WARNING, and ast_channel::zone.
|
static |
Definition at line 329 of file func_enum.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_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero(), buf, enum_result_datastore::context, ast_datastore::data, enum_result_datastore_info, len(), LOG_ERROR, LOG_WARNING, enum_context::naptr_rrs, enum_context::naptr_rrs_count, enum_naptr_rr::result, enum_naptr_rr::sort_pos, and enum_naptr_rr::tech.
|
static |
Definition at line 239 of file func_enum.c.
References ast_free, enum_result_datastore::context, enum_context::naptr_rrs, enum_context::naptr_rrs_count, enum_naptr_rr::result, and enum_naptr_rr::tech.
Referenced by erds_destroy_cb().
|
static |
Definition at line 253 of file func_enum.c.
References erds_destroy().
|
static |
Definition at line 168 of file func_enum.c.
References args, AST_APP_ARG, ast_copy_string(), AST_DECLARE_APP_ARGS, ast_get_enum(), ast_log, AST_MAX_EXTENSION, AST_STANDARD_APP_ARGS, ast_strlen_zero(), buf, len(), LOG_WARNING, NULL, options, synopsis, and ast_channel::zone.
|
static |
Definition at line 427 of file func_enum.c.
References args, AST_APP_ARG, AST_DECLARE_APP_ARGS, ast_get_txt(), ast_log, AST_STANDARD_APP_ARGS, ast_strlen_zero(), buf, len(), LOG_WARNING, and ast_channel::zone.
|
static |
Definition at line 475 of file func_enum.c.
References ast_custom_function_register, enum_function, enum_query_function, enum_result_function, and txtcidname_function.
|
static |
Definition at line 463 of file func_enum.c.
References ast_custom_function_unregister(), enum_function, enum_query_function, enum_result_function, and txtcidname_function.
|
static |
Definition at line 492 of file func_enum.c.
|
static |
Definition at line 492 of file func_enum.c.
|
static |
Definition at line 232 of file func_enum.c.
Referenced by enum_query_read().
|
static |
Definition at line 422 of file func_enum.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 412 of file func_enum.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 259 of file func_enum.c.
Referenced by enum_query_read(), and enum_result_read().
|
static |
Definition at line 417 of file func_enum.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 166 of file func_enum.c.
Referenced by acf_retrieve_docs(), ast_manager_register2(), ast_register_application2(), ast_xmldoc_regenerate_doc_item(), cli_show_module_options(), cli_show_module_type(), function_enum(), handle_cli_agi_show(), handle_show_function(), handle_showmancmd(), init_acf_query(), print_app_docs(), print_event_instance(), and xmldoc_build_documentation_item().
|
static |
Definition at line 458 of file func_enum.c.
Referenced by load_module(), and unload_module().