Asterisk macros

In Asterisk, a macro is a special kind of context which can be expanded within the definition of another context. Its name must begin with “macro-”. A macro is expanded by using the Macro command.

All the lines of the macro definition should only use the s extension; the actual extension will come from the line in the calling context on which the macro is expanded.

Within the macro definition, use the variable substitution ${MACRO_EXTEN} to refer to the actual extension.
Created by: ldo, Last modification: Mon 30 of Nov, 2009 (10:06 UTC)
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+