diff options
Diffstat (limited to 'asterisk-model.lua')
-rw-r--r-- | asterisk-model.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/asterisk-model.lua b/asterisk-model.lua index 38c6a89..afc6a7b 100644 --- a/asterisk-model.lua +++ b/asterisk-model.lua @@ -28,12 +28,16 @@ get_status = function() return modelfunctions.getstatus(processname, packagename, "Asterisk Status") end -function startstop_service(action) - return modelfunctions.startstop_service(processname, action, {"Start", "Stop", "Restart", "Reload"}) +function get_startstop(clientdata) + return modelfunctions.get_startstop(processname) end -get_file = function(filename) - return modelfunctions.getfiledetails(filename, is_valid_filename) +function startstop_service(startstop, action) + return modelfunctions.startstop_service(startstop, action) +end + +get_file = function(clientdata) + return modelfunctions.getfiledetails(clientdata.filename, is_valid_filename) end update_file = function(filedetails) |