Fix the call center dsn

This commit is contained in:
FusionPBX
2025-12-02 11:12:52 -07:00
committed by GitHub
parent 2966bc3fe2
commit 3b8392eaaa

View File

@@ -78,7 +78,7 @@ require "resources.functions.format_ringback"
if #dsn_callcenter > 0 then
xml:append([[ <param name="odbc-dsn" value="]] .. xml.sanitize(dsn_callcenter) .. [["/>]]);
elseif #dsn > 0 then
xml:append([[ <param name="odbc-dsn" value="]] .. xml.sanitize(database["switch"]) .. [["/>]]);
xml:append([[ <param name="odbc-dsn" value="]] .. xml.sanitize(dsn) .. [["/>]]);
end
xml:append([[ <param name="cc-instance-id" value="]] .. xml.sanitize(hostname) .. [["/>]]);
-- xml:append([[ <param name="dbname" value="]] .. xml.sanitize(database_dir) .. [[/call_center.db"/>]]);