Add an option to the select Greeting: none (#6356)

* Update play_greeting.lua

* Update voicemail_edit.php
This commit is contained in:
FusionPBX
2022-05-02 12:09:20 -06:00
committed by GitHub
parent eee7786529
commit 791d0046c0
2 changed files with 7 additions and 1 deletions

View File

@@ -47,6 +47,11 @@
dtmf_digits = '';
if (string.len(greeting_id) > 0 and greeting_id ~= "default") then
--greeting set to none, return without a greeting
if (greeting_id == "0") then
return true;
end
--sleep
session:execute("playback","silence_stream://200");

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2020
Portions created by the Initial Developer are Copyright (C) 2008-2022
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -522,6 +522,7 @@
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='greeting_id'>\n";
echo " <option value=''>".$text['label-default']."</option>\n";
echo " <option value='0' ".(($greeting_id == "0") ? "selected='selected'" : null).">".$text['label-none']."</option>\n";
if (is_array($greetings) && @sizeof($greetings) != 0) {
foreach ($greetings as $greeting) {
$selected = ($greeting['greeting_id'] == $greeting_id) ? 'selected' : null;