summaryrefslogtreecommitdiff
path: root/main
AgeCommit message (Collapse)Author
2018-01-29Merge "core: Fix unused variable error in handle_show_sysinfo."Jenkins2
2018-01-29Merge "core: Tweak startup order."Jenkins2
2018-01-29Merge "editline: Avoid shifting a negative signed value."Jenkins2
2018-01-27core: Fix unused variable error in handle_show_sysinfo.Alexander Traud
The previous fix broke the case HAVE_SYSINFO = no HAVE_SYSCTL = yes HAVE_SWAPCTL = no which occurs on FreeBSD 11.1 for example. ASTERISK-26563 Change-Id: If77c39bc75f0b83a6c8a24ecb2fa69be8846160a
2018-01-27editline: Avoid shifting a negative signed value.Alexander Traud
clang 4.0 warned about this. ASTERISK-27630 Change-Id: Ie2725048c661c1792d8b1d498575144350b6e9ba
2018-01-25core: Tweak startup order.Corey Farrell
Move initialization of units which do not require configuration to occur before preload modules. This leaves only units which load config between module preload and regular load stages. Change-Id: I1d15384acad16a22c3498124421af474fa517478
2018-01-25loader: Correct overly strict startup checks.Corey Farrell
The code which handled loading modules had too many situations which would result in halting Asterisk startup. Treat most errors as declines instead of failures. The exception is when the module load function returns AST_MODULE_LOAD_FAILURE or an invalid code. Clear the missingdeps vector when appropriate to ensure the next loop starts clean. ASTERISK-27620 Change-Id: I45547d9641fd45bd86d80250224417625631ad84
2018-01-22Merge "loader: Add support for built-in modules."Jenkins2
2018-01-22Merge "loader: Rework load_resource_list."Jenkins2
2018-01-22Merge "loader: Remove global symbol only startup phase."Joshua Colp
2018-01-22Merge "loader: Process module dependencies."Jenkins2
2018-01-22Merge "pbx: Reduce verbosity while loading extensions"Jenkins2
2018-01-18pbx: Reduce verbosity while loading extensionskrells
Each time the dial plan is reloaded, a lot of logs like these are generated: "Added extension 'XXXXX' priority 1 to YYYYYYYYYYY" This patch changes the log level for those logs. ASTERISK-27084 Change-Id: I5662902161c50890997ddc56835d4cafb456c529
2018-01-17loader: Add support for built-in modules.Corey Farrell
* Add SRC_EMBEDDED variable to main/Makefile. Built-in module sources must be listed in this variable to ensure they get the correct CFLAGS. Change-Id: I920852bc17513a9c2627061a4ad40511e3a20499
2018-01-17loader: Rework load_resource_list.Corey Farrell
Use a single loop in a loop to scan the resource list attempting to dlopen each module. The inner loop is repeated until it doesn't do any work, then it is run one more time to allow printing of error messages. Change-Id: I60c15cd57ff9680b62e2a94c7519401fa4a38e45
2018-01-17loader: Remove global symbol only startup phase.Corey Farrell
Dependency loader is now in place so we no longer need a separate loader phase for global symbols only. This simplifies the loader and allows us to minimize calls to dlopen. Change-Id: I33e3174d67f3b4552d3d536326dcaf0ebabb097d
2018-01-17loader: Process module dependencies.Corey Farrell
* Add string vectors for requires, optional_apis and enhances. * Add reffed_deps module vector for holding references to dependencies. * Initialize string vectors after final dlopen of each module. * Free string vectors and clear references from reffed_deps in module_destroy. * Create functions necessary to process module dependencies and enforce load order. Module dependencies result in automatic references being managed by the module loader. This enforces unload order. Change-Id: I9be08d1dd331aceadc1dcba00b804d71360b2fbb
2018-01-17loader: Miscellaneous fixes.Corey Farrell
* Remove comment about lazy load. * Improve message about module already being loaded and running. * Handle allocation error in add_to_load_order. * Dead code elimination from modules_shutdown. Change-Id: I22261599c46d0f416e568910ec9502f45143197f
2018-01-16taskprocessor.c: Increase the number of tps_singletons container buckets.Richard Mudgett
Since v12 the number of taskprocessors in the system has increased a lot. Small systems can easily have over a hundred and larger systems can have thousands. Most uses of the tps_singletons container deal with creating and destroying the taskprocessors. However, the pjsip distributor looks up taskprocessors/serializers by name frequently. It needs to find the serializer for incoming SIP responses to distribute them to the appropriate serializer. Change-Id: Ice0603606614ba49f7c0c316c524735c064e7e43
2018-01-15vector: Additional string vector definitions.Corey Farrell
ast_vector_string_split: This function will add items to an ast_vector_string by splitting values of a string buffer. Items are appended to the vector in the order they are found. ast_vector_const_string: A vector of 'const char *'. Change-Id: I1bf02a1efeb2baeea11c59c557d39dd1197494d7
2018-01-11Merge "stasis_message_router: Remove silly usage of RAII_VAR."Jenkins2
2018-01-11Merge "stasis_endpoints: Remove silly usage of RAII_VAR."Jenkins2
2018-01-11Merge "stasis_system: Remove silly usage of RAII_VAR."Jenkins2
2018-01-11Merge "stasis: Remove silly usage of RAII_VAR."Jenkins2
2018-01-11Merge "stasis_bridges: Remove silly usage of RAII_VAR."Jenkins2
2018-01-11Merge "stasis_cache: Remove silly usage of RAII_VAR."Jenkins2
2018-01-10stasis: Remove silly usage of RAII_VAR.Corey Farrell
Change-Id: Ib11193531e797bcb16bba560a408eab155f706d1
2018-01-10stasis_cache_pattern: Remove silly usage of RAII_VAR.Corey Farrell
Change-Id: Ic98a51f555062cd863b6db3f8d76065943a9dea3
2018-01-09stasis_bridges: Remove silly usage of RAII_VAR.Corey Farrell
Change-Id: I0fa7ab05454f183dc4ff10e26d18776d2b0fcf1f
2018-01-09stasis_cache: Remove silly usage of RAII_VAR.Corey Farrell
Change-Id: Ifa95e5801c949df296c7e4376347730fb0ed52ef
2018-01-09stasis_endpoints: Remove silly usage of RAII_VAR.Corey Farrell
Change-Id: Ic099dc552f36c353c89783a4bcfd09f010432733
2018-01-09stasis_message_router: Remove silly usage of RAII_VAR.Corey Farrell
Change-Id: I50d6ae230920e0b878ed9cc8f79eef746e06701d
2018-01-09stasis_system: Remove silly usage of RAII_VAR.Corey Farrell
Change-Id: Iedbe5656cee68cd3a96a953558764aa02d4a0c3b
2018-01-09translate: Avoid absolute value on unsigned substraction.Alexander Traud
ast_format_get_sample_rate(.) returns an unsigned type. The difference of a substraction between two unsigned types does not get implicitly converted to a signed type. Therefore, using abs(.) did not make sense. ASTERISK-27549 Change-Id: Ib904d9ee0d46b6fdd1476fbc464fbbf813304017
2018-01-08Merge "editline: Avoid comparison between pointer and zero character constant."Jenkins2
2018-01-06editline: Avoid comparison between pointer and zero character constant.Alexander Traud
gcc 7.2 warned about this. ASTERISK-27559 Change-Id: I48960dda9cf0a11b6a9426f775e632363f8caa74
2018-01-04pbx: Prevent execution of NULL pointer.Corey Farrell
pbx_extension_helper has a check for q->swo.exec == NULL but it doesn't actually return so we would still run the function. Fix the return. Move the 'int res' variable into the only scope which uses it. Also fix a copy-paste error in ast_pbx_init which could result in a crash on allocation failure (we exit with a normal error instead). Change-Id: I0693af921fdc7f56b6a72a21fb816ed08b960a69
2018-01-04Merge "rtp_engine: Add missing unlock."Jenkins2
2018-01-04Merge "translators: Don't use ast_module_running_ref."Joshua Colp
2018-01-04translators: Don't use ast_module_running_ref.Corey Farrell
Translators are run during module load before the module is actually running, so it cannot use ast_module_running_ref. ASTERISK-20346 Change-Id: Iaa0e75da99c696e38000f1a41e340abbd7a88f56
2018-01-04rtp_engine: Add missing unlock.Corey Farrell
Change-Id: I380c31a255e060309f4916da11176e0d00813215
2018-01-04aco: Fix NULL dereference in error path.Corey Farrell
Change-Id: Id505167cf0f9414a3c144fa2c1e181a2cf288694
2018-01-04Merge "loader: Create ast_module_running_ref."Joshua Colp
2018-01-04Merge "datastore: Add automatic module references."Joshua Colp
2018-01-03loader: Create ast_module_running_ref.Corey Farrell
This function returns NULL if the module in question is not running. I did not change ast_module_ref as most callers do not check the result and they always call ast_module_unref. Make use of this function when running registered items from: * app_stack API's * bridge technologies * CLI commands * File formats * Manager Actions * RTP engines * Sorcery Wizards * Timing Interfaces * Translators * AGI Commands * Fax Technologies ASTERISK-20346 #close Change-Id: Ia16fd28e188b2fc0b9d18b8a5d9cacc31df73fcc
2018-01-03Merge "core: Use macros to generate ao2_container callbacks where possible."Jenkins2
2018-01-03Merge "aco: Add missing aco_option_type_string for OPT_TIMELEN_T."Joshua Colp
2018-01-03Merge "cdr: submit: fix logic of test for batch mode"Jenkins2
2018-01-02Merge "stasis_channels.c: Misc cleanup."Jenkins2
2018-01-02cdr: submit: fix logic of test for batch modeTzafrir Cohen
ASTERISK-27539 #close Change-Id: I33cdf329d2bb4486dcae975c450f6aae94c515f7