summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-01-22pbx_variables.c: Misc fixes in variable substitution.Richard Mudgett
* Copy more than one character at a time when there is nothing to substitute. * Fix off by one error if a '}' or ']' is missing. * Eliminated the requirement that the "used" parameter had to point to a variable. The current callers were always declaring a variable to meet the requirement and discarding the value put into that variable. Now it can be NULL. * In ast_str_substitute_variables_full() fixed using the bogus channel to evaluate a function. We were not using the bogus channel we just created to help evaluate a subexpression. Change-Id: Ia83d99f4f16abe47f329eb39b6ff2013ae7c9854
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-22Merge "BuildSystem: Allow make clean all again."Jenkins2
2018-01-22Merge "BuildSystem: Remove orphaned .PHONY targets."Jenkins2
2018-01-22Merge "res_pjsip: Document tlsv1_1 and tlsv1_2 methods"Jenkins2
2018-01-20BuildSystem: Remove AC_CONFIG_AUX_DIR.Alexander Traud
ASTERISK-27602 Change-Id: I9f4d3d2bc1481748e39ad1e2b0a364d38e38978b
2018-01-20Merge "BuildSystem: Detect external library Lua in version 5.3."Jenkins2
2018-01-19BuildSystem: Remove orphaned .PHONY targets.Alexander Traud
Change-Id: Ic44d75141b9bf99e7d72fcc82ee111b5cf6989d2
2018-01-19BuildSystem: Allow make clean all again.Alexander Traud
ASTERISK-27600 Reported by: Hamid R. Hashmi Change-Id: I683d14d024650be04074b037b6300464519409f4
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-18Merge "BuildSystem: Avoid $EUID and use id -u instead."Jenkins2
2018-01-18Merge "loader: Miscellaneous fixes."Jenkins2
2018-01-18Merge "cel_odbc.c: Fix menuslect module description display."Jenkins2
2018-01-18res_pjsip: Document tlsv1_1 and tlsv1_2 methodsSean Bright
Change-Id: I67ed9039bf3f132fb20ee7a750e0aef0f704d7d3
2018-01-18Merge "BuildSystem: Use the detected name for MD5 everywhere."Jenkins2
2018-01-18Merge "BuildSystem: Invoke install not in GNU but POSIX style."Jenkins2
2018-01-18Merge "BuildSystem: In OpenBSD, xmlstarlet is xml."Jenkins2
2018-01-18Merge "app_followme: Add a prompt to be read when a call is connected"Jenkins2
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-17Merge "pjproject_bundled: Prevent crash on bad outgoing header"Jenkins2
2018-01-17app_followme: Add a prompt to be read when a call is connectedghjm
This patch adds the ability to configure a prompt which will be read to the "winner" who pressed 1 (or the configured value) and received the call. ASTERISK-24372 #close Change-Id: I6ec1c6c883347f7d1e1f597189544993c8d65272
2018-01-17Merge "res_pjsip: Split type=identify to IP address and SIP header matching ↵Jenkins2
priorities"
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-17BuildSystem: Use the detected name for MD5 everywhere.Alexander Traud
Affacted the (automatic) download script for external modules: ./build_tools/download_externals ASTERISK-27596 Change-Id: If4c3176f7bf58df32fec6e02a659f1a78d57cf4b
2018-01-17BuildSystem: Invoke install not in GNU but POSIX style.Alexander Traud
ASTERISK-27594 Change-Id: Iaaa6a19d2fe031dffcba441d0502a7ea65c93cb3
2018-01-17BuildSystem: In OpenBSD, xmlstarlet is xml.Alexander Traud
ASTERISK-27593 Change-Id: I1c7087f7f7582e40b3312c690d912c9a86466805
2018-01-17BuildSystem: Detect external library Lua in version 5.3.Alexander Traud
On some platforms, you decide to go for one specific version of Lua, for example in OpenBSD. On other platforms, you are able to install several versions side-by-side, for example in Ubuntu and Fedora. Asterisk already works with Lua 5.3. Asterisk failed to detect Lua 5.3 on those platforms which allow several versions. ASTERISK-27592 Change-Id: If7a4b395d844a464e9a1f4f626c5bff4ee67eed8
2018-01-16res_pjsip: Split type=identify to IP address and SIP header matching prioritiesRichard Mudgett
The type=identify endpoint identification method can match by IP address and by SIP header. However, the SIP header matching has limited usefulness because you cannot specify the SIP header matching priority relative to the IP address matching. All the matching happens at the same priority and the order of evaluating the identify sections is indeterminate. e.g., If you had two type=identify sections where one matches by IP address for endpoint alice and the other matches by SIP header for endpoint bob then you couldn't predict which endpoint is matched when a request comes in that matches both. * Extract the SIP header matching criteria into its own "header" endpoint identification method so the user can specify the relative priority of the SIP header and the IP address matching criteria in the global endpoint_identifier_order option. The "ip" endpoint identification method now only matches by IP address. ASTERISK-27491 Change-Id: I9df142a575b7e1e3471b7cda5d3ea156cef08095
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-16Merge "BuildSystem: Resolve resolv.h not via Generic but Particular ↵Jenkins2
Header-Check."
2018-01-16Merge "res_stasis_recording: Allow symbolic links in configured recordings dir."Jenkins2
2018-01-16pjproject_bundled: Prevent crash on bad outgoing headerGeorge Joseph
We still need to figure out how a bad header is getting into the outgoing message but this patch to pjproject prevents attempting to print that header and causing a crash. For several users, this crash happens when sending 183 progress messages. ASTERISK-26832 Reported by: Ross Beer, Jan Rozhon Change-Id: Ie5c5a921c890c843587763e7f33f987dfe66bd16
2018-01-16BuildSystem: Avoid $EUID and use id -u instead.Alexander Traud
Makefile included a call to ${EUID} which requires the shell bash. To keep compatibility with other shells like dash or ksh, use id -u instead. ASTERISK-27589 Change-Id: Ia6e74f5bc9aab4e6dc62b7439f647b7964e6f657
2018-01-15cel_odbc.c: Fix menuslect module description display.Richard Mudgett
Asterisk's makefile for menuselect has a very simple source file parsing script that looks for AST_MODULE_INFO lines to extract the quoted string as a module description. If it does not find a quoted string it uses the whole line as the description. Change-Id: I80f13a63818e4e28d683639a94a4dfaea405c1d5
2018-01-15loader: Add dependency fields to module structures.Corey Farrell
* Declare 'requires' and 'enhances' text fields on module info structure. * Rename 'nonoptreq' to 'optional_modules'. * Update doxygen comments. Still need to investigate dependencies among modules I cannot compile. Change-Id: I3ad9547a0a6442409ff4e352a6d897bef2cc04bf
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-15BuildSystem: Resolve resolv.h not via Generic but Particular Header-Check.Alexander Traud
ASTERISK-27585 Change-Id: I27c67563788e6f67eeda5fb51a741823a50a95e2
2018-01-15Merge "config_transport: Enable TCP_NODELAY on TLS transports"Jenkins2
2018-01-15Merge "BuildSystem: Really do not pass unknown-warning options to the compiler."Jenkins2
2018-01-15Merge "menuselect: Remove unused dev-mode option TRACE_FRAMES."Jenkins2
2018-01-14Merge "res_config_pgsql: Avoid typecasting an int to unsigned char."Jenkins2
2018-01-13config_transport: Enable TCP_NODELAY on TLS transportsGeorge Joseph
We did this for TCP transports already but I'm not sure why we didn't do it for TLS transports. ASTERISK_27474 #not_final_fix Change-Id: I5b1ef4b882f7b859e718236686b7898751dbb262
2018-01-12res_stasis_recording: Allow symbolic links in configured recordings dir.Corey Farrell
If any component of ast_config_AST_RECORDING_DIR is a symbolic link we would incorrectly assume the ARI user was trying to escape the recording path. Create additional check to check the recording directory's realpath, only deny access if both do not match. This is needed by the testsuite when run by 'run-local'. Change-Id: I9145e841865edadcb5f75cead3471ad06bbb56c0
2018-01-12Merge "install_prereq: Update Debian/Ubuntu libraries."Jenkins2
2018-01-12menuselect: Remove unused dev-mode option TRACE_FRAMES.Corey Farrell
ASTERISK-27575 #close Change-Id: Ica3a522892afed7a96816a5ecf140e1671f46ad4
2018-01-12Merge "chan_ooh323: Avoid typecasting an int to unsigned short."Jenkins2
2018-01-12Merge "app_osplookup.c: Avoid two format truncations."Jenkins2