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
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@400872
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
print_debug_details(inv, NULL, e);
+ if (!session) {
+ return;
+ }
+
switch(e->type) {
case PJSIP_EVENT_TX_MSG:
handle_outgoing(session, e->body.tx_msg.tdata);