From: Jo-Philipp Wich Date: Sun, 11 Jan 2009 04:49:25 +0000 (+0000) Subject: applications/luci-asterisk: make regster option a flag value X-Git-Tag: 0.9.0~811 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=f4a5a0f653813900894748ee87380d5894d8f435;hp=20988a0f187eccda0edfb498cd04eb97e2349fd6 applications/luci-asterisk: make regster option a flag value --- 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"})