Asterisk - The Open Source Telephony Project  18.5.0
Functions | Variables
version.c File Reference
#include "asterisk.h"
#include "asterisk/ast_version.h"
Include dependency graph for version.c:

Go to the source code of this file.

Functions

const char * ast_get_build_opts (void)
 
const char * ast_get_version (void)
 Retrieve the Asterisk version string. More...
 
const char * ast_get_version_num (void)
 Retrieve the numeric Asterisk version. More...
 

Variables

static const char asterisk_build_opts [] = "AST_DEVMODE, DONT_OPTIMIZE, COMPILE_DOUBLE, DEBUG_THREADS, BETTER_BACKTRACES, BUILD_NATIVE, OPTIONAL_API, TEST_FRAMEWORK"
 
static const char asterisk_version [] = "18.5.0"
 
static const char asterisk_version_num [] = "180500"
 

Function Documentation

◆ ast_get_build_opts()

const char* ast_get_build_opts ( void  )

Retrieve the Asterisk build options

Definition at line 26 of file version.c.

References asterisk_build_opts.

Referenced by handle_show_settings(), and prometheus_config_post_apply().

27 {
28  return asterisk_build_opts;
29 }
static const char asterisk_build_opts[]
Definition: version.c:14

◆ ast_get_version()

const char* ast_get_version ( void  )

◆ ast_get_version_num()

const char* ast_get_version_num ( void  )

Retrieve the numeric Asterisk version.

Format ABBCC AABB - Major version (1.4 would be 104) CC - Minor version

1.4.17 would be 10417.

Definition at line 21 of file version.c.

References asterisk_version_num.

Referenced by acf_version_exec(), ast_var_Version(), and test_generate_results().

22 {
23  return asterisk_version_num;
24 }
static const char asterisk_version_num[]
Definition: version.c:12

Variable Documentation

◆ asterisk_build_opts

const char asterisk_build_opts[] = "AST_DEVMODE, DONT_OPTIMIZE, COMPILE_DOUBLE, DEBUG_THREADS, BETTER_BACKTRACES, BUILD_NATIVE, OPTIONAL_API, TEST_FRAMEWORK"
static

Definition at line 14 of file version.c.

Referenced by ast_get_build_opts().

◆ asterisk_version

const char asterisk_version[] = "18.5.0"
static

Definition at line 10 of file version.c.

Referenced by ast_get_version().

◆ asterisk_version_num

const char asterisk_version_num[] = "180500"
static

Definition at line 12 of file version.c.

Referenced by ast_get_version_num().