| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
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 = 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 | dialgroup_function | 
| static struct ao2_container * | group_container = NULL | 
Dial group dialplan function.
Definition in file func_dialgroup.c.
| 
 | static | 
Definition at line 327 of file func_dialgroup.c.
| 
 | static | 
Definition at line 327 of file func_dialgroup.c.
| struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) | 
Definition at line 327 of file func_dialgroup.c.
| 
 | static | 
Definition at line 131 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 group_entry::name.
Referenced by dialgroup_refreshdb().
| 
 | static | 
Definition at line 175 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 206 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_entry::name, group::name, NULL, OBJ_UNLINK, and value.
Referenced by load_module().
| 
 | static | 
Definition at line 121 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 115 of file func_dialgroup.c.
References ast_str_hash(), and group_entry::name.
Referenced by dialgroup_write().
| 
 | static | 
Definition at line 105 of file func_dialgroup.c.
References CMP_MATCH, CMP_STOP, name, group::name, and OBJ_POINTER.
Referenced by load_module().
| 
 | static | 
Definition at line 93 of file func_dialgroup.c.
References ao2_ref, and group::entries.
Referenced by dialgroup_write().
| 
 | static | 
Definition at line 99 of file func_dialgroup.c.
References ast_str_hash(), and group::name.
Referenced by load_module().
| 
 | static | 
Definition at line 302 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_function, dialgroup_write(), group_cmp_fn(), group_container, group_hash_fn(), ast_db_entry::key, ast_db_entry::next, and NULL.
| 
 | static | 
Definition at line 295 of file func_dialgroup.c.
References ao2_ref, ast_custom_function_unregister(), dialgroup_function, and group_container.
| 
 | static | 
Definition at line 327 of file func_dialgroup.c.
| 
 | static | 
Definition at line 327 of file func_dialgroup.c.
| 
 | static | 
Definition at line 289 of file func_dialgroup.c.
Referenced by load_module(), and unload_module().
| 
 | static | 
Definition at line 82 of file func_dialgroup.c.
Referenced by dialgroup_read(), dialgroup_write(), featuregroup_find(), load_module(), and unload_module().