diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-01-11 04:49:25 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-01-11 04:49:25 +0000 |
commit | f4a5a0f653813900894748ee87380d5894d8f435 (patch) | |
tree | 40f00c5a627995e76c1d7507ad1a87d19fcf8d5e /applications/luci-asterisk | |
parent | 20988a0f187eccda0edfb498cd04eb97e2349fd6 (diff) |
applications/luci-asterisk: make regster option a flag value
Diffstat (limited to 'applications/luci-asterisk')
-rw-r--r-- | applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua b/applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua index 1337602e4..28be40561 100644 --- a/applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua +++ b/applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua @@ -42,9 +42,9 @@ if arg[1] then password = peer:option(Value, "secret", "Authorization Password") password.password = true - register = peer:option(ListValue, "register", "Register with peer") - register:value("yes", "on") - register:value("no", "off") + register = peer:option(Flag, "register", "Register with peer") + register.enabled = "yes" + register.disabled = "no" regext = peer:option(Value, "registerextension", "Extension to register (optional)") regext:depends({register="yes"}) |