Call Us Today! 877.742.2583

Page tree
Skip to end of metadata
Go to start of metadata


Execute an operating system command and wait for the result (blocking). 


 Click here to expand Table of Contents


system <command>

Because this command blocks further execution of the dialplan until it completes, do not execute long-running commands this way. An alternative is the 'bgsystem' dialplan app to run the command in the background.



<action application="system" data=""/>

Get the information back as a channel variable!

<action application="set" data="OUT=${system}"/>

If you need to remove a trailing new line character, you can use this:

<action application="set" data="OUT=${regex(${system}|(.+)|%1)}"/>

See Also

1 Comment

  1. Does <param name="threaded-system-exec" value="true"/> in switch.conf.xml change how this `system` dialplan application is executed?