summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-asterisk/luasrc/model/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-03-21 04:59:07 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-03-21 04:59:07 +0000
commite71de60f1d1bd594a715338d7f9dbc62a5626c2e (patch)
tree0b23536b5a2842332f49592fad6550d0bf2b32ce /applications/luci-asterisk/luasrc/model/cbi
parent65e41ec629e674ee0a81fadf74019baebfccb20f (diff)
applications/luci-asterisk: don't allow sip extensions to use dialzones as outgoing context
Diffstat (limited to 'applications/luci-asterisk/luasrc/model/cbi')
-rw-r--r--applications/luci-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua10
1 files changed, 1 insertions, 9 deletions
diff --git a/applications/luci-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua b/applications/luci-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua
index 10afe3bef9..dffb8182b1 100644
--- a/applications/luci-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua
+++ b/applications/luci-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua
@@ -27,14 +27,6 @@ local function find_outgoing_contexts(uci)
end
end)
- uci:foreach("asterisk", "dialzone",
- function(s)
- if not h[s['.name']] then
- c[#c+1] = { s['.name'], "Dialzone: %s" % s['.name'] }
- h[s['.name']] = true
- end
- end)
-
return c
end
@@ -146,7 +138,7 @@ elseif arg[1] then
linekey:value("trunk", "Trunk Appearance")
linekey:value("call", "Call Appearance")
- dialplan = peer:option(ListValue, "context", "Dialplan Context")
+ dialplan = peer:option(ListValue, "context", "Assign Dialplan")
for _, v in ipairs(find_outgoing_contexts(cbimap.uci)) do
dialplan:value(unpack(v))
end