Set Variable
Set Variable
Sets the value of a Variable.
Many Action Scripts (e.g. Gosub If) rely on the value of Variables to control the flow of a call.
Variable Name
The name of the Variable.
Variable Type
Indicates the Type of the Variable.
Route Variable
The standard Routes Variable type that most Action Scripts require to operate. These variables cease to exist when the call stops and are not accessible by other calls.
Asterisk Variable
The Variable is to be attached to the underlying phone system and is for use in advanced applications. These variables cease to exist when the call stops and are not accessible by other calls.
User Space Variable
The Variable is stored in a the user space database. User space variables are global, visible to all other calls and continue to exist indefinitely.
Value Type
Controls how the contents of the 'Value' field are interpreted.
Literal
The contents are taken as is and stored into the Variable.
Route Variable
The contents of the Value are interpreted as the name of a Route Variable and the Route Variables value is copied to this Variable.
Asterisk Variable
The contents of the Value are interpreted as the name of a Channel Variable and the Channel Variables value is copied to this Variable.
User Space Variable
The contents of the Value are interpreted as the name of a User Space Variable and the User Space Variables value is copied to this Variable.
Value
The value the Variable is to be set to. How this field is interpreted is dependent on the Variable Type.