mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix the call center dsn variable: dsn_callcenter
This commit is contained in:
@@ -67,9 +67,6 @@
|
|||||||
--get the variables
|
--get the variables
|
||||||
dsn = freeswitch.getGlobalVariable("dsn") or ''
|
dsn = freeswitch.getGlobalVariable("dsn") or ''
|
||||||
dsn_callcenter = freeswitch.getGlobalVariable("dsn_callcenter") 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
|
--start the xml array
|
||||||
local xml = Xml:new();
|
local xml = Xml:new();
|
||||||
@@ -81,9 +78,9 @@
|
|||||||
if #dsn_callcenter > 0 then
|
if #dsn_callcenter > 0 then
|
||||||
xml:append([[ <param name="odbc-dsn" value="]] .. xml.sanitize(dsn_callcenter) .. [["/>]]);
|
xml:append([[ <param name="odbc-dsn" value="]] .. xml.sanitize(dsn_callcenter) .. [["/>]]);
|
||||||
elseif #dsn > 0 then
|
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
|
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([[ <param name="dbname" value="]] .. xml.sanitize(database_dir) .. [[/call_center.db"/>]]);
|
||||||
xml:append([[ </settings>]]);
|
xml:append([[ </settings>]]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user