Fix. Lua can not generate non CUSTOM event with subclass. (#1756)

There 2 way.
First one generate `MEMCACHE` event without subclass
Second generate `CUSTOM` event with subclass e.g. `fusion::memcache`
This commit is contained in:
Alexey Melnichuk 2016-07-14 20:33:54 +03:00 committed by FusionPBX
parent ba2ad840a5
commit 10f460cfd2
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ if not api then
end
local function send_event(action, key)
local event = freeswitch.Event("MEMCACHE", action);
local event = freeswitch.Event("MEMCACHE");
event:addHeader("API-Command", "memcache");
event:addHeader("API-Command-Argument", action .. " " .. key);
event:fire()