fusionpbx/includes/install/scripts/resources/functions/database_handle.lua

9 lines
214 B
Lua

--connect to the database
function database_handle(t)
if (t == "system") then
return freeswitch.Dbh(database["system"]);
elseif (t == "switch") then
return freeswitch.Dbh(database["switch"]);
end
end