diff --git a/resources/install/scripts/directory.lua b/resources/install/scripts/directory.lua index 824052018e..fc6b10a6eb 100644 --- a/resources/install/scripts/directory.lua +++ b/resources/install/scripts/directory.lua @@ -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