summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-pbx/luasrc/model
diff options
context:
space:
mode:
authorIordan Iordanov <iiordanov@gmail.com>2011-12-07 07:35:40 +0000
committerIordan Iordanov <iiordanov@gmail.com>2011-12-07 07:35:40 +0000
commit00a2d24d28783958be16a67cef24834fc13584a9 (patch)
tree44c8ca53d700c29e098fd2db3284ace91d91d53f /applications/luci-pbx/luasrc/model
parent5e83af45ae21ff3b4f77309c667b738ec0982e70 (diff)
1) Changed "express" to "priority" when inserting the QoS rules.
Diffstat (limited to 'applications/luci-pbx/luasrc/model')
-rw-r--r--applications/luci-pbx/luasrc/model/cbi/pbx-advanced.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/applications/luci-pbx/luasrc/model/cbi/pbx-advanced.lua b/applications/luci-pbx/luasrc/model/cbi/pbx-advanced.lua
index f36ca0eb59..4f1034019f 100644
--- a/applications/luci-pbx/luasrc/model/cbi/pbx-advanced.lua
+++ b/applications/luci-pbx/luasrc/model/cbi/pbx-advanced.lua
@@ -108,22 +108,22 @@ function insert_qos_rules()
bindport, rtprange, ipaddr, externhost = get_network_info()
-- Iterate through the QoS rules, and if there is no other rule with the same port
- -- range at the express service level, insert this rule.
+ -- range at the priority service level, insert this rule.
commit = false
m.uci:foreach("qos", "classify",
function(s1)
if s1._name == 'PBX-SIP' then
- if s1.ports ~= bindport or s1.target ~= "Express" or s1.proto ~= "udp" then
+ if s1.ports ~= bindport or s1.target ~= "Priority" or s1.proto ~= "udp" then
m.uci:set("qos", s1['.name'], "ports", bindport)
m.uci:set("qos", s1['.name'], "proto", "udp")
- m.uci:set("qos", s1['.name'], "target", "Express")
+ m.uci:set("qos", s1['.name'], "target", "Priority")
commit = true
end
elseif s1._name == 'PBX-RTP' then
- if s1.ports ~= rtprange or s1.target ~= "Express" or s1.proto ~= "udp" then
+ if s1.ports ~= rtprange or s1.target ~= "Priority" or s1.proto ~= "udp" then
m.uci:set("qos", s1['.name'], "ports", rtprange)
m.uci:set("qos", s1['.name'], "proto", "udp")
- m.uci:set("qos", s1['.name'], "target", "Express")
+ m.uci:set("qos", s1['.name'], "target", "Priority")
commit = true
end
end