summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua6
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"})