quick fix for music on hold

This commit is contained in:
Richard Neese 2014-10-25 19:53:16 +00:00
parent 9e33022ce7
commit f1343562c8
1 changed files with 5 additions and 1 deletions

View File

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