Set the storage and voicemail directory variables in config.lua.

This commit is contained in:
Mark Crane 2013-09-23 19:37:19 +00:00
parent e3fb29f198
commit a4bf9ead8e
1 changed files with 6 additions and 0 deletions

View File

@ -118,6 +118,12 @@ if ($domains_processed == 1) {
if (strlen($_SESSION['switch']['recordings']['dir']) > 0) {
$tmp .= " recordings_dir = \"".$recordings_dir."\";\n";
}
if (strlen($_SESSION['switch']['storage']['dir']) > 0) {
$tmp .= " storage_dir = \"".$_SESSION['switch']['storage']['dir']."\";\n";
}
if (strlen($_SESSION['switch']['voicemail']['dir']) > 0) {
$tmp .= " voicemail_dir = \"".$_SESSION['switch']['voicemail']['dir']."\";\n";
}
$tmp .= "\n";
$tmp .= "--database information\n";
$tmp .= " database = {}\n";