From 75b54ab02a3ec331d673ebd4c07e686d46e40987 Mon Sep 17 00:00:00 2001 From: twilson Date: Tue, 13 Jul 2010 17:11:37 +0000 Subject: Destroy RTP fds when we schedule final dialog destruction Since we are only keeping the dialog around for retransmissions at this point and there is no possibility that we are still handling RTP, go ahead and destroy the RTP sessions. Keeping them alive for 32 past when they are used is unnecessary and can lead to problems with having too many open file descriptors, etc. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@275998 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/sip/include/dialog.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'channels/sip') diff --git a/channels/sip/include/dialog.h b/channels/sip/include/dialog.h index ed31b7774..08dd6d3f0 100644 --- a/channels/sip/include/dialog.h +++ b/channels/sip/include/dialog.h @@ -40,6 +40,10 @@ void sip_scheddestroy_final(struct sip_pvt *p, int ms); void sip_scheddestroy(struct sip_pvt *p, int ms); int sip_cancel_destroy(struct sip_pvt *p); +/*! \brief Destroy the RTP instances associated with a dialog + */ +void sip_destroy_rtp(struct sip_pvt *p); + /*! \brief Destroy SIP call structure. * Make it return NULL so the caller can do things like * foo = sip_destroy(foo); -- cgit v1.2.1