\n";
@@ -339,6 +341,8 @@
$ivr_menu_name = $row["ivr_menu_name"];
$ivr_menu_extension = $row["ivr_menu_extension"];
$ivr_menu_language = $row["ivr_menu_language"];
+ $ivr_menu_dialect = $row["ivr_menu_dialect"];
+ $ivr_menu_voice = $row["ivr_menu_voice"];
$ivr_menu_greet_long = $row["ivr_menu_greet_long"];
$ivr_menu_greet_short = $row["ivr_menu_greet_short"];
$ivr_menu_invalid_sound = $row["ivr_menu_invalid_sound"];
@@ -403,7 +407,9 @@
if (strlen($ivr_menu_ringback) == 0) { $ivr_menu_ringback = 'local_stream://default'; }
if (strlen($ivr_menu_invalid_sound) == 0) { $ivr_menu_invalid_sound = 'ivr/ivr-that_was_an_invalid_entry.wav'; }
//if (strlen($ivr_menu_confirm_key) == 0) { $ivr_menu_confirm_key = '#'; }
- if (strlen($ivr_menu_language) == 0) { $ivr_menu_language = 'en'; }
+ if (strlen($ivr_menu_language_code) == 0) { $ivr_menu_language_code = 'en'; }
+ if (strlen($ivr_menu_dialect) == 0) { $ivr_menu_dialect = 'us'; }
+ if (strlen($ivr_menu_voice) == 0) { $ivr_menu_voice = 'callie'; }
if (strlen($ivr_menu_tts_engine) == 0) { $ivr_menu_tts_engine = 'flite'; }
if (strlen($ivr_menu_tts_voice) == 0) { $ivr_menu_tts_voice = 'rms'; }
if (strlen($ivr_menu_confirm_attempts) == 0) { $ivr_menu_confirm_attempts = '1'; }
@@ -415,6 +421,20 @@
if (strlen($ivr_menu_enabled) == 0) { $ivr_menu_enabled = 'true'; }
if (!isset($ivr_menu_exit_action)) { $ivr_menu_exit_action = ''; }
+//get installed languages
+ $language_paths = glob($_SESSION["switch"]['sounds']['dir']."/*/*/*");
+ foreach ($language_paths as $key => $path) {
+ $path = str_replace($_SESSION["switch"]['sounds']['dir'].'/', "", $path);
+ $path_array = explode('/', $path);
+ if (count($path_array) <> 3 || strlen($path_array[0]) <> 2 || strlen($path_array[1]) <> 2) {
+ unset($language_paths[$key]);
+ }
+ $language_paths[$key] = str_replace($_SESSION["switch"]['sounds']['dir']."/","",$language_paths[$key]);
+ if (strlen($language_paths[$key]) == 0) {
+ unset($language_paths[$key]);
+ }
+ }
+
//get the recordings
$sql = "select recording_name, recording_filename from v_recordings ";
$sql .= "where domain_uuid = '".$_SESSION["domain_uuid"]."' ";
@@ -503,7 +523,29 @@
echo " ".$text['label-language']."\n";
echo "\n";
echo "| \n";
- echo " \n";
+ echo " | \n";