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
@@ -30,7 +30,8 @@
digit_timeout = 5000;
--connect to the database
dbh = freeswitch.Dbh(database["system"]);
dofile(scripts_dir.."/resources/functions/database_handle.lua");
dbh = database_handle('system');
--prepare the api object
api = freeswitch.API();
@@ -139,7 +140,8 @@
end_epoch = os.time();
--connect to the database
dbh = freeswitch.Dbh(database["system"]);
dofile(scripts_dir.."/resources/functions/database_handle.lua");
dbh = database_handle('system');
--get the conference sessions
if (conference_session_uuid) then