mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
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.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user