]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_refer/session: Calls dropped during transfer
authorKevin Harwell <kharwell@digium.com>
Tue, 13 Jun 2017 19:17:29 +0000 (14:17 -0500)
committerKevin Harwell <kharwell@digium.com>
Tue, 13 Jun 2017 19:17:29 +0000 (14:17 -0500)
commit6cdf3191d3538b2e9a1aec31580db1e01d73d5ef
treef21d7ced3392480233c1a0268f7ab5722ffd1a30
parentbc51d4324a69a0b8ee4a3be208b91bb2081124ff
res_pjsip_refer/session: Calls dropped during transfer

When doing an attended transfer it's possible for the transferer, after
receiving an accepted response from Asterisk, to send a BYE to Asterisk,
which can then be processed before Asterisk has time to start and/or
complete the transfer process. This of course causes the transfer to not
complete successfully, thus dropping the call.

This patch makes it so any BYEs received from the transferer, after the REFER,
that initiate a session end are deferred until the transfer is complete. This
allows the channel that would have otherwise been hung up by Asterisk to
remain available throughout the transfer process.

ASTERISK-27053 #close

Change-Id: I43586db79079457d92d71f1fd993be9a3b409d5a
include/asterisk/res_pjsip_session.h
res/res_pjsip_refer.c
res/res_pjsip_session.c
res/res_pjsip_session.exports.in