Call Us Today! 877.742.2583




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

About

Execute an operating system command in the background and continue traversing the dialplan. 

 

 Click here to expand Table of Contents

 

Usage

bgsystem <command>

 

 

Example

<action application="bgsystem" data="myapp.sh"/>

Get the information back as a channel variable!

<action application="set" data="OUT=${bgsystem foo.sh}"/>

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

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

See Also

Dialplan

  • No labels