Skip to end of metadata
Go to start of metadata

A macro is defined in its own block like this. The arguments to the macro are specified with the name of the macro. They are then referred to by that same name. A catch block can be specified to catch special extensions.

A macro is then called by preceding the macro name with an ampersand. Empty arguments can be passed simply with nothing between commas.

Dialplan Macros Channel Variables

Icon

Due to AEL macro reimplementation the following variables will not be set:

  • ${MACRO_EXTEN}
  • ${MACRO_CONTEXT}
  • ${MACRO_PRIORITY}
  • ${MACRO_OFFSET}
  • No labels

1 Comment

  1. Note to myself.
    TODO: Due to awkward AEL reimplementation macro names must start with "macro-" string.
    Either change this page's example or submit a patch.