I found my problem I think. switch_core_session_locate automatically locks the session (which is fine), but I didn't unlock it. Strange that things still seemed to work quite well.

Michel

On Mon, Mar 25, 2013 at 9:04 PM, Michel Brabants <michel.brabants@gmail.com> wrote:
Thanks for the info. Is there any way to check what is keeping open the info. I modified the code to send out a notify (using an event). That is all that is different. A 200 OK comes back, but I didn't know that that would create an open reference .. (possibly)

Thanks,

Michel


On Mon, Mar 25, 2013 at 6:07 PM, Peter Olsson <POlsson@enghouse.com> wrote:
There is something still holding a reference to the call, so it can't be destroyed.

Are you using any scripts for this call - Lua, Javascript etc? A common misstake is to have a loop inside these scripts that doesn't exit when it should.

/Peter
________________________________
Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för Michel Brabants [michel.brabants@gmail.com]
Skickat: den 25 mars 2013 17:40
Till: FreeSWITCH Users Help
Ämne: Re: [Freeswitch-users] show channels/calls shows unexisting(destroyed) sip channels

So,

it never seems to get to


    switch_core_session_rwunlock(session);

    switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_NOTICE, "Session %" SWITCH_SIZE_T_FMT " (%s) Ended\n",
                      session->id, switch_channel_get_name(session->channel));


Michel

On Mon, Mar 25, 2013 at 5:37 PM, Michel Brabants <michel.brabants@gmail.com<mailto:michel.brabants@gmail.com>> wrote:
The last thing I can see regarding the state change, is the following:

switch_core_session.c:1518 Session 52 (sofia/sbc-external-2/sip:10000@172.16.102.187<mailto:sip%3A10000@172.16.102.187>) Locked, Waiting on external         entities

After this, I receive a 200 OK, for the BYE that was send before this ...

Michel

Nothing really happens after that

On Mon, Mar 25, 2013 at 4:43 PM, Michel Brabants <michel.brabants@gmail.com<mailto:michel.brabants@gmail.com>> wrote:
Hello,

I was wondering where "show channels" gets its info from. I can see channels that don't exist anymore (freeswitch v1.2.7). All these channels got reinvites (which were processed ok) en they also seem to have entered the hangup-state (in the logfile, not in the channel-overview).

So, I was wondering if show channels has a different view on the exisiting channels in comparison to the internal freeswitch memory.

Thank you and kind regards,

Michel


!DSPAM:51507a3b32761546519956!

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

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