Change the row table array to field to prevent a conflict with the existing row table / array.

This commit is contained in:
Mark Crane 2015-04-18 22:49:09 +00:00
parent 4cf051d1f8
commit 08014dc042
1 changed files with 3 additions and 3 deletions

View File

@ -266,7 +266,7 @@
--if (debug["sql"]) then
freeswitch.consoleLog("notice", "[directory] SQL: " .. sql .. "\n");
--end
status = dbh:query(sql, function(row)
status = dbh:query(sql, function(field)
--add functions
dofile(scripts_dir.."/resources/functions/base64.lua");
@ -274,9 +274,9 @@
file_location = voicemail_dir.."/"..row.extension.."/recorded_name.wav";
--save the recording to the file system
if (string.len(row["voicemail_name_base64"]) > 32) then
if (string.len(field["voicemail_name_base64"]) > 32) then
local file = io.open(file_location, "w");
file:write(base64.decode(row["voicemail_name_base64"]));
file:write(base64.decode(field["voicemail_name_base64"]));
file:close();
end