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/1...@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-boun...@lists.freeswitch.org
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of
Brian West
Sent: 11 February 2009 19:18
To: freeswitch-users@lists.freeswitch.org
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, Nik Middleton wrote:





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,

 

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to