diff --git a/resources/install/scripts/app/xml_handler/resources/scripts/configuration/callcenter.conf.lua b/resources/install/scripts/app/xml_handler/resources/scripts/configuration/callcenter.conf.lua index 611ee82d2a..0219bcd2de 100644 --- a/resources/install/scripts/app/xml_handler/resources/scripts/configuration/callcenter.conf.lua +++ b/resources/install/scripts/app/xml_handler/resources/scripts/configuration/callcenter.conf.lua @@ -76,6 +76,7 @@ x = 0; dbh:query(sql, function(row) --set as variables + queue_uuid = row.call_center_queue_uuid; domain_uuid = row.domain_uuid; domain_name = row.domain_name; queue_name = row.queue_name; @@ -100,7 +101,7 @@ queue_name = queue_name:gsub(" ", "-"); --start the xml - table.insert(xml, [[ ]]); + table.insert(xml, [[ ]]); table.insert(xml, [[ ]]); --set ringback queue_ringback = format_ringback(queue_moh_sound); @@ -161,6 +162,7 @@ x = 0; dbh:query(sql, function(row) --get the values from the database and set as variables + agent_uuid = row.call_center_agent_uuid; domain_uuid = row.domain_uuid; domain_name = row.domain_name; agent_name = row.agent_name; @@ -222,7 +224,8 @@ --build the xml string table.insert(xml, [[ ]]); + table.insert(xml, [[ agent="]]..agent_uuid..[[" ]]); + table.insert(xml, [[ queue="]]..queue_uuid..[[" ]]); + table.insert(xml, [[ domain_name="]]..domain_name..[[" ]]); + --table.insert(xml, [[ agent_name="]]..agent_name..[[" ]]); + --table.insert(xml, [[ queue_name="]]..queue_name..[[" ]]); + table.insert(xml, [[ level="]]..tier_level..[[" ]]); + table.insert(xml, [[ position="]]..tier_position..[[" ]]); + table.insert(xml, [[ />]]); end) table.insert(xml, [[ ]]);