MacroIf(expr?macroiftrue:[macroiffalse])
Full arguments reference
-
expr -
destination-
macroiftruerequired-
macroiftruerequired -
arg1[arg1...]
-
-
macroiffalse-
macroiffalserequired -
arg1[arg1...]
-
-
Executes macro defined in macroiftrue if expr is true (otherwise macroiffalse if provided)
Arguments and return values as in application Macro()
Warning
Use of the application 'WaitExten' within a macro will not function as expected. Please use the 'Read' application in order to read DTMFDual-Tone Multi-Frequency, the touch-tone signals phones send for digit input during a call, used by IVRs and feature codes. from a channelA single call leg passing through Asterisk. Channels represent connections to endpoints and are what dialplan applications act on. currently executing a macro.
-
expr -
destination-
macroiftruerequired-
macroiftruerequired -
arg1[arg1...]
-
-
macroiffalse-
macroiffalserequired -
arg1[arg1...]
-
-
User Notes
Know a tip or gotcha for this topic? Share it below and help others.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.