AST_CONFIG()
Synopsis
Retrieve a variable from a configuration file.
Description
This function reads a variable from an Asterisk configuration file.
Syntax
AST_CONFIG(config_file,category,variable_name[,index])
Arguments
config_file
category
variable_name
index
- If there are multiple variables with the same name, you can specify0
for the first item (default),-1
for the last item, or any other number for that specific item.-1
is useful when the variable is derived from a template and you want the effective value (the last occurrence), not the value from the template (the first occurrence).
See Also
Import Version
This documentation was imported from Asterisk Version GIT-20-f8000daff5