mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Add debug info and change method to access the table
Changing the method to access the table with dot notation is just a style should work either way.
This commit is contained in:
@@ -2,8 +2,10 @@
|
||||
--connect to the database
|
||||
function database_handle(t)
|
||||
if (t == "system") then
|
||||
return freeswitch.Dbh(database["system"]);
|
||||
--freeswitch.consoleLog("notice","database.switch " .. database.system .. "\n");
|
||||
return freeswitch.Dbh(database.system);
|
||||
elseif (t == "switch") then
|
||||
return freeswitch.Dbh(database["switch"]);
|
||||
--freeswitch.consoleLog("notice","database.switch " .. trim(database.switch) .. "\n");
|
||||
return freeswitch.Dbh(database.switch);
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user