Merge pull request #1421 from moteus/cache_support
Fix. cache.support always returns `false`
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user