Globally reduce copyright headers
[project/luci.git] / applications / luci-app-ltqtapi / luasrc / model / cbi / luci_ltqtapi / contact.lua
1 -- Copyright 2010 John Crispin <blogic@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 m = Map("telephony", translate("VoIP"))
5 m.on_after_commit = function() luci.sys.call("/etc/init.d/telephony reload") end
6
7 s = m:section(TypedSection, "contact", translate("Contact"), translate("Here You can specify the SIP contacts that you want to use."))
8 s.anonymous = true
9 s.addremove = true
10 s.template = "cbi/tsection"
11
12 s:option(Value, "desc", translate("Name"))
13 s:option(Value, "code", translate("Shortdial"))
14 s:option(Value, "dial", translate("Dial"))
15
16 t = s:option(ListValue, "type", translate("Type"))
17 t:value("sip", "SIP")
18 t:value("realm", "Landline")
19
20 return m