Allow SIP pvts involved in Replaces transfers to fall out of reference sooner
authorKinsey Moore <kmoore@digium.com>
Fri, 27 Apr 2012 18:59:36 +0000 (18:59 +0000)
committerKinsey Moore <kmoore@digium.com>
Fri, 27 Apr 2012 18:59:36 +0000 (18:59 +0000)
commit83cf78deda23b3799751c6a25df83eecf973e348
treeb64eb0f1c7890b667d42c85cc847ff059527ca72
parent103031330aa411b50b930ad7e307c3d187fda821
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 Krajewski
........

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

Merged revisions 364259 from http://svn.asterisk.org/svn/asterisk/branches/10

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