e1cccebfd7779ac3758455cbb05540e26ca369a8
[project/luci.git] / applications / luci-lqtapifoss / luasrc / model / cbi / luci_lqvoip / account.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2010 John Crispin <blogic@openwrt.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 ]]--
13
14 m = Map("telephony", translate("VoIP"))
15 m.on_after_commit = function() luci.sys.call("/etc/init.d/telephony restart") end
16
17 s = m:section(NamedSection, "account", "account", translate("Account"),
18         translate("Here You can specify the SIP account that you want to use."))
19 s.anonymous = false
20
21 s:option(Value, "realm", translate("Realm"))
22 s:option(Value, "username", translate("Username"))
23 s:option(Value, "password", translate("Password"))
24 s:option(Value, "stun", translate("STUN Server"))
25 stun_port = s:option(Value, "stun_port", translate("STUN Port"))
26 stun_port.default = "3478"
27 sip_port = s:option(Value, "sip_port", translate("SIP Port"))
28 sip_port.default = "5060"
29
30 return m