Update main_menu.lua

This commit is contained in:
FusionPBX 2020-01-16 11:18:40 -07:00 committed by GitHub
parent 8d46234780
commit 06bbc223fc
1 changed files with 8 additions and 1 deletions

View File

@ -29,7 +29,14 @@
--clear the value
dtmf_digits = '';
--flush dtmf digits from the input buffer
session:flushDigits();
if (session ~= nil) then
session:flushDigits();
end
--answer the session
if (session ~= nil) then
session:answer();
session:execute("sleep", "1000");
end
--new voicemail count
if (session:ready()) then
local sql = [[SELECT count(*) as new_messages FROM v_voicemail_messages