mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Update the method to connect to the database with lua.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
|
||||
--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
|
||||
Reference in New Issue
Block a user