From 08f4f92366d2448b7b408015ee73f627a500406a Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Mon, 31 Dec 2012 16:47:49 +0000 Subject: [PATCH] Use the standard voicemail greeting if the greeting_id is not provided. --- includes/install/scripts/voicemail.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/install/scripts/voicemail.lua b/includes/install/scripts/voicemail.lua index 90aa7c52b3..77d24355a7 100644 --- a/includes/install/scripts/voicemail.lua +++ b/includes/install/scripts/voicemail.lua @@ -486,7 +486,7 @@ if (voicemail_action == "save") then --voicemail prompt - if (greeting_id) then + if (string.len(greeting_id) > 0) then --play the greeting session:streamFile(voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav"); --record your message at the tone press any key or stop talking to end the recording