Asterisk - The Open Source Telephony Project
18.5.0
|
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 = "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 | dialgroup_function |
static struct ao2_container * | group_container = NULL |
Dial group dialplan function.
Definition in file func_dialgroup.c.
|
static |
Definition at line 323 of file func_dialgroup.c.
|
static |
Definition at line 323 of file func_dialgroup.c.
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 323 of file func_dialgroup.c.
|
static |
Definition at line 127 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, group::entries, LOG_WARNING, group_entry::name, and tmp().
Referenced by dialgroup_refreshdb().
|
static |
Definition at line 171 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 202 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_destroy(), LOG_ERROR, LOG_WARNING, group_entry::name, group::name, NULL, OBJ_UNLINK, and value.
Referenced by load_module().
|
static |
Definition at line 117 of file func_dialgroup.c.
References CMP_MATCH, CMP_STOP, group_entry::name, and OBJ_POINTER.
Referenced by dialgroup_write().
|
static |
Definition at line 111 of file func_dialgroup.c.
References ast_str_hash(), and group_entry::name.
Referenced by dialgroup_write().
|
static |
Definition at line 101 of file func_dialgroup.c.
References CMP_MATCH, CMP_STOP, group_entry::name, group::name, and OBJ_POINTER.
Referenced by load_module().
|
static |
Definition at line 89 of file func_dialgroup.c.
References ao2_ref, and group::entries.
Referenced by dialgroup_write().
|
static |
Definition at line 95 of file func_dialgroup.c.
References ast_str_hash(), and group::name.
Referenced by load_module().
|
static |
Definition at line 298 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, ast_db_entry::data, dialgroup_write(), group_cmp_fn(), group_hash_fn(), ast_db_entry::key, ast_db_entry::next, NULL, and tmp().
|
static |
Definition at line 291 of file func_dialgroup.c.
References ao2_ref, and ast_custom_function_unregister().
|
static |
Definition at line 323 of file func_dialgroup.c.
|
static |
Definition at line 323 of file func_dialgroup.c.
|
static |
Definition at line 285 of file func_dialgroup.c.
|
static |
Definition at line 78 of file func_dialgroup.c.