From 291277bf4bdae1b1cf925e23f4fdfeb301d81d3d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 23 Mar 2022 11:06:15 -0600 Subject: [PATCH] Update hangup_rx.lua Working on replacing this php command for sending the email. It appears this is locking freeswitch and not completing. Reverting this commit. - https://github.com/fusionpbx/fusionpbx/commit/63e1f7741e165ab549bdb33f69f395317ef3cb10 --- .../resources/scripts/app/fax/resources/scripts/hangup_rx.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/scripts/resources/scripts/app/fax/resources/scripts/hangup_rx.lua b/app/scripts/resources/scripts/app/fax/resources/scripts/hangup_rx.lua index 98e3343bb4..a56be490e0 100644 --- a/app/scripts/resources/scripts/app/fax/resources/scripts/hangup_rx.lua +++ b/app/scripts/resources/scripts/app/fax/resources/scripts/hangup_rx.lua @@ -225,9 +225,7 @@ cmd = cmd .. "fax_prefix=false "; end freeswitch.consoleLog("notice", "[fax] command: " .. cmd .. "\n"); - local handle = io.popen(cmd); - result = handle:read("*a"); - handle:close(); + result = api:execute("system", cmd); --add to fax logs sql = "insert into v_fax_logs ";