Voicemail use tail calls (#5984)
reference https://www.lua.org/pil/6.3.html
This commit is contained in:
@@ -82,7 +82,7 @@
|
|||||||
if (debug["info"]) then
|
if (debug["info"]) then
|
||||||
freeswitch.consoleLog("notice", message_number.." "..string.lower(row["voicemail_message_uuid"]).." "..row["created_epoch"]);
|
freeswitch.consoleLog("notice", message_number.." "..string.lower(row["voicemail_message_uuid"]).." "..row["created_epoch"]);
|
||||||
end
|
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);
|
end);
|
||||||
end
|
end
|
||||||
@@ -110,6 +110,6 @@
|
|||||||
--send back to the main menu
|
--send back to the main menu
|
||||||
if (session:ready()) then
|
if (session:ready()) then
|
||||||
timeouts = 0;
|
timeouts = 0;
|
||||||
main_menu();
|
return main_menu();
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user