Aplicações do Dialplan do Asterisk 18
Comando:
Macro()
Sinopse:
Macro Implementation.
Descrição:
Executes a macro using the context macro- name, jumping to the 's' extension of that context and executing each step, then returning when the steps end.
The calling extension, context, and priority are stored in MACRO_EXTEN, MACRO_CONTEXT and MACRO_PRIORITY respectively. Arguments become ARG1, ARG2, etc in the macro context.
If you Goto out of the Macro context, the Macro will terminate and control will be returned at the location of the Goto.
If MACRO_OFFSET is set at termination, Macro will attempt to continue at priority MACRO_OFFSET + N + 1 if such a step exists, and N + 1 otherwise.
Warning Because of the way Macro is implemented (it executes the priorities contained within it via sub-engine), and a fixed per-thread memory stack allowance, macros are limited to 7 levels of nesting (macro calling macro calling macro, etc.); It may be possible that stack-intensive aplicações in deeply nested macros could cause asterisk to crash earlier than this limit. It is advised that if you need to deeply nest macro calls, that you use the Gosub aplicação (now allows arguments like a Macro) with explicit Return() calls instead.
Warning Use of the aplicação 'WaitExten' within a macro will not função as expected. Please use the 'Read' aplicação in order to read DTMF from a canal currently executing a macro.
Macro(name,arg1,[arg2[,...]])
name - The name of the macro args arg1 required arg2[,arg2...]
Dialplan aplicações MacroExit Dialplan aplicações Goto Dialplan aplicações Gosub
This documentation was generated from Asterisk branch 18 using version GIT
Sintaxe:
Macro(name,arg1,[arg2[,...]])
Fonte: Asterisk Wiki