diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-12-03 15:17:05 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-08 16:26:20 +0100 |
commit | 1bb4822dca6113f73e3bc89e2acf15935e6f8e92 (patch) | |
tree | 35e16f100466e4e00657199b38bb3d87d52bf73f /applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-pbx.lua | |
parent | 9edd0e46c3f880727738ce8ca6ff1c8b85f99ef4 (diff) |
Rework LuCI build system
* Rename subdirectories to their repective OpenWrt package names
* Make each LuCI module its own standalone package
* Deploy a shared luci.mk which is used by each module Makefile
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-pbx.lua')
-rw-r--r-- | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-pbx.lua | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-pbx.lua b/applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-pbx.lua new file mode 100644 index 0000000000..8b22b5cb2d --- /dev/null +++ b/applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-pbx.lua @@ -0,0 +1,64 @@ +--[[ +LuCI - Lua Configuration Interface + +Copyright 2008 Steven Barth <steven@midlink.org> +Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> + +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$ +]]-- + +cbimap = Map("asterisk", "asterisk", "") + +module = cbimap:section(TypedSection, "module", "Modules", "") +module.anonymous = true + +pbx_ael = module:option(ListValue, "pbx_ael", "Asterisk Extension Language Compiler", "") +pbx_ael:value("yes", "Load") +pbx_ael:value("no", "Do Not Load") +pbx_ael:value("auto", "Load as Required") +pbx_ael.rmempty = true + +pbx_config = module:option(ListValue, "pbx_config", "Text Extension Configuration", "") +pbx_config:value("yes", "Load") +pbx_config:value("no", "Do Not Load") +pbx_config:value("auto", "Load as Required") +pbx_config.rmempty = true + +pbx_functions = module:option(ListValue, "pbx_functions", "load => .so ; Builtin dialplan functions", "") +pbx_functions:value("yes", "Load") +pbx_functions:value("no", "Do Not Load") +pbx_functions:value("auto", "Load as Required") +pbx_functions.rmempty = true + +pbx_loopback = module:option(ListValue, "pbx_loopback", "Loopback Switch", "") +pbx_loopback:value("yes", "Load") +pbx_loopback:value("no", "Do Not Load") +pbx_loopback:value("auto", "Load as Required") +pbx_loopback.rmempty = true + +pbx_realtime = module:option(ListValue, "pbx_realtime", "Realtime Switch", "") +pbx_realtime:value("yes", "Load") +pbx_realtime:value("no", "Do Not Load") +pbx_realtime:value("auto", "Load as Required") +pbx_realtime.rmempty = true + +pbx_spool = module:option(ListValue, "pbx_spool", "Outgoing Spool Support", "") +pbx_spool:value("yes", "Load") +pbx_spool:value("no", "Do Not Load") +pbx_spool:value("auto", "Load as Required") +pbx_spool.rmempty = true + +pbx_wilcalu = module:option(ListValue, "pbx_wilcalu", "Wil Cal U (Auto Dialer)", "") +pbx_wilcalu:value("yes", "Load") +pbx_wilcalu:value("no", "Do Not Load") +pbx_wilcalu:value("auto", "Load as Required") +pbx_wilcalu.rmempty = true + + +return cbimap |