From 564f7b88f54a98976da6b8dd135e557c6fa75b47 Mon Sep 17 00:00:00 2001 From: Nathan Neulinger Date: Mon, 14 Apr 2014 13:22:24 -0500 Subject: [PATCH] FS-6460 --resolve fix leaked RTP ports that cause mod_skinny to fail after N calls --- src/mod/endpoints/mod_skinny/mod_skinny.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c index 5ceac06748..adcc1d922a 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.c +++ b/src/mod/endpoints/mod_skinny/mod_skinny.c @@ -875,6 +875,10 @@ switch_status_t channel_on_destroy(switch_core_session_t *session) if (switch_core_codec_ready(&tech_pvt->write_codec)) { switch_core_codec_destroy(&tech_pvt->write_codec); } + + if (switch_rtp_ready(tech_pvt->rtp_session)) { + switch_rtp_destroy(&tech_pvt->rtp_session); + } } switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s CHANNEL DESTROY\n", switch_channel_get_name(channel));