Plz get that jira opened! :)<br>-MC<br><br>On Friday, August 31, 2012, Phillip Boles <<a href="mailto:freeswitch-users@vocalspace.com">freeswitch-users@vocalspace.com</a>> wrote:<br>> Anthony,<br>> adding switch_core_session_soft_unlock(session); below switch_core_session_rwunlock(session);<br>
><br>> moves the call state from CS_SOFT_EXEC to CS_HANGUP but the channel still persists waiting on external entities. I am calling mod_shout to play an audio on the channel earlier in the session.<br>> I dont know if that helps.<br>
> Thanks!<br>> Phillip<br>> On Aug 31, 2012, at 4:16 PM, Phillip Boles wrote:<br>><br>> Sorry Yes using the latest.<br>><br>> Using commit a8ce9ac29f3ba000bf42ab2286be04cc7bf9f509<br>> Author: Anthony Minessale <<a href="mailto:anthm@freeswitch.org">anthm@freeswitch.org</a>><br>
> Date: Thu Aug 30 17:17:15 2012 -0500<br>><br>> Changes made switch_cpp.cpp starting at Line 1000<br>> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Calling CoreSession::destroy\n");<br>
> if (session) {<br>> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "We still have valid session\n");<br>><br>> if (!channel) {<br>> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! Trying to get it!\n");<br>
><br>> channel = switch_core_session_get_channel(session);<br>> }<br>><br>> if (channel) {<br>> switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,<br>
> "%s destroy/unlink session from object\n", switch_channel_get_name(channel));<br>> switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,<br>
> "%s destroy/unlink uuid\n", switch_channel_get_uuid(channel));<br>> switch_channel_set_private(channel, "CoreSession", NULL);<br>
> if (switch_channel_up(channel) && switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) {<br>> switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING);<br>
> }<br>> } else {<br>> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! We Failed to get it!\n");<br>> }<br>
><br>> [CRIT] switch_cpp.cpp:1000 Calling CoreSession::destroy<br>> [CRIT] switch_cpp.cpp:1002 We still have valid session<br>> [DEBUG] switch_cpp.cpp:1011 sofia/external/12146635351 destroy/unlink session from object<br>
> [DEBUG] switch_cpp.cpp:1013 83451093-e04f-49c1-9f55-5dd966bc4ba9 destroy/unlink uuid<br>> [DEBUG] switch_core_state_machine.c:92 sofia/external/XXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING<br>> [DEBUG] switch_core_state_machine.c:703 (sofia/external/XXXXXXXXXX ) State REPORTING going to sleep<br>
> [DEBUG] switch_core_state_machine.c:423 (sofia/external/XXXXXXXXXX ) State Change CS_REPORTING -> CS_DESTROY<br>> [DEBUG] switch_core_session.c:1210 Send signal sofia/external/XXXXXXXXXX [BREAK]<br>> [DEBUG] switch_core_session.c:1415 Session 2 (sofia/external/XXXXXXXXXX ) Locked, Waiting on external entities<br>
><br>><br>><br>> channel remains hung<br>><br>> P<br>><br>> On Aug 31, 2012, at 12:26 PM, Anthony Minessale wrote:<br>><br>> 1) You did not answer the question if you are on latest GIT HEAD. If<br>
><br>> you are on anything else update...<br>><br>> 2) Add some debugging to switch_cpp.cpp about line 1000<br>><br>> use lines like this to follow the code paths when you call destroy<br>><br>> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "BLAH\n");<br>
><br>> The part I am concerned with is when you call destroy you dont see the<br>><br>> log line you should:<br>><br>> switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,<br>><br>
> "%s destroy/unlink session from<br>><br>> object\n", switch_channel_get_name(channel));<br>><br>> This makes me wonder if you are some older version...<br>><br>><br>
><br>><br>><br>><br>> On Fri, Aug 31, 2012 at 11:57 AM, Phillip Boles<br>><br>> <<a href="mailto:freeswitch-users@vocalspace.com">freeswitch-users@vocalspace.com</a>> wrote:<br>><br>> var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y)<br>
><br>> =<br><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>