asterisk/channels
agupta d2f7b22640 chan_pjsip.c: Check for channel and session to not be NULL in hangup
We have seen some rare case of segmentation fault in hangup function
and we could notice that channel pointer was NULL.  Debug log shows
that there is a 200 OK answer and SIP timeout at the same time.  It
looks that while the SIP session was being destroyed due to timeout
call hangup due to answer event lead to race condition and channel
is being destroyed from two different places.  The check ensures we
check it not to be NULL before freeing it.

ASTERISK-25371

Change-Id: I19f6566830640625e08f7b87bfe15758ad33a778
2019-06-10 06:41:06 -06:00
..
dahdi Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
iax2 Fix GCC 8 build issues. 2018-05-11 09:48:58 -04:00
misdn Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
pjsip pjsip: restrict function PJSIP_PARSE_URI to parse only SIP/SIPS URIs 2019-03-27 10:07:47 -06:00
sip chan_sip deprecation. 2018-10-25 08:57:16 -04:00
Makefile Build System: Improve ccache matching for different menuselect options. 2018-08-01 12:01:15 -04:00
chan_alsa.c BuildSystem: Enable Advanced Linux Sound Architecture (ALSA) in NetBSD. 2018-03-16 16:04:26 +01:00
chan_bridge_media.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
chan_console.c Fixes for GCC 9 2019-05-10 10:22:55 -06:00
chan_dahdi.c mwi core: Move core MWI functionality into its own files 2019-04-23 17:40:15 -05:00
chan_dahdi.h chan_dahdi: add missing include. 2019-05-23 08:50:11 -06:00
chan_iax2.c Fixes for GCC 9 2019-05-10 10:22:55 -06:00
chan_mgcp.c mwi core: Move core MWI functionality into its own files 2019-04-23 17:40:15 -05:00
chan_misdn.c module: Remove deprecated modules and update support levels. 2018-07-18 18:15:53 +00:00
chan_motif.c astobj2: Remove legacy ao2_container_alloc routine. 2018-11-21 09:56:16 -05:00
chan_nbs.c module: Remove deprecated modules and update support levels. 2018-07-18 18:15:53 +00:00
chan_oss.c module: Remove deprecated modules and update support levels. 2018-07-18 18:15:53 +00:00
chan_phone.c module: Remove deprecated modules and update support levels. 2018-07-18 18:15:53 +00:00
chan_phone.h Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
chan_pjsip.c chan_pjsip.c: Check for channel and session to not be NULL in hangup 2019-06-10 06:41:06 -06:00
chan_rtp.c loader: Add dependency fields to module structures. 2018-01-15 13:25:51 -05:00
chan_sip.c mwi core: Move core MWI functionality into its own files 2019-04-23 17:40:15 -05:00
chan_skinny.c mwi core: Move core MWI functionality into its own files 2019-04-23 17:40:15 -05:00
chan_unistim.c mwi core: Move core MWI functionality into its own files 2019-04-23 17:40:15 -05:00
chan_vpb.cc module: Remove deprecated modules and update support levels. 2018-07-18 18:15:53 +00:00
console_board.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
console_gui.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
console_video.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
console_video.h Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
misdn_config.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
sig_analog.c channel: Fix some more unprotected channel flag setting. 2018-06-18 09:55:59 -06:00
sig_analog.h chan_dahdi: Configurable dialed digit timeouts 2018-05-03 10:34:12 -05:00
sig_pri.c chan_dahdi: add missing include. 2019-05-23 08:50:11 -06:00
sig_pri.h build: A few gcc 7 error fixes 2017-09-25 07:32:14 -05:00
sig_ss7.c Logger: Convert 'struct ast_callid' to unsigned int. 2015-03-13 01:12:35 +00:00
sig_ss7.h chan_dahdi: Adds support for major update to libss7. 2014-06-16 18:27:51 +00:00
vcodecs.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
vgrabbers.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00