From 791d0046c019ef1d8cd1ed311941fbc7d71b1fa1 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 2 May 2022 12:09:20 -0600 Subject: [PATCH] Add an option to the select Greeting: none (#6356) * Update play_greeting.lua * Update voicemail_edit.php --- .../app/voicemail/resources/functions/play_greeting.lua | 5 +++++ app/voicemails/voicemail_edit.php | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/scripts/resources/scripts/app/voicemail/resources/functions/play_greeting.lua b/app/scripts/resources/scripts/app/voicemail/resources/functions/play_greeting.lua index a161d7b84e..a7597b3c44 100644 --- a/app/scripts/resources/scripts/app/voicemail/resources/functions/play_greeting.lua +++ b/app/scripts/resources/scripts/app/voicemail/resources/functions/play_greeting.lua @@ -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"); diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index fa984414fb..5217537f75 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - 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 "\n"; echo "