[Freeswitch-svn] [commit] r9893 - freeswitch/trunk/src/mod/endpoints/mod_loopback
Freeswitch SVN
anthm at freeswitch.org
Wed Oct 8 12:04:40 EDT 2008
Author: anthm
Date: Wed Oct 8 12:04:39 2008
New Revision: 9893
Modified:
freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c
Log:
tweak
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 Wed Oct 8 12:04:39 2008
@@ -332,8 +332,10 @@
switch_clear_flag_locked(tech_pvt->other_tech_pvt, TFLAG_LINKED);
}
- switch_channel_hangup(tech_pvt->other_channel, switch_channel_get_cause(channel));
- switch_core_session_rwunlock(tech_pvt->other_session);
+ if (tech_pvt->other_session) {
+ switch_channel_hangup(tech_pvt->other_channel, switch_channel_get_cause(channel));
+ switch_core_session_rwunlock(tech_pvt->other_session);
+ }
return SWITCH_STATUS_SUCCESS;
}
More information about the Freeswitch-svn
mailing list