asterisk/channels
George Joseph 1b4922466b chan_sip: Prevent deadlock when issuing "sip show channels"
sip_show_channels locks the dialogs container first then locks each
sip_pvt so it can spit out the details.  The rest of sip dialog
processing locks the sip_pvt first then locks the dialogs container
if it needs to.  Both lock in the order they need but deadlocks can
result.  To fix, sip_show_channels and sip_show_channelstats have
been converted to use an iterator rather than ao2_callback.  This way
the container is locked only while getting the next entry and is
unlocked when the callback is called.

ASTERISK-23013 #close

Change-Id: Id9980419909e811f89484950ed46ef117b9eb990
2016-07-21 17:11:28 -05:00
..
dahdi Modules: Make ast_module_info->self available to auxiliary sources. 2015-05-04 20:47:01 -04:00
iax2 git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
misdn Makefile: Remove coverage files on 'make clean' 2015-07-04 07:47:06 -05:00
pjsip chan_pjsip: Add 'pjsip show channelstats' 2016-03-29 14:35:31 -05:00
sip Unit tests: Use AST_TEST_DEFINE in conditional code only. 2016-07-18 19:40:22 -04:00
Makefile Makefile: Remove coverage files on 'make clean' 2015-07-04 07:47:06 -05:00
chan_alsa.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_bridge_media.c AST_MODULE_INFO: Format corrections to the usages of AST_MODULE_INFO macro. 2015-05-13 16:34:23 -05:00
chan_console.c Fixes to include signal.h 2016-06-08 20:37:08 +03:00
chan_dahdi.c Fixes to include signal.h 2016-06-08 20:37:08 +03:00
chan_dahdi.h chan_dahdi/sig_analog: Fix distinctive ring detection to suck less. 2015-03-06 20:24:58 +00:00
chan_iax2.c Fixes to include signal.h 2016-06-08 20:37:08 +03:00
chan_mgcp.c Fixes to include signal.h 2016-06-08 20:37:08 +03:00
chan_misdn.c chan_misdn: Fix a few issues causing compile errors 2016-02-05 11:58:54 -06:00
chan_motif.c Fixes to include signal.h 2016-06-08 20:37:08 +03:00
chan_nbs.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_oss.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_phone.c ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
chan_phone.h rename DialTone.h to chan_phone.h because chan_phone.c is the only file using it 2008-05-28 20:00:21 +00:00
chan_pjsip.c res_pjsip: Add missing NULL checks when using pjsip_inv_end_session(). 2016-06-30 15:40:38 -05:00
chan_rtp.c chan_rtp.c: Simplify options to UnicastRTP channel creation. 2016-06-06 17:05:43 -05:00
chan_sip.c chan_sip: Prevent deadlock when issuing "sip show channels" 2016-07-21 17:11:28 -05:00
chan_skinny.c Fixes to include signal.h 2016-06-08 20:37:08 +03:00
chan_unistim.c BuildSystem: Fix a few issues hightlighted by gcc 6.x 2016-06-28 12:40:49 -05:00
chan_vpb.cc ast_format_cap_get_names: To display all formats, the buffer was increased. 2015-11-09 16:58:52 +01:00
console_board.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
console_gui.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
console_video.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
console_video.h implement the 'freeze' function for incoming frames; 2008-06-30 15:45:15 +00:00
misdn_config.c chan_misdn: Fix a few issues causing compile errors 2016-02-05 11:58:54 -06:00
sig_analog.c build_system: Fix some warnings highlighted by clang 2016-02-01 19:22:40 -06:00
sig_analog.h chan_dahdi/sig_analog: Fix distinctive ring detection to suck less. 2015-03-06 20:24:58 +00:00
sig_pri.c build: GCC 5.1.x catches some new const, array bounds and missing paren issues 2015-10-24 16:08:54 -05:00
sig_pri.h sig_pri.h: force_restart_unavailable_chans in wrong scope 2015-07-17 11:02:24 -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 Fix printf problems with high ascii characters after r413586 (1.8). 2014-12-17 10:23:32 +00:00
vgrabbers.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00