From dfbb321b5ba6ab4698984a2788748520bc9ff035 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 20 Aug 2016 18:54:02 -0600 Subject: [PATCH] Update record_message.lua --- .../app/voicemail/resources/functions/record_message.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/install/scripts/app/voicemail/resources/functions/record_message.lua b/resources/install/scripts/app/voicemail/resources/functions/record_message.lua index 39d7467479..22f9d860f4 100644 --- a/resources/install/scripts/app/voicemail/resources/functions/record_message.lua +++ b/resources/install/scripts/app/voicemail/resources/functions/record_message.lua @@ -38,7 +38,7 @@ if (skip_instructions == "true") then --skip the instructions else - if (string.len(dtmf_digits) == 0) then + if (dtmf_digits and string.len(dtmf_digits) == 0) then dtmf_digits = macro(session, "record_message", 1, 100); end end @@ -226,4 +226,4 @@ record_menu("message", voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext); end end - end \ No newline at end of file + end