mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Change. remove CC configuration dependencies from mod_commands. (#1711)
This commit is contained in:
committed by
FusionPBX
parent
594f055c51
commit
873c7ad0a2
@@ -46,13 +46,8 @@
|
||||
assert(dbh:connected());
|
||||
|
||||
--get the variables
|
||||
dsn = trim(api:execute("global_getvar", "dsn")) or '';
|
||||
dsn_callcenter = trim(api:execute("global_getvar", "dsn_callcenter")) or '';
|
||||
|
||||
if dsn:find("INVALID COMMAND", nil, true) then
|
||||
freeswitch.consoleLog('err', '[xml_handler] Can not correctly load mod_callcenter becase mod_commands not loaded\n')
|
||||
dsn, dsn_callcenter = '', ''
|
||||
end
|
||||
dsn = freeswitch.getGlobalVariable("dsn") or ''
|
||||
dsn_callcenter = freeswitch.getGlobalVariable("dsn_callcenter") or ''
|
||||
|
||||
--start the xml array
|
||||
local xml = {}
|
||||
|
||||
Reference in New Issue
Block a user