From 73096006a2c5207173f3a20d58eefe9d70a7c980 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 4 Dec 2013 17:07:34 +0000 Subject: [PATCH] Add voicemail_authorized variable as an option set it up to work with for *97 and *4000. When you check voicemail then press * it prompts for the password or if *98 is dialed it asks for the password. --- resources/install/scripts/app/voicemail/index.lua | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/resources/install/scripts/app/voicemail/index.lua b/resources/install/scripts/app/voicemail/index.lua index 56293a54a9..31423c1d0e 100644 --- a/resources/install/scripts/app/voicemail/index.lua +++ b/resources/install/scripts/app/voicemail/index.lua @@ -86,6 +86,7 @@ skip_instructions = session:getVariable("skip_instructions"); skip_greeting = session:getVariable("skip_greeting"); vm_message_ext = session:getVariable("vm_message_ext"); + voicemail_authorized = session:getVariable("voicemail_authorized"); if (not vm_message_ext) then vm_message_ext = 'wav'; end --set the sounds path for the language, dialect and voice @@ -213,7 +214,19 @@ if (voicemail_action == "check") then if (session:ready()) then --check the voicemail password - check_password(voicemail_id, password_tries); + if (voicemail_id) then + if (voicemail_authorized == nil) then + check_password(voicemail_id, password_tries); + else + if (voicemail_authorized == "true") then + --skip the password check + else + check_password(voicemail_id, password_tries); + end + end + else + check_password(voicemail_id, password_tries); + end --send to the main menu timeouts = 0; main_menu();