Name

TryExec() — Tries to execute an Asterisk application

Synopsis

TryExec(app(args))

Attempts to run the specified Asterisk application.

This application is very similar to the Exec() application, except that it always returns normally, whereas the Exec() application will act as if the underlying application was natively called, including exit status. This application can be used to catch a condition that would normally cause the underlying application to exit abnormally.

exten => 123,1,TryExec(VMAuthenticate(@default))

See Also

Exec()

Get Asterisk: The Future of Telephony, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.