mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
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:
committed by
FusionPBX
parent
ba2ad840a5
commit
10f460cfd2
@@ -21,7 +21,7 @@ if not api then
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function send_event(action, key)
|
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", "memcache");
|
||||||
event:addHeader("API-Command-Argument", action .. " " .. key);
|
event:addHeader("API-Command-Argument", action .. " " .. key);
|
||||||
event:fire()
|
event:fire()
|
||||||
|
|||||||
Reference in New Issue
Block a user