ExecIf() — Conditionally executes an Asterisk application



If expression is true, executes the given application with arguments as its arguments, and returns the result. For more information on standard Asterisk expressions, see Chapter 6 or the README.variables file in the doc/ subdirectory of the Asterisk source.

If expression is false, execution continues at the next priority.

               exten => 123,1,ExecIf($[ ${CALLERIDNUM} = 101],SayDigits,12345)
    exten => 123,2,SayDigits(6789)

See Also

Exec(), Eval()

Get Asterisk: The Future of Telephony now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.