Fix the call center dsn variable: dsn_callcenter

This commit is contained in:
FusionPBX
2025-12-02 11:11:30 -07:00
committed by GitHub
parent 9d2ae7e41e
commit 61ac73251b

View File

@@ -67,9 +67,6 @@ require "resources.functions.format_ringback"
--get the variables
dsn = freeswitch.getGlobalVariable("dsn") or ''
dsn_callcenter = freeswitch.getGlobalVariable("dsn_callcenter") or ''
if #dsn_callcenter > 0 then
dsn_callcenter = freeswitch.getGlobalVariable("dsn_call_center") or ''
end
--start the xml array
local xml = Xml:new();
@@ -81,9 +78,9 @@ 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="cc-instance-id" value="]] .. xml.sanitize(hostname) .. [["/>]]);
-- xml:append([[ <param name="dbname" value="]] .. xml.sanitize(database_dir) .. [[/call_center.db"/>]]);
xml:append([[ </settings>]]);