[commit] r12928 - freeswitch/trunk/src/mod/endpoints/mod_loopback
Author: anthm Date: Mon Apr 6 16:46:59 2009 New Revision: 12928 Log: null out some more stuff Modified: freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c Modified: freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c Mon Apr 6 16:46:59 2009 @@ -268,6 +268,15 @@ if (tech_pvt->other_session) { if (switch_core_session_read_lock(tech_pvt->other_session) != SWITCH_STATUS_SUCCESS) { tech_pvt->other_session = NULL; + tech_pvt->other_tech_pvt = NULL; + tech_pvt->other_channel = NULL; + switch_clear_flag_locked(tech_pvt, TFLAG_LINKED); + if (b_tech_pvt) { + b_tech_pvt->other_session = NULL; + b_tech_pvt->other_tech_pvt = NULL; + b_tech_pvt->other_channel = NULL; + switch_clear_flag_locked(b_tech_pvt, TFLAG_LINKED); + } switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER); goto end; }
participants (1)
-
FreeSWITCH SVN