mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-09 10:08:23 +00:00
Update the method to connect to the database with lua.
This commit is contained in:
@@ -40,7 +40,8 @@
|
||||
dofile(scripts_dir.."/resources/functions/mkdir.lua");
|
||||
|
||||
--connect to the database
|
||||
dbh = freeswitch.Dbh(database["system"]);
|
||||
dofile(scripts_dir.."/resources/functions/database_handle.lua");
|
||||
dbh = database_handle('system');
|
||||
|
||||
--make sure the scripts/run dir exists
|
||||
mkdir(scripts_dir .. "/run");
|
||||
|
||||
Reference in New Issue
Block a user