Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
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 = "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, .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 480 of file func_enum.c.
|
static |
Definition at line 480 of file func_enum.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 480 of file func_enum.c.
|
static |
Definition at line 252 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, and LOG_WARNING.
|
static |
Definition at line 317 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 227 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 241 of file func_enum.c.
References erds_destroy().
|
static |
Definition at line 156 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 tmp().
|
static |
Definition at line 415 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(), and LOG_WARNING.
|
static |
Definition at line 463 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 451 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 480 of file func_enum.c.
|
static |
Definition at line 480 of file func_enum.c.
|
static |
Definition at line 220 of file func_enum.c.
Referenced by enum_query_read().
|
static |
Definition at line 410 of file func_enum.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 400 of file func_enum.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 247 of file func_enum.c.
Referenced by enum_query_read(), and enum_result_read().
|
static |
Definition at line 405 of file func_enum.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 154 of file func_enum.c.
Referenced by acf_retrieve_docs(), ast_manager_register2(), ast_register_application2(), ast_xmldoc_regenerate_doc_item(), 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 446 of file func_enum.c.
Referenced by load_module(), and unload_module().