Merge pull request #1421 from moteus/cache_support

Fix. cache.support always returns `false`
This commit is contained in:
FusionPBX 2016-02-03 08:31:27 -07:00
commit a698b32b2a
1 changed files with 9 additions and 5 deletions

View File

@ -9,11 +9,15 @@
require "resources.functions.trim";
local api = api
if (not api) and freeswitch then api = freeswitch.API() else
api = {}
function api:execute()
return '-ERR UNSUPPORTTED'
end
if not api then
if freeswitch then
api = freeswitch.API()
else
api = {}
function api:execute()
return '-ERR UNSUPPORTTED'
end
end
end
local function send_event(action, key)