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