From c0481e62f89b179f87969e1491e3c7d1065efe33 Mon Sep 17 00:00:00 2001 From: Seven Du Date: Sat, 22 Feb 2014 09:44:19 +0800 Subject: [PATCH] FS-6235 try this patch, this will send you a DOWN state at last --- src/mod/endpoints/mod_rtmp/mod_rtmp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod/endpoints/mod_rtmp/mod_rtmp.c b/src/mod/endpoints/mod_rtmp/mod_rtmp.c index 0690a87c73..6e283d2947 100644 --- a/src/mod/endpoints/mod_rtmp/mod_rtmp.c +++ b/src/mod/endpoints/mod_rtmp/mod_rtmp.c @@ -229,6 +229,9 @@ switch_status_t rtmp_on_destroy(switch_core_session_t *session) tech_pvt = switch_core_session_get_private(session); if (tech_pvt) { + + rtmp_notify_call_state(session); + if (switch_core_codec_ready(&tech_pvt->read_codec)) { switch_core_codec_destroy(&tech_pvt->read_codec); }