Skip to content

VERSION()

Synopsis

Return the Version info for this Asterisk.

Description

If there are no arguments, return the version of Asterisk in this format: 18.12.0

Example: Get current version
same => n,Set(junky=${VERSION()} ; sets junky to 18.12.0, or possibly GITMasterxxxxxx

Syntax

VERSION(info)
Arguments
  • info - The possible values are:

    • ASTERISK_VERSION_NUM - A string of digits is returned, e.g. 10602 for 1.6.2 or 100300 for 10.3.0, or 999999 when using a Git build.

    • BUILD_USER - The string representing the user's name whose account was used to configure Asterisk, is returned.

    • BUILD_HOSTNAME - The string representing the name of the host on which Asterisk was configured, is returned.

    • BUILD_MACHINE - The string representing the type of machine on which Asterisk was configured, is returned.

    • BUILD_OS - The string representing the OS of the machine on which Asterisk was configured, is returned.

    • BUILD_DATE - The string representing the date on which Asterisk was configured, is returned.

    • BUILD_KERNEL - The string representing the kernel version of the machine on which Asterisk was configured, is returned.

Generated Version

This documentation was generated from Asterisk branch 22 using version GIT