diff --git a/app/switch/resources/scripts/app/xml_handler/resources/scripts/configuration/callcenter.conf.lua b/app/switch/resources/scripts/app/xml_handler/resources/scripts/configuration/callcenter.conf.lua index b30b287082..d674456c21 100644 --- a/app/switch/resources/scripts/app/xml_handler/resources/scripts/configuration/callcenter.conf.lua +++ b/app/switch/resources/scripts/app/xml_handler/resources/scripts/configuration/callcenter.conf.lua @@ -67,6 +67,9 @@ 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();