asterisk/channels/iax2
Richard Mudgett 90bb0a3e10 core: Add cache_media_frames debugging option.
The media frame cache gets in the way of finding use after free errors of
media frames.  Tools like valgrind and MALLOC_DEBUG don't know when a
frame is released because it gets put into the cache instead of being
freed.

* Added the "cache_media_frames" option to asterisk.conf.  Disabling the
option helps track down media frame mismanagement when using valgrind or
MALLOC_DEBUG.  The cache gets in the way of determining if the frame is
used after free and who freed it.  NOTE: This option has no effect when
Asterisk is compiled with the LOW_MEMORY compile time option enabled
because the cache code does not exist.

To disable the media frame cache simply disable the cache_media_frames
option in asterisk.conf and restart Asterisk.

Sample asterisk.conf setting:
[options]
cache_media_frames=no

ASTERISK-27413

Change-Id: I0ab2ce0f4547cccf2eb214901835c2d951b78c00
2017-11-11 14:46:15 -05:00
..
include chan_iax2: Several media format fixes. 2014-08-07 18:51:16 +00:00
codec_pref.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
firmware.c Fix compiler warnings on Fedora 26 / GCC 7. 2017-08-01 15:42:38 -06:00
format_compatibility.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
parser.c core: Add cache_media_frames debugging option. 2017-11-11 14:46:15 -05:00
provision.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00