]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Allow SIP pvts involved in Replaces transfers to fall out of reference sooner
authorKinsey Moore <kmoore@digium.com>
Fri, 27 Apr 2012 18:57:47 +0000 (18:57 +0000)
committerKinsey Moore <kmoore@digium.com>
Fri, 27 Apr 2012 18:57:47 +0000 (18:57 +0000)
commit0536634ff1e29fb5b6ca923d9e35a1b757d80274
treee4ea0853867b594509f268c900ea0c216f0f04ca
parent3ef885b576cbdd72e52228ba538e9bd142b4387e
Allow SIP pvts involved in Replaces transfers to fall out of reference sooner

Unref the SIP pvt stored in the refer structure as soon as it is no longer
needed so that the pvt and associated file descriptors can be freed sooner.
This change makes a reference decrement unnecessary in code that handles SIP
BYE/Also transfers which should not touch the reference anyway.

(Closes issue ASTERISK-19579)
Reported by: Maciej Krajewski
Tested by: Maciej Karjewski

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