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:
parent
09c41b88ef
commit
aacb232fc3
|
|
@ -2,8 +2,10 @@
|
||||||
--connect to the database
|
--connect to the database
|
||||||
function database_handle(t)
|
function database_handle(t)
|
||||||
if (t == "system") then
|
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
|
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
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue