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:49:48 +0000 (14:49 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 20 Nov 2014 14:49:48 +0000 (14:49 +0000)
commitd25eda5fb232b4cd68a4c1252ba6e70ed5e89ee9
tree048c1f211ab222bf14dc5f7923cc6a29ba1988bc
parent57c6f89bf082fafb64800ce49b4da74a9c2d8d9d
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
........

Merged revisions 428301 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 428302 from http://svn.asterisk.org/svn/asterisk/branches/13

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