Return the current Version strings.
More...
Go to the source code of this file.
|
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Get Asterisk Version/Build Info" , .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 struct ast_custom_function | acf_version |
|
static const struct ast_module_info * | ast_module_info = &__mod_info |
|
Return the current Version strings.
- Author
- Steve Murphy (murf@.nosp@m.digi.nosp@m.um.co.nosp@m.m)
Definition in file func_version.c.
◆ __reg_module()
static void __reg_module |
( |
void |
| ) |
|
|
static |
◆ __unreg_module()
static void __unreg_module |
( |
void |
| ) |
|
|
static |
◆ acf_version_exec()
static int acf_version_exec |
( |
struct ast_channel * |
chan, |
|
|
const char * |
cmd, |
|
|
char * |
parse, |
|
|
char * |
buffer, |
|
|
size_t |
buflen |
|
) |
| |
|
static |
Definition at line 83 of file func_version.c.
References args, AST_APP_ARG, ast_copy_string(), ast_debug, AST_DECLARE_APP_ARGS, ast_get_version(), ast_get_version_num(), AST_STANDARD_APP_ARGS, ast_strlen_zero, BUILD_DATE, BUILD_HOSTNAME, BUILD_KERNEL, BUILD_MACHINE, BUILD_OS, BUILD_USER, and sip_to_pjsip::info().
94 if (!strcasecmp(
args.info,
"ASTERISK_VERSION_NUM"))
96 else if (!strcasecmp(
args.info,
"BUILD_USER"))
98 else if (!strcasecmp(
args.info,
"BUILD_HOSTNAME"))
100 else if (!strcasecmp(
args.info,
"BUILD_MACHINE"))
102 else if (!strcasecmp(
args.info,
"BUILD_KERNEL"))
104 else if (!strcasecmp(
args.info,
"BUILD_OS"))
106 else if (!strcasecmp(
args.info,
"BUILD_DATE"))
110 ast_debug(1,
"VERSION returns %s result, given %s argument\n", response_char,
args.info);
const char * ast_get_version(void)
Retrieve the Asterisk version string.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
#define ast_strlen_zero(foo)
#define ast_debug(level,...)
Log a DEBUG message.
static void parse(struct mgcp_request *req)
const char * ast_get_version_num(void)
Retrieve the numeric Asterisk version.
void ast_copy_string(char *dst, const char *src, size_t size)
Size-limited null-terminating string copy.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
#define AST_APP_ARG(name)
Define an application argument.
◆ AST_MODULE_SELF_SYM()
◆ load_module()
static int load_module |
( |
void |
| ) |
|
|
static |
◆ unload_module()
static int unload_module |
( |
void |
| ) |
|
|
static |
◆ __mod_info
struct ast_module_info __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Get Asterisk Version/Build Info" , .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 |
◆ acf_version
Initial value:= {
.name = "VERSION",
}
static int acf_version_exec(struct ast_channel *chan, const char *cmd, char *parse, char *buffer, size_t buflen)
Definition at line 117 of file func_version.c.
◆ ast_module_info