ivr menu add pin number

This commit is contained in:
Greenbea 2020-10-18 15:44:33 -04:00
parent dacd09e284
commit 3aa39634c9
4 changed files with 62 additions and 0 deletions

View File

@ -271,6 +271,10 @@
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "ivr_menu_pin_number";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "ivr_menu_confirm_macro";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";

View File

@ -631,6 +631,27 @@ $text['label-destination']['ru-ru'] = "Место назначения";
$text['label-destination']['sv-se'] = "Destination";
$text['label-destination']['uk-ua'] = "";
$text['label-pin_number']['en-us'] = "Pin Number";
$text['label-pin_number']['en-gb'] = "Pin Number";
$text['label-pin_number']['ar-eg'] = "";
$text['label-pin_number']['de-at'] = "PIN Nummer"; //copied from de-de
$text['label-pin_number']['de-ch'] = "PIN Nummer"; //copied from de-de
$text['label-pin_number']['de-de'] = "PIN Nummer";
$text['label-pin_number']['es-cl'] = "Número Pin";
$text['label-pin_number']['es-mx'] = "Número Pin"; //copied from es-cl
$text['label-pin_number']['fr-ca'] = "Code Pin"; //copied from fr-fr
$text['label-pin_number']['fr-fr'] = "Code Pin";
$text['label-pin_number']['he-il'] = "";
$text['label-pin_number']['it-it'] = "PIN";
$text['label-pin_number']['nl-nl'] = "PIN";
$text['label-pin_number']['pl-pl'] = "";
$text['label-pin_number']['pt-br'] = "Código Pin"; //copied from pt-pt
$text['label-pin_number']['pt-pt'] = "Código Pin";
$text['label-pin_number']['ro-ro'] = "";
$text['label-pin_number']['ru-ru'] = "PIN Номер";
$text['label-pin_number']['sv-se'] = "Pin Nummer";
$text['label-pin_number']['uk-ua'] = "";
$text['label-comfirm_macro']['en-us'] = "Confirm Macro";
$text['label-comfirm_macro']['en-gb'] = "Confirm Macro";
$text['label-comfirm_macro']['ar-eg'] = "";
@ -1366,6 +1387,27 @@ $text['description-destination']['ru-ru'] = "Выберите пункт наз
$text['description-destination']['sv-se'] = "Välj destination.";
$text['description-destination']['uk-ua'] = "";
$text['description-pin_number']['en-us'] = "Optional pin number to secure access to the menu.";
$text['description-pin_number']['en-gb'] = "Optional pin number to secure access to the menu.";
$text['description-pin_number']['ar-eg'] = "";
$text['description-pin_number']['de-at'] = "";
$text['description-pin_number']['de-ch'] = "";
$text['description-pin_number']['de-de'] = "";
$text['description-pin_number']['es-cl'] = "";
$text['description-pin_number']['es-mx'] = "";
$text['description-pin_number']['fr-ca'] = "";
$text['description-pin_number']['fr-fr'] = "";
$text['description-pin_number']['he-il'] = "";
$text['description-pin_number']['it-it'] = "";
$text['description-pin_number']['nl-nl'] = "";
$text['description-pin_number']['pl-pl'] = "";
$text['description-pin_number']['pt-br'] = "";
$text['description-pin_number']['pt-pt'] = "";
$text['description-pin_number']['ro-ro'] = "";
$text['description-pin_number']['ru-ru'] = "";
$text['description-pin_number']['sv-se'] = "";
$text['description-pin_number']['uk-ua'] = "";
$text['description-comfirm_macro']['en-us'] = "Enter the confirm macro.";
$text['description-comfirm_macro']['en-gb'] = "Enter the confirm macro.";
$text['description-comfirm_macro']['ar-eg'] = "";

View File

@ -112,6 +112,7 @@
$ivr_menu_options = $_POST["ivr_menu_options"];
$ivr_menu_invalid_sound = $_POST["ivr_menu_invalid_sound"];
$ivr_menu_exit_sound = $_POST["ivr_menu_exit_sound"];
$ivr_menu_pin_number = $_POST["ivr_menu_pin_number"];
$ivr_menu_confirm_macro = $_POST["ivr_menu_confirm_macro"];
$ivr_menu_confirm_key = $_POST["ivr_menu_confirm_key"];
$ivr_menu_tts_engine = $_POST["ivr_menu_tts_engine"];
@ -260,6 +261,7 @@
$array['ivr_menus'][0]["ivr_menu_greet_short"] = $ivr_menu_greet_short;
$array['ivr_menus'][0]["ivr_menu_invalid_sound"] = $ivr_menu_invalid_sound;
$array['ivr_menus'][0]["ivr_menu_exit_sound"] = $ivr_menu_exit_sound;
$array['ivr_menus'][0]["ivr_menu_pin_number"] = $ivr_menu_pin_number;
$array['ivr_menus'][0]["ivr_menu_confirm_macro"] = $ivr_menu_confirm_macro;
$array['ivr_menus'][0]["ivr_menu_confirm_key"] = $ivr_menu_confirm_key;
$array['ivr_menus'][0]["ivr_menu_tts_engine"] = $ivr_menu_tts_engine;
@ -456,6 +458,7 @@
$ivr_menu_greet_short = $row["ivr_menu_greet_short"];
$ivr_menu_invalid_sound = $row["ivr_menu_invalid_sound"];
$ivr_menu_exit_sound = $row["ivr_menu_exit_sound"];
$ivr_menu_pin_number = $row["ivr_menu_pin_number"];
$ivr_menu_confirm_macro = $row["ivr_menu_confirm_macro"];
$ivr_menu_confirm_key = $row["ivr_menu_confirm_key"];
$ivr_menu_tts_engine = $row["ivr_menu_tts_engine"];
@ -1406,6 +1409,17 @@
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " ".$text['label-pin_number']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='ivr_menu_pin_number' maxlength='255' value=\"".escape($ivr_menu_pin_number)."\">\n";
echo "<br />\n";
echo $text['description-pin_number']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " ".$text['label-comfirm_macro']."\n";

View File

@ -98,6 +98,7 @@
ivr_menu_greet_short = row["ivr_menu_greet_short"];
ivr_menu_invalid_sound = row["ivr_menu_invalid_sound"];
ivr_menu_exit_sound = row["ivr_menu_exit_sound"];
ivr_menu_pin_number = row["ivr_menu_pin_number"];
ivr_menu_confirm_macro = row["ivr_menu_confirm_macro"];
ivr_menu_confirm_key = row["ivr_menu_confirm_key"];
ivr_menu_tts_engine = row["ivr_menu_tts_engine"];
@ -248,6 +249,7 @@
table.insert(xml, [[ greet-short="]]..ivr_menu_greet_short..[[" ]]);
table.insert(xml, [[ invalid-sound="]]..ivr_menu_invalid_sound..[[" ]]);
table.insert(xml, [[ exit-sound="]]..ivr_menu_exit_sound..[[" ]]);
table.insert(xml, [[ pin="]]..ivr_menu_pin_number..[[" ]]);
table.insert(xml, [[ confirm-macro="]]..ivr_menu_confirm_macro..[[" ]]);
table.insert(xml, [[ confirm-key="]]..ivr_menu_confirm_key..[[" ]]);
table.insert(xml, [[ tts-engine="]]..ivr_menu_tts_engine..[[" ]]);