mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-05 19:23:49 +00:00
Update the method to connect to the database with lua.
This commit is contained in:
@@ -39,7 +39,8 @@
|
||||
--dbh = freeswitch.Dbh("core:core"); -- when using sqlite
|
||||
dbh = freeswitch.Dbh("sqlite://"..database_dir.."/core.db");
|
||||
else
|
||||
dbh = freeswitch.Dbh(database["switch"]);
|
||||
dofile(scripts_dir.."/resources/functions/database_handle.lua");
|
||||
dbh = database_handle('switch');
|
||||
end
|
||||
|
||||
--exits the script if we didn't connect properly
|
||||
|
||||
Reference in New Issue
Block a user