summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2015-06-08 11:52:36 -0400
committerTed Trask <ttrask01@yahoo.com>2015-06-08 11:52:36 -0400
commit52192d517342cd53f31973297c836060634a3aec (patch)
treef148d719f2cdd92856efc4c374dad00e7ce3f119
parentfc2453e74aabeda50f034f3323118d1546e49909 (diff)
downloadacf-provisioning-52192d517342cd53f31973297c836060634a3aec.tar.bz2
acf-provisioning-52192d517342cd53f31973297c836060634a3aec.tar.xz
Add algo, cyberdata, and grandstream to determine_class.lua
-rw-r--r--config/determine_class.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/determine_class.lua b/config/determine_class.lua
index 5bc4ecd..8627405 100644
--- a/config/determine_class.lua
+++ b/config/determine_class.lua
@@ -17,6 +17,15 @@ elseif string.match(agent, "Cisco") then
elseif string.match(agent, "snom") then
manufacture = "Snom"
model = string.match(agent, "snom(%d+)")
+elseif string.match(agent, "Grandstream") then
+ manufacture = "Grandstream"
+ model = string.match(agent, "Grandstream[^%d]+(%d+)")
+elseif string.match(agent, "Algo") then
+ manufacture = "Algo"
+ model = string.match(agent, "Algo[^%d]+(%d+)")
+elseif string.match(agent, "^Wget$") then
+ manufacture = "CyberData"
+ model = "Intercom"
end
--functions.logevent("Found "..(manufacture or "").." model "..(model or ""))