summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-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-iax-connections.lua
parentb601dd75c1f3aa72855a65a625892ed4c8088533 (diff)
* luci/app/asterisk: more work on cbi models
Diffstat (limited to 'applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua')
-rw-r--r--applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua b/applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua
index a6b361e493..0102c1b937 100644
--- a/applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua
+++ b/applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua
@@ -21,8 +21,10 @@ iax.addremove = true
alwaysinternational = iax:option(Flag, "alwaysinternational", "Always Dial International", "")
alwaysinternational.optional = true
-context = iax:option(Value, "context", "", "")
-context.optional = true
+context = iax: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 = iax:option(Value, "countrycode", "Country Code for connection", "")
countrycode.optional = true