freeswitch/scripts/lua/mwi_event.lua
Brian West f59b8ed1dc update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8231 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-01 03:12:26 +00:00

9 lines
345 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", "Lua in da house!!!\n");
local event = freeswitch.Event("message_waiting");
event:addHeader("MWI-Messages-Waiting", "yes");
event:addHeader("MWI-Message-Account", "sip:1000@10.0.1.100");
event:fire();