summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-asterisk/luasrc/model/cbi/asterisk-sip-connections.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-10-23 15:42:12 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-10-23 15:42:12 +0000
commit406400a198a073c54a02eaf3583f26cdab6691bc (patch)
tree5aba81810f508e2666a85ba43dd8512200ddc864 /applications/luci-asterisk/luasrc/model/cbi/asterisk-sip-connections.lua
parentb601dd75c1f3aa72855a65a625892ed4c8088533 (diff)
* luci/app/asterisk: more work on cbi models
Diffstat (limited to 'applications/luci-asterisk/luasrc/model/cbi/asterisk-sip-connections.lua')
-rw-r--r--applications/luci-asterisk/luasrc/model/cbi/asterisk-sip-connections.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/applications/luci-asterisk/luasrc/model/cbi/asterisk-sip-connections.lua b/applications/luci-asterisk/luasrc/model/cbi/asterisk-sip-connections.lua
index 3ec1a70193..efb84a01f7 100644
--- a/applications/luci-asterisk/luasrc/model/cbi/asterisk-sip-connections.lua
+++ b/applications/luci-asterisk/luasrc/model/cbi/asterisk-sip-connections.lua
@@ -28,8 +28,10 @@ canreinvite:value("update", "Use UPDATE rather than INVITE for path redirection"
canreinvite:value("no", "No")
canreinvite.optional = true
-context = sip:option(Value, "context", "", "")
-context.optional = true
+context = sip:option(ListValue, "context", "Context to use", "")
+context.titleref = luci.dispatcher.build_url( "admin", "services", "asterisk", "dialplans" )
+cbimap.uci:foreach( "asterisk", "dialplan", function(s) context:value(s['.name']) end )
+cbimap.uci:foreach( "asterisk", "dialzone", function(s) context:value(s['.name']) end )
countrycode = sip:option(Value, "countrycode", "Country Code for connection", "")
countrycode.optional = true