freeswitch/scripts/lua/mwi_event.lua
2008-04-26 00:37:03 +00:00

9 lines
355 B
Lua

-- This is an example of sending an event via luarun from the cli
-- Edit to your liking. luarun mwi_event.lua
freeswitch.console_log("info", "Sending MWI Event using Lua\n");
local event = freeswitch.Event("message_waiting");
event:add_header("MWI-Messages-Waiting", "no");
event:add_header("MWI-Message-Account", "sip:1002@10.0.1.100");
event:fire();