From a4bf9ead8e413bf6e0e4f9865532b31a2c48a2e7 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Mon, 23 Sep 2013 19:37:19 +0000 Subject: [PATCH] Set the storage and voicemail directory variables in config.lua. --- core/databases/app_defaults.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/databases/app_defaults.php b/core/databases/app_defaults.php index b686c68cdf..a47eb106d0 100644 --- a/core/databases/app_defaults.php +++ b/core/databases/app_defaults.php @@ -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";