SHELL(command)
Collects the output generated by a command executed by the system shell
title="Shell example"
exten => s,1,Set(foo=${SHELL(echo bar)})
Note
The command supplied to this function will be executed by the system's shell, typically specified in the SHELL environment variable. There are many different system shells available with somewhat different behaviors, so the output generated by this function may vary between platforms.
If live_dangerously in asterisk.conf is set to no, this function can only be executed from the dialplan, and not directly from external protocols.
commandrequired - The command that the shell should execute.
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.