I was running in a screen session, so
going back to the console it shows it’s a seg fault
2009-02-11 19:27:53 [NOTICE] sofia.c:3090
sofia_handle_sip_i_state() Hangup sofia/internal/1001@192.168.3.206
[CS_EXECUTE] [NORMAL_CLEARING]
Segmentation fault (core dumped)
Seg fault occurs on hangup
What seems to be causing the problem is an
insert statement.
Note I’m using the protected call
function to trap on any sql error (script will abort on error otherwise) but
even calling it unprotected, the result is the same.
function updatecall()
query
= "INSERT INTO CONTACT phonenum, group values 0771111111111, "
.. CALLER ;
freeswitch.consoleLog("info",
query.."\n");
res
= assert (con:execute(query));
if
unexpected_condition then error() end
end
if type == "dtmf" and
obj['digit'] == '9' then
CALL_STATUS = "ORDER";
pcall(updateDNC);
session:streamFile("wait48.wav");
return
"break";
end
function myHangupHook(s, status, arg)
freeswitch.consoleLog("info",
" : They hung up on US!!!\n");
con:close()
env:close()
end
From:
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West
Sent: 11 February 2009 19:18
To:
Subject: Re: [Freeswitch-users] FS
1.0.2 Crash and burn
Can you show us what you're doing?
/b
On Feb 11, 2009, at 1:15 PM,
I have a situation where FS
aborts
I’m running an lua script with
mysql statements
First time it runs, on hangup I get
[CONSOLE] switch_core_memory.c:374
switch_core_memory_reclaim() Returning 4 recycled memory pool(s)
If I run it again, FS exits.
Should there be an error log somewhere
that explains why FS dies?
Regards,