Voicemail use tail calls (#5984)

reference https://www.lua.org/pil/6.3.html
This commit is contained in:
agree 2021-09-18 12:36:37 -04:00 committed by GitHub
parent 17a7dff859
commit 7fd5f53384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@
if (debug["info"]) then
freeswitch.consoleLog("notice", message_number.." "..string.lower(row["voicemail_message_uuid"]).." "..row["created_epoch"]);
end
listen_to_recording(message_number, string.lower(row["voicemail_message_uuid"]), row["created_epoch"], row["caller_id_name"], row["caller_id_number"], message_status);
return listen_to_recording(message_number, string.lower(row["voicemail_message_uuid"]), row["created_epoch"], row["caller_id_name"], row["caller_id_number"], message_status);
end
end);
end
@ -110,6 +110,6 @@
--send back to the main menu
if (session:ready()) then
timeouts = 0;
main_menu();
return main_menu();
end
end