Create record_message.lua

This commit is contained in:
FusionPBX
2017-06-10 22:57:51 -06:00
committed by GitHub
parent 44a43a43f0
commit ed95497c2f
@@ -131,11 +131,17 @@
if (session:ready()) then if (session:ready()) then
freeswitch.consoleLog("notice", "[voicemail] dtmf_digits: " .. string.sub(dtmf_digits, 0, 1) .. "\n"); freeswitch.consoleLog("notice", "[voicemail] dtmf_digits: " .. string.sub(dtmf_digits, 0, 1) .. "\n");
if (dtmf_digits == "*") then if (dtmf_digits == "*") then
--check the voicemail password if (remote_access == "true") then
check_password(voicemail_id, password_tries); --check the voicemail password
--send to the main menu check_password(voicemail_id, password_tries);
timeouts = 0; --send to the main menu
main_menu(); timeouts = 0;
main_menu();
else
--remote access is false
freeswitch.consoleLog("notice", "[voicemail] remote access is disabled.\n");
session:hangup();
end
elseif (string.sub(dtmf_digits, 0, 1) == "*") then elseif (string.sub(dtmf_digits, 0, 1) == "*") then
--do not allow dialing numbers prefixed with * --do not allow dialing numbers prefixed with *
session:hangup(); session:hangup();