diff --git a/app/music_on_hold/music_on_hold.php b/app/music_on_hold/music_on_hold.php index 225d2ee6e2..85ee7fa652 100644 --- a/app/music_on_hold/music_on_hold.php +++ b/app/music_on_hold/music_on_hold.php @@ -160,11 +160,11 @@ $moh_rate_auto = false; } //define default path - //$moh_path = path_join($_SESSION['switch']['sounds']['dir'], 'music', - // (($moh_scope == 'global') ? 'global' : $_SESSION['domain_name']), - // $moh_name_only, $moh_rate - //); - + $moh_path = path_join($_SESSION['switch']['sounds']['dir'], 'music', + (($moh_scope == 'global') ? 'global' : $_SESSION['domain_name']), + $moh_name_only, $moh_rate + ); + //flag to mark if there already has such moh profile $moh_path_found = false; //begin query $music_on_hold_uuid = uuid(); @@ -490,7 +490,7 @@ echo " \n"; echo "