mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 14:44:28 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@275998 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user