Skip to main content

mod_dptools: bgsystem

About

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

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