From 9528cd56dabc07b0aa68fe8106bf105a03911a88 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 30 Dec 2008 15:45:17 +0000 Subject: [PATCH] remove media bugs on hangup before api_hangup_hook is run git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11002 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core_state_machine.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/switch_core_state_machine.c b/src/switch_core_state_machine.c index 97e2faffa8..1ea534817f 100644 --- a/src/switch_core_state_machine.c +++ b/src/switch_core_state_machine.c @@ -399,6 +399,8 @@ SWITCH_DECLARE(void) switch_core_session_run(switch_core_session_t *session) 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;