summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-03-17core: Stop using AST_INLINE_API for allocator functions.Corey Farrell
This replaces AST_INLINE_API allocators in utils.h with real functions implemented in astmm.c. Associated macro's are also moved from utils.h to astmm.h. Remove menuselect conflicts between MALLOC_DEBUG and DEBUG_CHAOS as they can now be combined. This has multiple benefits: * Simplifies asterisk/utils.h by removing inline functions and use of the logger. * Removal of these inline functions decreases size of Asterisk and module binaries by 1% or more. * Puts memory management functions together with and without MALLOC_DEBUG enabled, simplifying management of the code. * Enables DEBUG_CHAOS for ASTMM_REDIRECT and bundled pjproject. Change-Id: If9df4377f74bdbb627461b27a473123e05525887
2018-03-16Merge "astobj2_container: Use ast_cli_completion_add for container names."Joshua Colp
2018-03-16Merge "main/ccss: Use ast_cli_completion_add for core id."Jenkins2
2018-03-16Merge "main/channel: Use ast_cli_completion_add for channeltypes."Jenkins2
2018-03-16Merge "cli: Enable ast_cli_completion_add on public completion generators."Jenkins2
2018-03-15install_prereq: Add Arch Linux.Alexander Traud
ASTERISK-27738 Change-Id: I7ca620e3c4dfb4b064a19382c4915aeb42a2a09f
2018-03-15main/ccss: Use ast_cli_completion_add for core id.Corey Farrell
Change-Id: I44b25d6d24c7d9bc1bb38a50774b38883162f98f
2018-03-15astobj2_container: Use ast_cli_completion_add for container names.Corey Farrell
Change-Id: I4f0fc09e820eb8d8da2354a177dbcf503c56ddd1
2018-03-15main/channel: Use ast_cli_completion_add for channeltypes.Corey Farrell
Change-Id: Ia845fae6a84801cc7d9996767b99efb2753cbb48
2018-03-15Merge "res_pjsip_rfc3326.c: Account for more than one 'Reason' header"Jenkins2
2018-03-15Merge "install_prereq: Add SUSE."Jenkins2
2018-03-15cli: Enable ast_cli_completion_add on public completion generators.Corey Farrell
* ast_cli_complete * ast_complete_channels * ast_complete_applications These generators will now use ast_cli_completion_add if state == -1. Change-Id: I7ff311f0873099be0e43a3dc5415c0cd06d15756
2018-03-14Merge "core: Remove incorrect usage of attribute_malloc."Jenkins2
2018-03-14res_pjsip_rfc3326.c: Account for more than one 'Reason' headerRoss Beer
ASTERISK-27741 Change-Id: I0aa59a54735c6d20b95c54db1bd095dbf93e7adf
2018-03-14install_prereq: Add SUSE.Alexander Traud
ASTERISK-27736 Change-Id: I4cafc8973349d50a7cb7919ddf0bb1aaef4bfc3e
2018-03-14Merge "install_prereq: Update FreeBSD libraries."Jenkins2
2018-03-14Merge "core: Remove non-critical cleanup from startup aborts."Jenkins2
2018-03-14Merge "BuildSystem: Enable IMAP storage on openSUSE and Arch Linux."Jenkins2
2018-03-14Merge "BuildSystem: Add NetBSD."Joshua Colp
2018-03-14Merge "res_srtp: Add support for libsrtp2.x on openSUSE."Joshua Colp
2018-03-13Merge "install_prereq: Add NetBSD."Jenkins2
2018-03-13Merge "BuildSystem: Re-check for another UUID library only when previous ↵Jenkins2
check failed."
2018-03-13Merge "BuildSystem: Enable PortAudio in NetBSD."Jenkins2
2018-03-13core: Remove incorrect usage of attribute_malloc.Corey Farrell
GCC documentation states that when __attribute__((malloc)) is used it should not return storage which contains any valid pointers. It specifically mentions that realloc functions should not have the malloc attribute, but this also means that complex initializers which could contain initialized pointers should not use this attribute. Change-Id: If507f33ffb3ca3b83b702196eb0e8215d27fc7d2
2018-03-13BuildSystem: Enable IMAP storage on openSUSE and Arch Linux.Alexander Traud
ASTERISK-27734 Change-Id: I8d6e6a1c08c031649764f5277fbbb85e57c3a9d4
2018-03-13Merge "core: Remove ABI effects of MALLOC_DEBUG."Jenkins2
2018-03-13core: Remove non-critical cleanup from startup aborts.Corey Farrell
When built-in components of Asterisk fail to start they cause the Asterisk startup to abort. In these cases only the most critical cleanup should be performed - closing databases and terminating proceses. These cleanups are registered using ast_register_atexit, all other cleanups should not be run during startup abort. The main reason for this change is that these cleanup procedures are untestable from the partially initialized states, if they fail it could prevent us from ever running the critical cleanup with ast_run_atexits. Create separate initialization for dns_core.c to be run unconditionally during startup instead of being initialized by the first dns resolver to be registered. This ensures that 'sched' is initialized before it can be potentially used. Replace ast_register_atexit with ast_register_cleanup in media_cache.c. There is no reason for this cleanup to happen unconditionally. Change-Id: Iecc2df98008b21509925ff16740bd5fa29527db3
2018-03-13Merge "BuildSystem: For consistency, avoid double-checking via if clauses."Jenkins2
2018-03-13Merge "res_pjproject.c: Upgrade bundled PJPROJECT to 2.7.2"Joshua Colp
2018-03-12Merge "Replace direct checks of option_debug with DEBUG_ATLEAST macro."Jenkins2
2018-03-12Merge "BuildSystem: Enable Lua in NetBSD."Jenkins2
2018-03-12Merge "Complete deprecating legacy modules."Jenkins2
2018-03-12Merge "res_pjsip_session: properly handle SDP from a forked call with early ↵Jenkins2
media"
2018-03-12Merge "BuildSystem: Depend not implicitly but explicitly on external libraries."Jenkins2
2018-03-12Merge "BuildSystem regression: Fix errors reported by clean targets."Jenkins2
2018-03-12install_prereq: Update FreeBSD libraries.Alexander Traud
Because the code review system Gerrit creates merge conflicts even when one line apart another change happened, the previous update to the FreeBSD libraries had to be rebased via Git. Because of a break for training of the original contributor, this rebase was done by another contributor and the variant for Asterisk 13 was cherry-picked to all branches. By this, dependencies for new features added in newer Asterisk version got lost. This can be seen, when not the original path set but a previous patch set is compared. This change here fixes this by adding those (optional) dependencies for Asterisk 15 and newer (again). ASTERISK-27686 Change-Id: I6638a3d0dc37ad4ff5f94be15463e3dd8a2bfe74
2018-03-12res_srtp: Add support for libsrtp2.x on openSUSE.Alexander Traud
Since ASTERISK-27253, no symbols from the header srtp2/crypto_types.h are used anymore. Therefore, its include statement can be removed. This allows to compile Asterisk on platforms which do not offer this private header, like openSUSE. ASTERISK-27733 Change-Id: I25c5cb8fa966043d1506ebef449e5a724412b4b6
2018-03-11Merge "app_osplookup: Move header defines into the app."Jenkins2
2018-03-09BuildSystem: Add NetBSD.Alexander Traud
Headers, libraries, and rpath. ASTERISK-27728 ASTERISK-11015 Reported by: Curt Sampson Change-Id: I50aa5fcd095937df32a2e33307caac7e79a8b5b7
2018-03-09BuildSystem: For consistency, avoid double-checking via if clauses.Alexander Traud
In the script ./configure, AST_EXT_LIB_CHECK and AST_PKG_CONFIG_CHECK first test whether parameter 1 was already found. Consequently, an if-test on PBX_ just a line below is redundant, if exactly the same parameter 1 is used again. No performance gain is expected by this change. However, because this strategy is used all over in ./configure except for two places, this change aims to create more consistency: Only do something different if there is a reason to do so. Change-Id: I4a6f48127b7af3a48168c917e888be1f70625027
2018-03-09Merge "res_http_post: Enable GMime in NetBSD."Jenkins2
2018-03-08Merge "chan_sip: Fix improper RTP framing on outgoing calls"Jenkins2
2018-03-08Merge "voicemail: Fixed wrong voicemail message count"Kevin Harwell
2018-03-08Complete deprecating legacy modules.Richard Mudgett
The menuselect comment was updated to deprecate these modules but the AST_MODULE_INFO block at the end of file was missed. ASTERISK-27671 Change-Id: I63070b5c4d4f08af010c6034acd4793c1bcef839
2018-03-08Merge "utils: In Solaris, avoid a warning about an unused variable."Jenkins2
2018-03-08res_pjproject.c: Upgrade bundled PJPROJECT to 2.7.2Richard Mudgett
Update patches included in bundled PJPROJECT for the new version. ASTERISK-27730 Change-Id: Id3c8c8ad82126846bcd9768bc3d0a18d89be8944
2018-03-08install_prereq: Add NetBSD.Alexander Traud
ASTERISK-27729 Change-Id: I7a706d51375d54cf5e36d32397bfe09a48670804
2018-03-08Merge "res_pjsip_rfc3326: Order of 'Reason' headers break many endpoints"Jenkins2
2018-03-08BuildSystem: Re-check for another UUID library only when previous check failed.Alexander Traud
As a side-effect, this avoids the ambiguous output: checking for uuid_generate_random... no which was printed always previously. ASTERISK-25586 Reported by: John Nemeth Change-Id: I6d541dfcf453932a9856c5e251aa22e0e6c233c9
2018-03-08BuildSystem: Enable PortAudio in NetBSD.Alexander Traud
In NetBSD, PortAudio 1 is still the default version. PortAudio 2 can be installed side by side but gets placed in a 'portaudio2' subdirectory. To find PortAudio 2 even in a subdirectory, the tool pkg-config is queried via AST_PKG_CONFIG_CHECK. For those platforms, which do not list PowerAudio 2 via pkg-config, the previous check remains and is executed thereafter. ASTERISK-27721 Change-Id: I4175500126909ad1b181fff8e11bb4a3a6ae4fa9