diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-12-26 21:15:55 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-12-26 21:15:55 +0000 |
commit | 4ba508fd64d5e154064298b1486e27f8e8a170f5 (patch) | |
tree | e3acb01f7cba7315a642b512ef783d553bda4730 | |
parent | 5dfc96c3146a17081f10f9de5a6b256e72eb6c9b (diff) | |
download | acf-freeswitch-4ba508fd64d5e154064298b1486e27f8e8a170f5.tar.bz2 acf-freeswitch-4ba508fd64d5e154064298b1486e27f8e8a170f5.tar.xz |
Replace io.popen with modelfunctions.run_executable
-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 |