2008-04-26 00:37:03 +00:00
|
|
|
-- This is an example of sending an event via luarun from the cli
|
|
|
|
-- Edit to your liking. luarun mwi_event.lua
|
2008-04-26 01:00:34 +00:00
|
|
|
freeswitch.console_log("info", "Lua in da house!!!\n");
|
2008-04-26 00:37:03 +00:00
|
|
|
|
|
|
|
local event = freeswitch.Event("message_waiting");
|
2008-05-01 19:03:57 +00:00
|
|
|
event:addHeader("MWI-Messages-Waiting", "no");
|
2008-05-01 03:12:26 +00:00
|
|
|
event:addHeader("MWI-Message-Account", "sip:1000@10.0.1.100");
|
2008-04-26 00:37:03 +00:00
|
|
|
event:fire();
|