]> git.ipfire.org Git - thirdparty/asterisk.git/commit
AST-2014-015: Fix race condition in chan_pjsip when sending responses after a CANCEL...
authorJoshua Colp <jcolp@digium.com>
Thu, 20 Nov 2014 14:48:32 +0000 (14:48 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 20 Nov 2014 14:48:32 +0000 (14:48 +0000)
commit8974e2dee27ed1668b7f434c0d2e1a5f18525749
treec192297b785ddd0a627c5b3d9bd3e9e59800f003
parentf55b7ce116e8559b2acd42cc544a2b0df9c0a058
AST-2014-015: Fix race condition in chan_pjsip when sending responses after a CANCEL has been received.

Due to the serialized architecture of chan_pjsip there exists a race condition where a CANCEL may
be received and processed before responses (such as 180 Ringing, 183 Session Progress, and 200 OK)
are sent. Since the session is in an unexpected state PJSIP will assert when this is attempted.

This change makes it so that these responses are not sent on disconnected sessions.

ASTERISK-24471 #close
Reported by: yaron nahum

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@428301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_pjsip.c