Change the row table array to field to prevent a conflict with the existing row table / array.
This commit is contained in:
parent
4cf051d1f8
commit
08014dc042
|
|
@ -266,7 +266,7 @@
|
||||||
--if (debug["sql"]) then
|
--if (debug["sql"]) then
|
||||||
freeswitch.consoleLog("notice", "[directory] SQL: " .. sql .. "\n");
|
freeswitch.consoleLog("notice", "[directory] SQL: " .. sql .. "\n");
|
||||||
--end
|
--end
|
||||||
status = dbh:query(sql, function(row)
|
status = dbh:query(sql, function(field)
|
||||||
--add functions
|
--add functions
|
||||||
dofile(scripts_dir.."/resources/functions/base64.lua");
|
dofile(scripts_dir.."/resources/functions/base64.lua");
|
||||||
|
|
||||||
|
|
@ -274,9 +274,9 @@
|
||||||
file_location = voicemail_dir.."/"..row.extension.."/recorded_name.wav";
|
file_location = voicemail_dir.."/"..row.extension.."/recorded_name.wav";
|
||||||
|
|
||||||
--save the recording to the file system
|
--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");
|
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();
|
file:close();
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue