From f4a5a0f653813900894748ee87380d5894d8f435 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 11 Jan 2009 04:49:25 +0000 Subject: applications/luci-asterisk: make regster option a flag value --- applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'applications/luci-asterisk/luasrc/model/cbi/asterisk') 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 1337602e42..28be405612 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"}) -- cgit v1.2.3