mwi_event.lua 393 B

123456789
  1. -- This is an example of sending an event via luarun from the cli
  2. -- Edit to your liking. luarun mwi_event.lua
  3. freeswitch.console_log("info", "Lua in da house!!!\n");
  4. local event = freeswitch.Event("message_waiting");
  5. event:addHeader("MWI-Messages-Waiting", "no");
  6. event:addHeader("MWI-Message-Account", "sip:1000@10.0.1.100");
  7. -- event:addHeader("Sofia-Profile", "internal");
  8. event:fire();