Exec

Since 0.4.0 AGI Commands Found this useful? Upvote it. ×

Executes a given Application

Last reviewed 2026-04-14

exec application options
Description

Executes application with given options.

Returns whatever the application returns, or -2 on failure to find application.

Note

exec does not evaluate dialplan functions and variables unless it is explicitly enabled by setting the AGIEXECFULL variable to yes.

Arguments
  • application required
  • options required

User Notes

No notes yet. Be the first to contribute a tip or example.

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.

Moderated before publishing. Email never shown.