]> git.ipfire.org Git - thirdparty/asterisk.git/commit
AST-2012-010: Clean up after a reinvite that never gets a final response
authorTerry Wilson <twilson@digium.com>
Wed, 27 Jun 2012 21:10:01 +0000 (21:10 +0000)
committerTerry Wilson <twilson@digium.com>
Wed, 27 Jun 2012 21:10:01 +0000 (21:10 +0000)
commitaf4791740263d24d323fb3a13c68cbbcfd2170ce
treec9f8bbaf04bcd873c620069cebd46b94a92b7a2f
parentd20913e0b6bcc4512a96a4d9f76343958c4ee7ae
AST-2012-010: Clean up after a reinvite that never gets a final response

The basic problem is that if a re-INVITE is sent by Asterisk and it receives a
provisional response, but no final response, then the dialog is never torn
down. In addition to leaking memory, this also leaks file descriptors and will
eventually lead to Asterisk no longer being able to process calls.

This patch just keeps track of whether there is an outstanding re-INVITE, and if
there is goes ahead and cleans up everything as though there was no outstanding
reinvite.

Review: https://reviewboard.asterisk.org/r/2009/

(closes issue ASTERISK-19992)
Reported by: Steve Davies
Tested by: Steve Davies, Terry Wilson
........

Merged revisions 369436 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@369437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
channels/sip/include/sip.h