Skip to content

ENV()

Synopsis

Gets or sets the environment variable specified.

Description

Variables starting with 'AST_' are reserved to the system and may not be set.

Additionally, the following system variables are available as special built-in dialplan variables. These variables cannot be set or modified and are read-only.

  • EPOCH - Current unix style epoch

  • SYSTEMNAME - value of the 'systemname' option from 'asterisk.conf'

  • ASTCACHEDIR - value of the 'astcachedir' option from 'asterisk.conf'

  • ASTETCDIR - value of the 'astetcdir' option from 'asterisk.conf'

  • ASTMODDIR - value of the 'astmoddir' option from 'asterisk.conf'

  • ASTVARLIBDIR - value of the 'astvarlib' option from 'asterisk.conf'

  • ASTDBDIR - value of the 'astdbdir' option from 'asterisk.conf'

  • ASTKEYDIR - value of the 'astkeydir' option from 'asterisk.conf'

  • ASTDATADIR - value of the 'astdatadir' option from 'asterisk.conf'

  • ASTAGIDIR - value of the 'astagidir' option from 'asterisk.conf'

  • ASTSPOOLDIR - value of the 'astspooldir' option from 'asterisk.conf'

  • ASTRUNDIR - value of the 'astrundir' option from 'asterisk.conf'

  • ASTLOGDIR - value of the 'astlogdir' option from 'asterisk.conf'

  • ASTSBINDIR - value of the 'astsbindir' option from 'asterisk.conf'

  • ENTITYID - Global Entity ID set automatically, or from 'asterisk.conf'

Syntax

ENV(varname)
Arguments
  • varname - Environment variable name

Generated Version

This documentation was generated from Asterisk branch certified/20.7 using version GIT