Fix a race condition in res_pjsip_session with rapidly terminating the session.
authorJoshua Colp <jcolp@digium.com>
Sun, 13 Oct 2013 15:42:20 +0000 (15:42 +0000)
committerJoshua Colp <jcolp@digium.com>
Sun, 13 Oct 2013 15:42:20 +0000 (15:42 +0000)
commitb47851264e506de8a20e4c7be4adcc8262c0b22a
tree597bee26edd140c77cc9b484245cdc01e4a2958c
parent1a0a2b3e4c43c28c720812f162da811a68d630d2
Fix a race condition in res_pjsip_session with rapidly terminating the session.

The INVITE session state callback wrongly assumes that a session will always exist, but
when rapidly terminating the session this assumption goes out the window. As all handler
code for the INVITE session state callback requires the session it will now just exit
immediately if no session exists.

(closes issue ASTERISK-22668)
Reported by: John Bigelow
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400873 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_session.c