]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip: Incorporate channel reference count into transfer_refer().
authorDan Cropp <dan@amtelco.com>
Mon, 7 Dec 2020 22:59:51 +0000 (16:59 -0600)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 6 Jan 2021 17:04:05 +0000 (11:04 -0600)
commitfb23f98521bbe94af6694b2b0d79d913756e8b2d
tree07aa5c4f2390f43e4480cce7f0d8e61dc9a32942
parent0e1ba9a7783ea014a391ff26b93cba5e902a0e29
chan_pjsip: Incorporate channel reference count into transfer_refer().

Add channel reference count for PJSIP REFER. The call could be terminated
prior to the result of the transfer. In that scenario, when the SUBSCRIBE/NOTIFY
occurred several minutes later, it would attempt to access a session which was
no longer valid.  Terminate event subscription if pjsip_xfer_initiate() or
pjsip_xfer_send_request() fails in transfer_refer().

ASTERISK-29201 #close
Reported-by: Dan Cropp
Change-Id: I3fd92fd14b4e3844d3d7b0f60fe417a4df5f2435
channels/chan_pjsip.c