summaryrefslogtreecommitdiffstats
path: root/freeswitch-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:18:30 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:18:30 +0000
commit39f60af92aae372c9a386e8ecb94ee31d4ea8b25 (patch)
tree6c79afa7259932bf278c69a784dced7ab80895f3 /freeswitch-model.lua
parentf8a8ab3c1367ee6f55e7b982c8095022cae85af4 (diff)
downloadacf-freeswitch-39f60af92aae372c9a386e8ecb94ee31d4ea8b25.tar.bz2
acf-freeswitch-39f60af92aae372c9a386e8ecb94ee31d4ea8b25.tar.xz
Started work on updating for acf-core-0.15
Removed controllerfunctions library (still needs more work and corresponding work in model) Updated startstop functionality and deleted view Updated for viewfunctions to htmlviewfunctions and modified require statements for acf libraries
Diffstat (limited to 'freeswitch-model.lua')
-rw-r--r--freeswitch-model.lua14
1 files changed, 9 insertions, 5 deletions
diff --git a/freeswitch-model.lua b/freeswitch-model.lua
index 3c2cb95..e42fd1f 100644
--- a/freeswitch-model.lua
+++ b/freeswitch-model.lua
@@ -3,9 +3,9 @@ module (..., package.seeall)
-- Load libraries
require("modelfunctions")
require("posix")
-require("fs")
-require("format")
-require("validator")
+fs = require("acf.fs")
+format = require("acf.format")
+validator = require("acf.validator")
-- Set variables
local processname = "freeswitch"
@@ -29,8 +29,12 @@ get_status = function()
return modelfunctions.getstatus(processname, packagename, "Freeswitch Status")
end
-function startstop_service(action)
- return modelfunctions.startstop_service(processname, action, {"Start", "Stop", "Restart"})
+function get_startstop(clientdata)
+ return modelfunctions.get_startstop(processname)
+end
+
+function startstop_service(startstop, action)
+ return modelfunctions.startstop_service(startstop, action)
end
function reload_xml()