From 9ef904fed186fa2b8b040ee1f9bd42c186b8a17e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 14 Feb 2023 17:33:25 -0700 Subject: [PATCH] Backwards comptability for these channel variables - vm_say_caller_id_number - vm_say_date_time --- .../resources/scripts/app/voicemail/index.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/scripts/resources/scripts/app/voicemail/index.lua b/app/scripts/resources/scripts/app/voicemail/index.lua index cacd0c54eb..1684ffcbf6 100644 --- a/app/scripts/resources/scripts/app/voicemail/index.lua +++ b/app/scripts/resources/scripts/app/voicemail/index.lua @@ -187,9 +187,7 @@ if (settings['voicemail']['message_caller_id_number']['text'] ~= nil) then vm_say_caller_id_number = settings['voicemail']['message_caller_id_number']['text']; end - end - else - vm_say_caller_id_number = "before"; + end; end if (not vm_say_date_time) then @@ -198,7 +196,13 @@ vm_say_date_time = settings['voicemail']['message_date_time']['text']; end end - else + end + + if (not vm_say_caller_id_number) then + vm_say_caller_id_number = "before"; + end + + if (not vm_say_date_time) then vm_say_date_time = "before"; end