Add sounds back to the IVR Menu. Decide they are more useful to display.

This commit is contained in:
Mark Crane
2012-09-19 03:09:12 +00:00
parent 5d002eee0e
commit e944179246

View File

@@ -445,22 +445,22 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "</optgroup>\n";
}
//sounds
//$dir_path = $_SESSION['switch']['sounds']['dir'];
//recur_sounds_dir($_SESSION['switch']['sounds']['dir']);
//echo "<optgroup label='sounds'>\n";
//foreach ($dir_array as $key => $value) {
// if (strlen($value) > 0) {
// $tmp_dir = "\$\${sounds_dir}/\${default_language}/\${default_dialect}/\${default_voice}";
// if ($ivr_menu_greet_long == $tmp_dir.'/'.$key) {
// $tmp_selected = true;
// echo " <option value='$tmp_dir/$key' selected>$key</option>\n";
// }
// else {
// echo " <option value='$tmp_dir/$key'>$key</option>\n";
// }
// }
//}
//echo "</optgroup>\n";
$dir_path = $_SESSION['switch']['sounds']['dir'];
recur_sounds_dir($_SESSION['switch']['sounds']['dir']);
echo "<optgroup label='sounds'>\n";
foreach ($dir_array as $key => $value) {
if (strlen($value) > 0) {
$tmp_dir = "\$\${sounds_dir}/\${default_language}/\${default_dialect}/\${default_voice}";
if ($ivr_menu_greet_long == $tmp_dir.'/'.$key) {
$tmp_selected = true;
echo " <option value='$tmp_dir/$key' selected>$key</option>\n";
}
else {
echo " <option value='$tmp_dir/$key'>$key</option>\n";
}
}
}
echo "</optgroup>\n";
//select
if (if_group("superadmin")) {
if (!$tmp_selected) {