diff options
Diffstat (limited to 'applications/luci-voice-core/luasrc')
3 files changed, 81 insertions, 0 deletions
diff --git a/applications/luci-voice-core/luasrc/controller/luci_voice.lua b/applications/luci-voice-core/luasrc/controller/luci_voice.lua new file mode 100644 index 0000000000..4d8873e9f5 --- /dev/null +++ b/applications/luci-voice-core/luasrc/controller/luci_voice.lua @@ -0,0 +1,37 @@ +--[[ + +Luci Voice Core +(c) 2009 Daniel Dickinson + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +]]-- + + +module("luci.controller.luci_voice", package.seeall) + +function index() + require("luci.i18n") + luci.i18n.loadc("voice_core") + + local e = entry({"admin", "voice"}, template("luci_voice/index") , luci.i18n.translate("l_v_adminvoice", "Voice"), 90) + e.index = true + e.i18n = "voice_core" + + e = entry({"mini", "voice"}, template("luci_voice/index"), luci.i18n.translate("l_v_minivoice", "Voice"), 90) + e.index = true + e.i18n = "voice_core" + + e = entry({"mini", "voice", "phones"}, template("luci_voice/phone_index"), luci.i18n.translate("l_v_miniphones"), 90) + e.index = true + e.i18n = "voice_core" + + e = entry({"admin", "voice", "phones"}, template("luci_voice/phone_index"), luci.i18n.translate("l_v_adminphones"), 90) + e.index = true + e.i18n = "voice_core" + +end diff --git a/applications/luci-voice-core/luasrc/view/luci_voice/index.htm b/applications/luci-voice-core/luasrc/view/luci_voice/index.htm new file mode 100644 index 0000000000..73d2ce4466 --- /dev/null +++ b/applications/luci-voice-core/luasrc/view/luci_voice/index.htm @@ -0,0 +1,24 @@ +<%# +LuCI - Lua Configuration Interface +(c) 2009 Daniel Dickinson + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +<h2><a id="content" name="content">Voice</a></h2> +<p>Here you can control OpenWRT voice-related settings and see + voice-related information from OpenWRT</p> +<p>In particular Asterisk configuration and information is displayed + here, as well as diagnostics that specifically apply to voice but are + not general networking diagnostics (e.g. includes SIP device scans, but not + ping tests). Includes PSTN phones as well as VoIP and possibly + non-telephony related options. +</p> +<%+footer%> diff --git a/applications/luci-voice-core/luasrc/view/luci_voice/phone_index.htm b/applications/luci-voice-core/luasrc/view/luci_voice/phone_index.htm new file mode 100644 index 0000000000..89b866114a --- /dev/null +++ b/applications/luci-voice-core/luasrc/view/luci_voice/phone_index.htm @@ -0,0 +1,20 @@ +<%# +LuCI - Lua Configuration Interface +(c) 2009 Daniel Dickinson + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +<h2><a id="content" name="content">Phones</a></h2> +<p>Here you can control phone configuration and information in OpenWRT</p> +<p>You can control the setup of phone clients and servers and see + information such as diagnostics related to phone devices from this menu. +</p> +<%+footer%> |