Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Dial group dialplan function. More...
#include "asterisk.h"
#include <sys/stat.h>
#include "asterisk/module.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/utils.h"
#include "asterisk/app.h"
#include "asterisk/astobj2.h"
#include "asterisk/astdb.h"
Go to the source code of this file.
Data Structures | |
struct | group |
struct | group_entry |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | dialgroup_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
static int | dialgroup_refreshdb (struct ast_channel *chan, const char *cdialgroup) |
static int | dialgroup_write (struct ast_channel *chan, const char *cmd, char *data, const char *cvalue) |
static int | entry_cmp_fn (void *obj1, void *name2, int flags) |
static int | entry_hash_fn (const void *obj, const int flags) |
static int | group_cmp_fn (void *obj1, void *name2, int flags) |
static void | group_destroy (void *vgroup) |
static int | group_hash_fn (const void *obj, const int flags) |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Dialgroup dialplan function" , .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 | dialgroup_function |
static struct ao2_container * | group_container = NULL |
Dial group dialplan function.
Definition in file func_dialgroup.c.
|
static |
Definition at line 324 of file func_dialgroup.c.
|
static |
Definition at line 324 of file func_dialgroup.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 324 of file func_dialgroup.c.
|
static |
Definition at line 128 of file func_dialgroup.c.
References ao2_find, ao2_iterator_destroy(), ao2_iterator_init(), ao2_iterator_next, ao2_ref, ast_copy_string(), ast_log, ast_strlen_zero(), buf, group::entries, group_container, len(), LOG_WARNING, and tmp().
Referenced by dialgroup_refreshdb().
|
static |
Definition at line 172 of file func_dialgroup.c.
References ast_db_del(), ast_db_put(), ast_free, ast_realloc, ast_strdupa, ast_strlen_zero(), buf, dialgroup_read(), len(), and NULL.
Referenced by dialgroup_write().
|
static |
Definition at line 203 of file func_dialgroup.c.
References ao2_alloc, AO2_ALLOC_OPT_LOCK_MUTEX, ao2_container_alloc_hash, ao2_find, ao2_link, ao2_ref, ao2_unlink, args, AST_APP_ARG, ast_copy_string(), AST_DECLARE_APP_ARGS, ast_log, AST_NONSTANDARD_APP_ARGS, AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero(), dialgroup_refreshdb(), group::entries, entry_cmp_fn(), entry_hash_fn(), group_container, group_destroy(), LOG_ERROR, LOG_WARNING, group::name, NULL, OBJ_UNLINK, and value.
Referenced by load_module().
|
static |
Definition at line 118 of file func_dialgroup.c.
References CMP_MATCH, CMP_STOP, name, group_entry::name, and OBJ_POINTER.
Referenced by dialgroup_write().
|
static |
Definition at line 112 of file func_dialgroup.c.
References ast_str_hash(), and group_entry::name.
Referenced by dialgroup_write().
|
static |
Definition at line 102 of file func_dialgroup.c.
References CMP_MATCH, CMP_STOP, name, group::name, and OBJ_POINTER.
Referenced by load_module().
|
static |
Definition at line 90 of file func_dialgroup.c.
References ao2_ref, and group::entries.
Referenced by dialgroup_write().
|
static |
Definition at line 96 of file func_dialgroup.c.
References ast_str_hash(), and group::name.
Referenced by load_module().
|
static |
Definition at line 299 of file func_dialgroup.c.
References AO2_ALLOC_OPT_LOCK_MUTEX, ao2_container_alloc_hash, ast_copy_string(), ast_custom_function_register, ast_db_freetree(), ast_db_gettree(), AST_MAX_EXTENSION, AST_MODULE_LOAD_DECLINE, dialgroup_function, dialgroup_write(), group_cmp_fn(), group_container, group_hash_fn(), NULL, and tmp().
|
static |
Definition at line 292 of file func_dialgroup.c.
References ao2_ref, ast_custom_function_unregister(), dialgroup_function, and group_container.
|
static |
Definition at line 324 of file func_dialgroup.c.
|
static |
Definition at line 324 of file func_dialgroup.c.
|
static |
Definition at line 286 of file func_dialgroup.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 79 of file func_dialgroup.c.
Referenced by dialgroup_read(), dialgroup_write(), featuregroup_find(), load_module(), and unload_module().