]> 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 20:58:51 +0000 (20:58 +0000)
committerTerry Wilson <twilson@digium.com>
Wed, 27 Jun 2012 20:58:51 +0000 (20:58 +0000)
commit16a61aecde0ba2a4e0926d2bd999343938f85ed7
tree45c851f2fb3a3abe5e5da375801575b9aeeb2df7
parent02fb0d8d28c123a9b998f78a77d0e33d30a80f2c
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

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