Misc. Dialplan Tools mkdir

From FreeSWITCH Wiki

Jump to: navigation, search

Contents

Description

Creates a directory. Also creates parent directories by default(When they don't exist).

Freeswitch must have write permission in the given path - No error message is send to the log when the path could not be created due to permission problems.

Usage

mkdir <path>

Examples

<action application="mkdir" data="/path/to/new/directory"/>
<action application="mkdir" data="${recordings_dir}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/"/>
<action application="mkdir" data="/usr/local/freeswitch/sounds/custom/blabla"/>

Alternatives

Create directories with the "system"-tool:

 <action application="system" data="/bin/mkdir -p /path/to/new/directory"/> 

See Also

Personal tools

Community
Support FreeSWITCH