Update the method to connect to the database with lua.

This commit is contained in:
Mark Crane
2013-04-29 23:29:46 +00:00
parent 3d2f72d2d4
commit ec49f3d6b0
17 changed files with 46 additions and 17 deletions

View File

@@ -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