From 0bd5391e34b7cb62f839c2a5d942a883bc4d8c58 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 29 May 2015 05:53:02 +0000 Subject: [PATCH] Add the api object to the failur handler. --- resources/install/scripts/app/failure_handler/index.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/install/scripts/app/failure_handler/index.lua b/resources/install/scripts/app/failure_handler/index.lua index aeb270e600..4f8a2f0ffe 100644 --- a/resources/install/scripts/app/failure_handler/index.lua +++ b/resources/install/scripts/app/failure_handler/index.lua @@ -32,6 +32,8 @@ dofile(scripts_dir .. "/resources/functions/explode.lua"); dofile(scripts_dir .. "/resources/functions/trim.lua"); + + --check the missed calls function missed() if (missed_call_app ~= nil and missed_call_data ~= nil) then @@ -66,6 +68,7 @@ if (debug["info"]) then freeswitch.consoleLog("notice", "[missed call] cmd: " .. cmd .. "\n"); end + api = freeswitch.API(); result = api:executeString(cmd); end end