From de0f311f2d8ba443b13efbffd10bdb527b4defb9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 4 Sep 2012 15:07:09 -0500 Subject: [PATCH] FS-4591 --resolve --- src/mod/languages/mod_managed/managed/ManagedSession.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/languages/mod_managed/managed/ManagedSession.cs b/src/mod/languages/mod_managed/managed/ManagedSession.cs index 07832ae102..0bf28468af 100644 --- a/src/mod/languages/mod_managed/managed/ManagedSession.cs +++ b/src/mod/languages/mod_managed/managed/ManagedSession.cs @@ -145,6 +145,8 @@ namespace FreeSWITCH.Native switch_state_handler_t_delegate del = ptr => { using (var sess = new ManagedSession(new SWIGTYPE_p_switch_core_session(ptr, false))) { handler(sess); + sess.setAutoHangup(false); + sess.destroy(); return switch_status_t.SWITCH_STATUS_SUCCESS; } };