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-asterisk/luasrc/model/cbi/asterisk-mod-res-feature.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-asterisk/luasrc/model/cbi/asterisk-mod-res-feature.lua')
-rw-r--r-- | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-res-feature.lua | 111 |
1 files changed, 0 insertions, 111 deletions
diff --git a/applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-res-feature.lua b/applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-res-feature.lua deleted file mode 100644 index 35c5d47607..0000000000 --- a/applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-res-feature.lua +++ /dev/null @@ -1,111 +0,0 @@ ---[[ -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", "") - -featuremap = cbimap:section(TypedSection, "featuremap", "Feature Key maps", "") -featuremap.anonymous = true -featuremap.addremove = true - -atxfer = featuremap:option(Value, "atxfer", "Attended transfer key", "") -atxfer.rmempty = true - -blindxfer = featuremap:option(Value, "blindxfer", "Blind transfer key", "") -blindxfer.rmempty = true - -disconnect = featuremap:option(Value, "disconnect", "Key to Disconnect call", "") -disconnect.rmempty = true - -parkcall = featuremap:option(Value, "parkcall", "Key to Park call", "") -parkcall.rmempty = true - - -featurepark = cbimap:section(TypedSection, "featurepark", "Parking Feature", "") -featurepark.anonymous = true - -parkenabled = featurepark:option(Flag, "parkenabled", "Enable Parking", "") - -adsipark = featurepark:option(Flag, "adsipark", "ADSI Park", "") -adsipark.rmempty = true -adsipark:depends({ parkenabled = "1" }) - -atxfernoanswertimeout = featurepark:option(Value, "atxfernoanswertimeout", "Attended transfer timeout (sec)", "") -atxfernoanswertimeout.rmempty = true -atxfernoanswertimeout:depends({ parkenabled = "1" }) - -automon = featurepark:option(Value, "automon", "One touch record key", "") -automon.rmempty = true -automon:depends({ parkenabled = "1" }) - -context = featurepark:option(Value, "context", "Name of call context for parking", "") -context.rmempty = true -context:depends({ parkenabled = "1" }) - -courtesytone = featurepark:option(Value, "courtesytone", "Sound file to play to parked caller", "") -courtesytone.rmempty = true -courtesytone:depends({ parkenabled = "1" }) - -featuredigittimeout = featurepark:option(Value, "featuredigittimeout", "Max time (ms) between digits for feature activation", "") -featuredigittimeout.rmempty = true -featuredigittimeout:depends({ parkenabled = "1" }) - -findslot = featurepark:option(ListValue, "findslot", "Method to Find Parking slot", "") -findslot:value("first", "First available slot") -findslot:value("next", "Next free parking space") -findslot.rmempty = true -findslot:depends({ parkenabled = "1" }) - -parkedmusicclass = featurepark:option(ListValue, "parkedmusicclass", "Music on Hold class for the parked channel", "") -parkedmusicclass.titleref = luci.dispatcher.build_url( "admin", "services", "asterisk" ) -parkedmusicclass:depends({ parkenabled = "1" }) -cbimap.uci:foreach( "asterisk", "moh", function(s) parkedmusicclass:value(s['.name']) end ) - -parkedplay = featurepark:option(ListValue, "parkedplay", "Play courtesy tone to", "") -parkedplay:value("caller", "Caller") -parkedplay:value("parked", "Parked user") -parkedplay:value("both", "Both") -parkedplay.rmempty = true -parkedplay:depends({ parkenabled = "1" }) - -parkext = featurepark:option(Value, "parkext", "Extension to dial to park", "") -parkext.rmempty = true -parkext:depends({ parkenabled = "1" }) - -parkingtime = featurepark:option(Value, "parkingtime", "Parking time (secs)", "") -parkingtime.rmempty = true -parkingtime:depends({ parkenabled = "1" }) - -parkpos = featurepark:option(Value, "parkpos", "Range of extensions for call parking", "") -parkpos.rmempty = true -parkpos:depends({ parkenabled = "1" }) - -pickupexten = featurepark:option(Value, "pickupexten", "Pickup extension", "") -pickupexten.rmempty = true -pickupexten:depends({ parkenabled = "1" }) - -transferdigittimeout = featurepark:option(Value, "transferdigittimeout", "Seconds to wait bewteen digits when transferring", "") -transferdigittimeout.rmempty = true -transferdigittimeout:depends({ parkenabled = "1" }) - -xferfailsound = featurepark:option(Value, "xferfailsound", "sound when attended transfer is complete", "") -xferfailsound.rmempty = true -xferfailsound:depends({ parkenabled = "1" }) - -xfersound = featurepark:option(Value, "xfersound", "Sound when attended transfer fails", "") -xfersound.rmempty = true -xfersound:depends({ parkenabled = "1" }) - - -return cbimap |