#!/usr/bin/luaweb

dofile("/data/config.lua")

local out = ""

if config.struct_Box.bool_GatewayMode == true then
   for k,v in ipairs(config.struct_Box.struct_DChannel) do
      local status
      if config.struct_Box.struct_DChannel[k].bool_CfgValid == true then
         status="active"
      else
         status="inactive"
      end
      out = config.struct_Box.struct_DChannel[k].string_IlidSlot .. "." ..  config.struct_Box.struct_DChannel[k].string_IlidIndex .. "/" ..  config.struct_Box.struct_DChannel[k].string_IlidType .. "/" .. status
      print(out)
   end
else
   print("")	
end





