O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

ExecIf() — Conditionally executes an Asterisk application

Synopsis

    ExecIf(expression,application,arguments)

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()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required