89{
93 );
94
96
98 if (!strcasecmp(
args.info,
"ASTERISK_VERSION_NUM"))
100 else if (!strcasecmp(
args.info,
"BUILD_USER"))
101 response_char = BUILD_USER;
102 else if (!strcasecmp(
args.info,
"BUILD_HOSTNAME"))
103 response_char = BUILD_HOSTNAME;
104 else if (!strcasecmp(
args.info,
"BUILD_MACHINE"))
105 response_char = BUILD_MACHINE;
106 else if (!strcasecmp(
args.info,
"BUILD_KERNEL"))
107 response_char = BUILD_KERNEL;
108 else if (!strcasecmp(
args.info,
"BUILD_OS"))
109 response_char = BUILD_OS;
110 else if (!strcasecmp(
args.info,
"BUILD_DATE"))
111 response_char = BUILD_DATE;
112 }
113
114 ast_debug(1,
"VERSION returns %s result, given %s argument\n", response_char,
args.info);
115
117
118 return 0;
119}
const char * ast_get_version(void)
Retrieve the Asterisk version string.
const char * ast_get_version_num(void)
Retrieve the numeric Asterisk version.
#define AST_APP_ARG(name)
Define an application argument.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
#define ast_debug(level,...)
Log a DEBUG message.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
void ast_copy_string(char *dst, const char *src, size_t size)
Size-limited null-terminating string copy.