SET(variablename=expression)
Can be used inside nested expressions to set variables to the
desired value. (Not to be confused with the application
Set()! This is the cause of much
grief!)
; Set ${a}, ${b}, ${c}, and ${d} to 8:
exten => 123,1,Set(a=${SET(b=${SET(c=${SET(d=8)})})})
; In the interest of readability and comprehension, it is
; usually better to write one or two more lines
|
|
|
Internal help for this application in Asterisk 1.4: -= Info about function 'SET' =- [Syntax] SET(<varname>=[<value>]) [Synopsis] SET assigns a value to a channel variable [Description] Not available diff output to internal help in Asterisk 1.2: - none - |
See also.
the section called “Set()”