1
0

contact.lua 680 B

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