smap_devinfo_mini.lua 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. smap_devinfo - SIP Device Information
  3. (c) 2009 Daniel Dickinson
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. $Id$
  9. ]]--
  10. require("luci.i18n")
  11. require("luci.util")
  12. require("luci.sys")
  13. require("luci.model.uci")
  14. require("luci.controller.luci_diag.smap_common")
  15. require("luci.controller.luci_diag.devinfo_common")
  16. local debug = false
  17. m = SimpleForm("luci-smap-to-devinfo", translate("Phone Information"), translate("Scan for supported SIP devices on specified networks."))
  18. m.reset = false
  19. m.submit = false
  20. local outnets = luci.controller.luci_diag.smap_common.get_params()
  21. luci.controller.luci_diag.devinfo_common.run_processes(outnets, luci.controller.luci_diag.smap_common.command_function)
  22. luci.controller.luci_diag.devinfo_common.parse_output(m, outnets, true, "smap", true, debug)
  23. luci.controller.luci_diag.smap_common.action_links(m, true)
  24. return m