Parameter strings can include variables. Variable names are arbitrary strings. They are stored in the respective channel structure.
To set a variable to a particular value, do:
exten => 1,2,Set(varname=value)
exten => 1,2,Set(koko=${blabla}${lala})
There are two reference modes - reference by value and reference by name. To refer to a variable with its name (as an argument to a function that requires a variable), just write the name. To refer to the variable's value, enclose it inside ${}. For example, Set takes as the first argument (before the =) a variable name, so:
exten => 1,2,Set(koko=lala) exten => 1,3,Set(${koko}=blabla)
In fact, everything contained ${here} is just replaced with the value of the variable "here".