Greetings,
I have the following LUA script (at end of email) in a fresh
FS 1.0.4 install. I originally did an upgrade from one of the 1.0.4preX
versions but when I came across this issue I went fresh just to make sure there
wasn’t an incompatibility with my previous config.
What I’m seeing is a seg fault and a core dump after
playing a sound file. I originally had a file I recorded but when I ran
into this issue I figured I’d try an included sound file but that doesn’t
seem to make a bit of difference.
2009-08-11 22:52:20.327071 [INFO] switch_cpp.cpp:1130
Starting test.lua
2009-08-11 22:52:20.327071 [INFO] switch_cpp.cpp:1130 Caller
[XXXXXXXXXX] connected
2009-08-11 22:52:20.327071 [INFO] switch_cpp.cpp:1130 Pre
streamFile
Segmentation fault (core dumped)
Any ideas?
Thanks,
Charlie
freeswitch.consoleLog("INFO",
string.format("Starting test.lua\n"))
session:answer();
session:setHangupHook("session_hangup_hook")
calleridnumber =
session:getVariable("caller_id_number")
calleridname =
session:getVariable("caller_id_name")
if session:ready() then
freeswitch.consoleLog("INFO",
string.format("Caller [" .. calleridnumber .. "]
connected\n"))
freeswitch.consoleLog("INFO",
string.format("Pre streamFile\n"))
session:streamFile("conference/8000/conf-welcome.wav")
freeswitch.consoleLog("INFO",
string.format("Post streamFile.\n"))
end
function session_hangup_hook(status)
freeswitch.consoleLog("INFO", "Session
hangup: \n") --[[ .. status .. "\n") ]]--
error()
end
session:hangup()