summaryrefslogtreecommitdiff
path: root/main
AgeCommit message (Collapse)Author
2018-03-21Merge "core: Stop using AST_INLINE_API for allocator functions."Jenkins2
2018-03-20Merge "core: Remove additional symbols."Joshua Colp
2018-03-20Merge "core: Remove dead symbols from asterisk.exports.in."Jenkins2
2018-03-20Merge "channel.c: Allow generic plc then channel formats are equal"Jenkins2
2018-03-20Merge "BuildSystem: Instead of $PJPROJECT_LIBS with s, use $PJPROJECT_LIB ↵Jenkins2
everywhere."
2018-03-20Merge "main/sounds: Use ast_cli_completion_add."Jenkins2
2018-03-20Merge "named_acl: Use ast_cli_completion_add."Joshua Colp
2018-03-20Merge "manager: Use ast_cli_completion_add for completion generators."Joshua Colp
2018-03-20Merge "main/test: Use ast_cli_completion_add."Joshua Colp
2018-03-20Merge "core: Minor cleanup of ast_el_read_char."Jenkins2
2018-03-20Merge "aco: Use ast_cli_completion_add for 'config show help'."Joshua Colp
2018-03-20Merge "main/config: Use ast_cli_completion_add for reload completion."Jenkins2
2018-03-20Merge "main/translate: Use ast_cli_completion_add."Jenkins2
2018-03-20Merge "main/taskprocessor: Use ast_cli_completion_add."Joshua Colp
2018-03-20Merge "main/bridge: Use ast_cli_completion_add."Jenkins2
2018-03-20Merge "stringfields: Remove MALLOC_DEBUG fields from struct ↵Jenkins2
ast_string_field_mgr."
2018-03-19core: Remove additional symbols.Corey Farrell
Remove symbols that are depreacated and replaced: * ast_channel_datastore_alloc * ast_channel_datastore_free * ast_channel_cmpwhentohangup * ast_channel_setwhentohangup * config_text_file_save * devstate2str * ast_device_state_changed * ast_device_state_changed_literal * ast_verbose_get_by_module Remove unused symbols: * channelreloadreason2txt (last used in Asterisk 12). Remove unused ast_options flags: * AST_OPT_FLAG_END_CDR_BEFORE_H_EXTEN / ast_opt_end_cdr_before_h_exten * AST_OPT_FLAG_VERBOSE_MODULE / ast_opt_verb_module * AST_OPT_FLAG_INITIATED_SECONDS Change-Id: I841255995d195f8efc1ed47af9c7a2f131c08645
2018-03-19core: Remove dead symbols from asterisk.exports.in.Corey Farrell
* dahdi_chan_name * dahdi_chan_name_len * dahdi_chan_mode * __manager_event * dialed_interface_info Added comment about __progname and environ being needed for FreeBSD to prevent accidental removal in the future. Change-Id: I3ae026bc541cd9cb572be2ffa95fc359547642b5
2018-03-19named_acl: Use ast_cli_completion_add.Corey Farrell
Change-Id: I317a82de976bbdbfe4352c243e32a7bb8f66c377
2018-03-19main/sounds: Use ast_cli_completion_add.Corey Farrell
Change-Id: I140e1137906bbfcdb61c0c6304159be459ad873e
2018-03-19channel.c: Allow generic plc then channel formats are equalGeorge Joseph
If the two formats on a channel are equal, we don't transcode and since the generic plc needs slin to work, it doesn't get invoked. * A new configuration option "genericplc_on_equal_codecs" was added to the "plc" section of codecs.conf to allow generic packet loss concealment even if no transcoding was originally needed. Transcoding via SLIN is forced in this case. ASTERISK-27743 Change-Id: I0577026a179dea34232e63123254b4e0508378f4
2018-03-19manager: Use ast_cli_completion_add for completion generators.Corey Farrell
Change-Id: I658141c6ec490a3e866b02d2afea757928ceaabf
2018-03-19main/test: Use ast_cli_completion_add.Corey Farrell
Change-Id: I5133ff2ba4e030f9733fb3d050c863d72a22ae6b
2018-03-19Merge "loader: Convert reload_classes to built-in modules."Jenkins2
2018-03-19Merge "main/cdr: Use ast_cli_completion_add for CDR channel completion."Jenkins2
2018-03-17main/bridge: Use ast_cli_completion_add.Corey Farrell
Change-Id: I3775a696d6a57139fdf09651ecb786bcf1774509
2018-03-17core: Minor cleanup of ast_el_read_char.Corey Farrell
* Define CHAR_T_LIBEDIT and CHAR_TO_LIBEDIT based on HAVE_LIBEDIT_IS_UNICODE. This avoids needing to repeatedly use conditional blocks, eliminates having multiple function prototypes. * Remove parenthesis from return values. * Add missing code block brackets {}. * Reduce use of 'else' conditional statements where possible. Change-Id: I4315328ebea2f62641faf6881de2ac20a9f9d08e
2018-03-17main/translate: Use ast_cli_completion_add.Corey Farrell
Change-Id: I0e2402660e54d91f74ab0804c62a5b1925577413
2018-03-17main/taskprocessor: Use ast_cli_completion_add.Corey Farrell
Change-Id: Ie5f812a988ed811fd11967151932de62bc131b48
2018-03-17main/config: Use ast_cli_completion_add for reload completion.Corey Farrell
Change-Id: Ia3fa4c03f2285a1ec8814bbe7f4624ead9111ad1
2018-03-17aco: Use ast_cli_completion_add for 'config show help'.Corey Farrell
In addition this removes: * RAII_VAR usage * Duplicate check of pos * Unneeded arguments. Change-Id: I2da8eac2670d1d8d6474c04037129804f55ebf39
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-15main/cdr: Use ast_cli_completion_add for CDR channel completion.Corey Farrell
Change-Id: Ie81830647a23aad61c1162583b6d50adbe6e7822
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-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-14Merge "core: Remove non-critical cleanup from startup aborts."Jenkins2
2018-03-14loader: Convert reload_classes to built-in modules.Corey Farrell
* acl (named_acl.c) * cdr * cel * ccss * dnsmgr * dsp * enum * extconfig (config.c) * features * http * indications * logger * manager * plc * sounds * udptl These modules are now loaded at appropriate time by the module loader. Unlike loadable modules these use AST_MODULE_LOAD_FAILURE on error so the module loader will abort startup on failure of these modules. Some of these modules are still initialized or shutdown from outside the module loader. logger.c is initialized very early and shutdown very late, manager.c is initialized by the module loader but is shutdown by the Asterisk core (too much uses it without holding references). Change-Id: I371a9a45064f20026c492623ea8062d02a1ab97f
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-13stringfields: Remove MALLOC_DEBUG fields from struct ast_string_field_mgr.Corey Farrell
This causes MALLOC_DEBUG reporting to be slightly different, calls which cause additional memory pools to be allocated now report the callers location rather than the location which originally allocated the string field structure. This reduces storage needed by string fields and allows MALLOC_DEBUG to identify the source of additional allocations rather than obscuring it by reporting the original allocation caller. Change-Id: Idd18e6639a87ab862079b580c114d90361412289
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-12Merge "Replace direct checks of option_debug with DEBUG_ATLEAST macro."Jenkins2
2018-03-08BuildSystem: Instead of $PJPROJECT_LIBS with s, use $PJPROJECT_LIB everywhere.Alexander Traud
In the script ./configure, xyz_LIB is set by AST_PKG_CONFIG_CHECK and xyz_LIBS is set by PKG_CHECK_MODULES within AST_PKG_CONFIG_CHECK. Both are the same. In Asterisk normally the former and only three times the latter was used. Let us use xyz_LIB without s, for consistency with AST_EXT_LIB_CHECK. That eases understanding because now readers do not have to know that xyz_LIB equals xyz_LIBS. Change-Id: I7359860a5d730cdc784c2c48e501a082196434d3
2018-03-07Replace direct checks of option_debug with DEBUG_ATLEAST macro.Corey Farrell
Checking option_debug directly is incorrect as it ignores file/module specific debug settings. This system-wide change replaces nearly all direct checks for option_debug with the DEBUG_ATLEAST macro. Change-Id: Ic342d4799a945dbc40ac085ac142681094a4ebf0