Files
fusionpbx/app/switch/resources/scripts/resources/functions/database_handle.lua
2023-06-24 08:32:56 -06:00

12 lines
383 B
Lua

--connect to the database
function database_handle(t)
if (t == "system") then
--freeswitch.consoleLog("notice","database.switch " .. database.system .. "\n");
return freeswitch.Dbh(database.system);
elseif (t == "switch") then
--freeswitch.consoleLog("notice","database.switch " .. trim(database.switch) .. "\n");
return freeswitch.Dbh(database.switch);
end
end