| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
Generate Random Number. More...
#include "asterisk.h"#include "asterisk/module.h"#include "asterisk/channel.h"#include "asterisk/pbx.h"#include "asterisk/utils.h"#include "asterisk/app.h"
Go to the source code of this file.
| Functions | |
| static void | __reg_module (void) | 
| static void | __unreg_module (void) | 
| static int | acf_rand_exec (struct ast_channel *chan, const char *cmd, char *parse, char *buffer, size_t buflen) | 
| struct ast_module * | AST_MODULE_SELF_SYM (void) | 
| 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 = "Random number 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 struct ast_custom_function | acf_rand | 
| static const struct ast_module_info * | ast_module_info = &__mod_info | 
Generate Random Number.
Definition in file func_rand.c.
| 
 | static | 
Definition at line 111 of file func_rand.c.
| 
 | static | 
Definition at line 111 of file func_rand.c.
| 
 | static | 
Definition at line 61 of file func_rand.c.
References args, AST_APP_ARG, ast_debug, AST_DECLARE_APP_ARGS, ast_random(), AST_STANDARD_APP_ARGS, ast_strlen_zero(), max, and min.
| struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) | 
Definition at line 111 of file func_rand.c.
| 
 | static | 
Definition at line 106 of file func_rand.c.
References acf_rand, and ast_custom_function_register.
| 
 | static | 
Definition at line 99 of file func_rand.c.
References acf_rand, and ast_custom_function_unregister().
| 
 | static | 
Definition at line 111 of file func_rand.c.
| 
 | static | 
Definition at line 93 of file func_rand.c.
Referenced by load_module(), and unload_module().
| 
 | static | 
Definition at line 111 of file func_rand.c.