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

Exec() — Executes an Asterisk application dynamically

Synopsis

    Exec(appname(arguments))

Allows an arbitrary application to be invoked even when not hard-coded into the dialplan. Returns whatever value the Asterisk application returns, or -2 when the called application cannot be found. The arguments are passed to the called application.

This application allows you to dynamically call applications by pulling them from a database or other external source.

    exten => 123,1,Set(MYAPP=SayDigits(12345))
    exten => 123,2,Exec(${MYAPP})

See Also

Eval(), ExecIf()

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