From 87dca160d61a8d15ffc73a0be5f451c9821430a9 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 17 Jan 2013 02:09:45 +0000 Subject: [PATCH] Voicemail - When reviewing voicemail the menu 0 goes to the main menu. When a voicemail is being left use 0 will send the call to the operator. When 9 is pressed fix the emailed notification. --- includes/install/scripts/voicemail.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/install/scripts/voicemail.lua b/includes/install/scripts/voicemail.lua index 933c73b7dc..e8b0329849 100644 --- a/includes/install/scripts/voicemail.lua +++ b/includes/install/scripts/voicemail.lua @@ -998,7 +998,7 @@ timeouts = 0; advanced(); elseif (dtmf_digits == "0") then - session:transfer("0", "XML", context); + main_menu(); elseif (dtmf_digits == "*") then dtmf_digits = ''; macro(session, "goodbye", 1, 100, ''); @@ -1116,7 +1116,8 @@ macro(session, "message_saved", 1, 100, ''); elseif (dtmf_digits == "9") then send_email(voicemail_id, uuid); - macro(session, "emailed", 1, 1000, ''); + dtmf_digits = ''; + macro(session, "emailed", 1, 100, ''); elseif (dtmf_digits == "*") then timeouts = 0; main_menu(); @@ -1770,6 +1771,9 @@ end end +--close the database connection + dbh:release(); + --notes --record the video --records audio only