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

FreeSWITCH SVN mikej at freeswitch.org
Tue Dec 30 07:45:17 PST 2008


Author: mikej
Date: Tue Dec 30 10:45:17 2008
New Revision: 11002

Log:
remove media bugs on hangup before api_hangup_hook is run

Modified:
   freeswitch/trunk/src/switch_core_state_machine.c

Modified: freeswitch/trunk/src/switch_core_state_machine.c
==============================================================================
--- freeswitch/trunk/src/switch_core_state_machine.c	(original)
+++ freeswitch/trunk/src/switch_core_state_machine.c	Tue Dec 30 10:45:17 2008
@@ -399,6 +399,8 @@
 					
 					STATE_MACRO(hangup, "HANGUP");
 					
+					switch_core_media_bug_remove_all(session);
+
 					hook_var = switch_channel_get_variable(session->channel, SWITCH_API_HANGUP_HOOK_VARIABLE);
 					if (switch_true(switch_channel_get_variable(session->channel, SWITCH_SESSION_IN_HANGUP_HOOK_VARIABLE))) {
 						use_session = session;



More information about the Freeswitch-svn mailing list