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