Update remove_deleted_messages.lua
This commit is contained in:
+2
-2
@@ -26,7 +26,7 @@
|
|||||||
--delete all deleted messages for a single mailbox
|
--delete all deleted messages for a single mailbox
|
||||||
function remove_deleted_messages(voicemail_id)
|
function remove_deleted_messages(voicemail_id)
|
||||||
--get the voicemail_uuid
|
--get the voicemail_uuid
|
||||||
local sql = [[SELECT * FROM v_voicemails
|
local sql = [[SELECT * FROM v_voicemails
|
||||||
WHERE domain_uuid = :domain_uuid
|
WHERE domain_uuid = :domain_uuid
|
||||||
AND voicemail_id = :voicemail_id]];
|
AND voicemail_id = :voicemail_id]];
|
||||||
local params = {domain_uuid = domain_uuid, voicemail_id = voicemail_id};
|
local params = {domain_uuid = domain_uuid, voicemail_id = voicemail_id};
|
||||||
@@ -89,4 +89,4 @@
|
|||||||
--flush dtmf digits from the input buffer
|
--flush dtmf digits from the input buffer
|
||||||
session:flushDigits();
|
session:flushDigits();
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user