patch for music_on_hold.php for package base installs

This commit is contained in:
Richard Neese 2014-10-26 02:29:39 +00:00
parent 8d04ca9f1b
commit 44b8e1036f
1 changed files with 6 additions and 1 deletions

View File

@ -45,7 +45,12 @@ else {
require_once "resources/paging.php";
$sampling_rate_dirs = Array(8000, 16000, 32000, 48000);
$music_on_hold_dir = $_SESSION['switch']['sounds']['dir'].'/music';
if (file_exists('/var/lib/fusionpbxsounds/music')) {
$music_on_hold_dir = $_SESSION['switch']['sounds']['dir'].'/music/fusionpbx';
}
else {
$music_on_hold_dir = $_SESSION['switch']['sounds']['dir'].'/music';
}
ini_set(max_execution_time,7200);
$order_by = $_GET["order_by"];