mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 17:13:49 +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
|
||||
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user