<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html><head><meta http-equiv="Content-Type" content="text/html;charset=us-ascii">
<style>BODY{font:10pt Tahoma, Verdana, sans-serif}</style></head><body>
<DIV>Actually, all the managed objects are derived from IDisposable, so you should use the .Dispose() method, and let the wrapper do it's job. </DIV><BR>
<BLOCKQUOTE style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<HR>
<B>From:</B> Anthony Minessale [mailto:anthony.minessale@gmail.com]<BR><B>To:</B> FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org]<BR><B>Sent:</B> Thu, 30 Aug 2012 13:48:07 -0700<BR><B>Subject:</B> Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state<BR><BR>destroy method should have a log line about (destroy/unlink session from object)<BR>try calling your garbage collector, this is common issue with scripts<BR>and make sure you are on latest GIT build<BR><BR><BR>On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles<BR>&lt;<A href="mailto:freeswitch-users@vocalspace.com">freeswitch-users@vocalspace.com</A>&gt; wrote:<BR>&gt; Sorry for the excessive logs. Here is my call to originate.<BR>&gt;<BR>&gt; var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y)<BR>&gt; =&gt; {<BR>&gt; try {<BR>&gt; Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid());<BR>&gt; y.SetAutoHangup(true);<BR>&gt; y.destroy();<BR>&gt;<BR>&gt; } catch( Exception ) {<BR>&gt; Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); <BR>&gt; }<BR>&gt; });<BR>&gt;<BR>&gt;<BR>&gt; My hangup callback is getting hit and I am destroying the session<BR>&gt;<BR>&gt; 2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP:<BR>&gt; e315f2e8-1fa8-4fd9-849b-f687dad8aed5<BR>&gt;<BR>&gt; This is the only call on the system as it is a develpment machine and I see<BR>&gt; the call state being changed.<BR>&gt;<BR>&gt; 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79<BR>&gt; sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING<BR>&gt; 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682<BR>&gt; (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep<BR>&gt; 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407<BR>&gt; (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -&gt; CS_DESTROY<BR>&gt;<BR>&gt;<BR>&gt; If I call show channels after the above output it show there is a session<BR>&gt; sitting in CS_SOFT_EXEC corresponding to UUID<BR>&gt; e315f2e8-1fa8-4fd9-849b-f687dad8aed5.<BR>&gt; Is there something else I need to do to release the lock on this session to<BR>&gt; let the resources be reclaimed.<BR>&gt;<BR>&gt; Thanks!<BR>&gt;<BR>&gt; Phillip<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; _________________________________________________________________________<BR>&gt; Professional FreeSWITCH Consulting Services:<BR>&gt; <A href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</A><BR>&gt; <A href="http://www.freeswitchsolutions.com/" target=_blank>http://www.freeswitchsolutions.com</A><BR>&gt;<BR>&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR>&gt; <A href="http://www.cudatel.com/" target=_blank>http://www.cudatel.com</A><BR>&gt;<BR>&gt; Official FreeSWITCH Sites<BR>&gt; <A href="http://www.freeswitch.org/" target=_blank>http://www.freeswitch.org</A><BR>&gt; <A href="http://wiki.freeswitch.org/" target=_blank>http://wiki.freeswitch.org</A><BR>&gt; <A href="http://www.cluecon.com/" target=_blank>http://www.cluecon.com</A><BR>&gt;<BR>&gt; FreeSWITCH-users mailing list<BR>&gt; <A href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</A><BR>&gt; <A href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>&gt; UNSUBSCRIBE:<A href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR>&gt; <A href="http://www.freeswitch.org/" target=_blank>http://www.freeswitch.org</A><BR>&gt;<BR><BR><BR><BR>-- <BR>Anthony Minessale II<BR><BR>FreeSWITCH <A href="http://www.freeswitch.org/" target=_blank>http://www.freeswitch.org/</A><BR>ClueCon <A href="http://www.cluecon.com/" target=_blank>http://www.cluecon.com/</A><BR>Twitter: <A href="http://twitter.com/FreeSWITCH_wire" target=_blank>http://twitter.com/FreeSWITCH_wire</A><BR><BR>AIM: anthm<BR>MSN:<A href="mailto:anthony_minessale@hotmail.com">anthony_minessale@hotmail.com</A><BR>GTALK/JABBER/PAYPAL:<A href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</A><BR>IRC: irc.freenode.net #freeswitch<BR><BR>FreeSWITCH Developer Conference<BR>sip:<A href="mailto:888@conference.freeswitch.org">888@conference.freeswitch.org</A><BR>googletalk:<A href="mailto:conf+888@conference.freeswitch.org">conf+888@conference.freeswitch.org</A><BR>pstn:+19193869900<BR><BR>_________________________________________________________________________<BR>Professional FreeSWITCH Consulting Services:<BR><A href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</A><BR><A href="http://www.freeswitchsolutions.com/" target=_blank>http://www.freeswitchsolutions.com</A><BR><BR>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR><A href="http://www.cudatel.com/" target=_blank>http://www.cudatel.com</A><BR><BR>Official FreeSWITCH Sites<BR><A href="http://www.freeswitch.org/" target=_blank>http://www.freeswitch.org</A><BR><A href="http://wiki.freeswitch.org/" target=_blank>http://wiki.freeswitch.org</A><BR><A href="http://www.cluecon.com/" target=_blank>http://www.cluecon.com</A><BR><BR>FreeSWITCH-users mailing list<BR><A href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</A><BR><A href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>UNSUBSCRIBE:<A href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR><A href="http://www.freeswitch.org/" target=_blank>http://www.freeswitch.org</A><BR></BLOCKQUOTE>
<STYLE>
</STYLE>

<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></body></html>