1 -- Copyright 2010 John Crispin <blogic@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
4 m = Map("telephony", translate("VoIP"))
5 m.on_after_commit = function() luci.sys.call("/etc/init.d/telephony reload") end
7 s = m:section(TypedSection, "contact", translate("Contact"), translate("Here You can specify the SIP contacts that you want to use."))
10 s.template = "cbi/tsection"
12 s:option(Value, "desc", translate("Name"))
13 s:option(Value, "code", translate("Shortdial"))
14 s:option(Value, "dial", translate("Dial"))
16 t = s:option(ListValue, "type", translate("Type"))
18 t:value("realm", "Landline")