[Freeswitch-svn] [commit] r12368 - freeswitch/trunk/src

FreeSWITCH SVN brian at freeswitch.org
Tue Mar 3 08:55:08 PST 2009


Author: brian
Date: Tue Mar  3 10:55:07 2009
New Revision: 12368

Log:
 fix MODAPP-224 

Modified:
   freeswitch/trunk/src/switch_ivr_async.c

Modified: freeswitch/trunk/src/switch_ivr_async.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_async.c	(original)
+++ freeswitch/trunk/src/switch_ivr_async.c	Tue Mar  3 10:55:07 2009
@@ -182,7 +182,14 @@
 		break;
 	case SWITCH_ABC_TYPE_CLOSE:
 		if (dh) {
+			switch_core_session_t *session = switch_core_media_bug_get_session(bug);
+			switch_channel_t *channel;
+
 			switch_core_file_close(&dh->fh);
+
+			if (session && (channel = switch_core_session_get_channel(session))) {
+				switch_channel_set_private(channel, dh->file, NULL);
+			}
 		}
 		break;
 	case SWITCH_ABC_TYPE_READ_REPLACE:
@@ -256,7 +263,14 @@
 		break;
 	case SWITCH_ABC_TYPE_CLOSE:
 		if (dh) {
+			switch_core_session_t *session = switch_core_media_bug_get_session(bug);
+			switch_channel_t *channel;
+
 			switch_core_file_close(&dh->fh);
+
+			if (session && (channel = switch_core_session_get_channel(session))) {
+				switch_channel_set_private(channel, dh->file, NULL);
+			}
 		}
 		break;
 	case SWITCH_ABC_TYPE_WRITE_REPLACE:



More information about the Freeswitch-svn mailing list