freeswitch/scripts/lua/originate.lua
2008-05-01 19:03:57 +00:00

7 lines
221 B
Lua

-- Example Lua script to originate. luarun
freeswitch.console_log("info", "Lua in da house!!!\n");
local session = freeswitch.Session("sofia/10.0.1.100/1001");
session:execute("playback", "/sr8k.wav");
session:hangup();