Skip to end of metadata
Go to start of metadata

The parameter (blabla) can be quoted with double quotes ("blabla"). In this case, a comma does not terminate the field. However, the double quotes will be passed down to the Background command, in this example.

Special characters that must be escaped to be used literally, are "[", "]", "\" (backslash) and " (double quote).
Dollar sign "$" does not require escaping, as long as it doesn't trigger variable expansion or expression evaluation (i.e. "$[" or "${"), - in that case you'd have to either surround it with double quotes or escape the next character with a backslash (See example code below).

Double quotes and escapes are evaluated at the level of the asterisk config file parser.

Double quotes can also be used inside expressions, as discussed later.

Useful Examples
  • No labels


  1. TODO(myself): Note about why strings with whitespaces should be quoted yadda-yadda if then else; Add another expression expansion example, involving dollar sign; Also tell more about comma truncation

  2. This page is not very clearly written, although there is enough information to extrapolate what is being presented.  Please verify what was omitted or deleted that existed before.

  3. The example

       exten => s,2,Verbose("Hi, James!")

    does not print out the quotes.