diff options
-rw-r--r-- | freeswitch-model.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/freeswitch-model.lua b/freeswitch-model.lua index 57251c7..e946314 100644 --- a/freeswitch-model.lua +++ b/freeswitch-model.lua @@ -42,9 +42,7 @@ function getreloadxml() end function reload_xml(self, relo) - local f = io.popen(path.."fs_cli -x reloadxml 2>&1") - relo.descr = f:read("*a") - f:close() + relo.descr, relo.errtxt = modelfunctions.run_executable({"fs_cli", "-x", "reloadxml"}, true) return relo end |