summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-asterisk/luasrc/model/cbi/asterisk-sip-connections.lua
diff options
context:
space:
mode:
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 3ec1a7019..efb84a01f 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