account.lua 612 B

12345678910111213141516
  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 restart") end
  5. s = m:section(TypedSection, "account", translate("Account"), translate("Here You can specify the SIP account that you want to use."))
  6. s.anonymous = true
  7. s.addremove = true
  8. s:option(Value, "realm", translate("Realm"))
  9. s:option(Value, "username", translate("Username"))
  10. s:option(Value, "password", translate("Password"))
  11. s:option(Flag, "disabled", translate("Disabled"))
  12. return m