]> 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)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 6 Jan 2021 17:06:46 +0000 (11:06 -0600)
commite127a5776154d3f1abed916c0379d7a8610ccc7e
treeb1d641eb9509559cefc5db1664b297c3f009cbaf
parente96f744816bb7a3847c5712d6f90148f49db04d9
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