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