Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: formatting and merging of other redundant page

...

You can substitute the value of a variable everywhere using ${variablename}.

Here is a simple example.

Code Block
exten => 1,1,Set(COUNT=3)
exten => 1,n,SayNumber(${COUNT})

In the second line of this example, Asterisk replaces the ${COUNT} text with the value of the COUNT variable, so that it ends up calling SayNumber(3).

For another example, to stringwise append $varname2 to $varname3 and store result in $varname1, do:

...