Fix. cache.support always returns false

This commit is contained in:
Alexey Melnichuk
2016-02-02 19:54:23 +03:00
parent 1a0301f6f7
commit 05188ffd24
@@ -9,11 +9,15 @@
require "resources.functions.trim"; require "resources.functions.trim";
local api = api local api = api
if (not api) and freeswitch then api = freeswitch.API() else if not api then
api = {} if freeswitch then
function api:execute() api = freeswitch.API()
return '-ERR UNSUPPORTTED' else
end api = {}
function api:execute()
return '-ERR UNSUPPORTTED'
end
end
end end
local function send_event(action, key) local function send_event(action, key)