Load <
file name >
Loads all variables
from the given file. It is useful for loading up initial configuration values
from a file.
Parameters
< file name
> File from which the variables are loaded.
Remarks
- Each line in the file represents a complete record and is defined as: $variable value.
Example
:MAIN
// setup default values
$RingsBeforeAnswer = 4
$MaxTimeAllowed = 120
// load user settings from file config.txt
load "config.txt"
:WAIT_FOR_CALL
answer $RingsBeforeAnswer
timeout $MaxTimeAllowed
;-----------------
;-----------------
where "config.txt" file contains the following data with space as the delimiter between variable and value.
$RingsBeforeAnswer 1
$MaxTimeAllowed 240