From e94417924663bdec9c356260fdc5a5719424e65a Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 19 Sep 2012 03:09:12 +0000 Subject: [PATCH] Add sounds back to the IVR Menu. Decide they are more useful to display. --- app/ivr_menu/v_ivr_menu_edit.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/app/ivr_menu/v_ivr_menu_edit.php b/app/ivr_menu/v_ivr_menu_edit.php index f1c3b7ac82..251bc64127 100644 --- a/app/ivr_menu/v_ivr_menu_edit.php +++ b/app/ivr_menu/v_ivr_menu_edit.php @@ -445,22 +445,22 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; } //sounds - //$dir_path = $_SESSION['switch']['sounds']['dir']; - //recur_sounds_dir($_SESSION['switch']['sounds']['dir']); - //echo "\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 " \n"; - // } - // else { - // echo " \n"; - // } - // } - //} - //echo "\n"; + $dir_path = $_SESSION['switch']['sounds']['dir']; + recur_sounds_dir($_SESSION['switch']['sounds']['dir']); + echo "\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 " \n"; + } + else { + echo " \n"; + } + } + } + echo "\n"; //select if (if_group("superadmin")) { if (!$tmp_selected) {