mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-12 02:03:39 +00:00
FS-6460 --resolve fix leaked RTP ports that cause mod_skinny to fail after N calls
This commit is contained in:
parent
00500421c4
commit
564f7b88f5
@ -875,6 +875,10 @@ switch_status_t channel_on_destroy(switch_core_session_t *session)
|
|||||||
if (switch_core_codec_ready(&tech_pvt->write_codec)) {
|
if (switch_core_codec_ready(&tech_pvt->write_codec)) {
|
||||||
switch_core_codec_destroy(&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));
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s CHANNEL DESTROY\n", switch_channel_get_name(channel));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user