Actually, all the managed objects are derived from IDisposable, so you should use the .Dispose() method, and let the wrapper do it's job. _____ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Thu, 30 Aug 2012 13:48:07 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state destroy method should have a log line about (destroy/unlink session from object) try calling your garbage collector, this is common issue with scripts and make sure you are on latest GIT build On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry for the excessive logs. Here is my call to originate.
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy();
} catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } });
My hangup callback is getting hit and I am destroying the session
2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5
This is the only call on the system as it is a develpment machine and I see the call state being changed.
2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY
If I call show channels after the above output it show there is a session sitting in CS_SOFT_EXEC corresponding to UUID e315f2e8-1fa8-4fd9-849b-f687dad8aed5. Is there something else I need to do to release the lock on this session to let the resources be reclaimed.
Thanks!
Phillip
_________________________________________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ 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