summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-18chan_unistim: Fix hold function ability to lock/crash asteriskIgor Goncharovsky
This patch fix chan_unistim hold functions to correctly support hold function in different states possible in case of multiple lines established on the phone ASTERISK-26596 #close Change-Id: Ib1e04e482e7c8939607a42d7fddacc07e26e14d4
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-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
2018-01-12Merge "cdr_syslog: Deprecate unmaintained module"Jenkins2
2018-01-12res_config_pgsql: Avoid typecasting an int to unsigned char.Alexander Traud
clang 5.0 warned about this. ASTERISK-27576 Change-Id: If41f400a51973c06cdb9b75462e535b616bfe385
2018-01-12Merge "chan_sip: Check that an iostream exists before accessing."Joshua Colp
2018-01-12Merge "Ignore quilt .pc directory, used in deb packaging"Jenkins2
2018-01-12BuildSystem: Really do not pass unknown-warning options to the compiler.Alexander Traud
When an older GCC version is called with a too new warning option, GCC exited with an error and Asterisk was not built. Therefore, the configure script tests the installed compiler whether it supports that warning option. If not, Asterisk does not pass it to the installed compiler. However, some compilers (like clang) do not exit (error) but give just a warning in such a case. Because the compiler did not exit, Asterisk passed the unknown-warning option. ASTERISK-27560 Change-Id: Ia9d148e689c173df4e91699113605dab2de36038
2018-01-12app_osplookup.c: Avoid two format truncations.Alexander Traud
GCC 7 warned about this. ASTERISK-27578 Change-Id: I4a00458dbe9b575ef04338b6a7852272745e1552
2018-01-12chan_ooh323: Avoid typecasting an int to unsigned short.Alexander Traud
clang 5.0 warned about this. ASTERISK-27577 Change-Id: I898fe4255023138a9e8b579fe4482fcf582f2b78
2018-01-12install_prereq: Update Debian/Ubuntu libraries.Alexander Traud
ASTERISK-27555 Change-Id: I0818b6e42631be1b69237e2b41d3415275693e53
2018-01-11Merge "res_pjsip_endpoint_identifier_ip.c: Remove unnecessary requirement."Jenkins2
2018-01-11chan_sip: Check that an iostream exists before accessing.Joshua Colp
Before getting the file descriptor for an iostream check that it is present. ASTERISK-27534 Change-Id: Ie0aa1394007a37c30e337ea1176a6fb3a63bc99c
2018-01-11Merge "stasis_message_router: Remove silly usage of RAII_VAR."Jenkins2
2018-01-11Merge "res_pjsip.c: Update the endpoint identification documentation."Jenkins2
2018-01-11Ignore quilt .pc directory, used in deb packagingTzafrir Cohen
Debian packaging uses quilt to manage patches. Book-keeping for them is done using quilt (either directly, or in a compatible format), and tracked in the directory .pc . Change-Id: I22c90f3d7ab8918e6216e7b686de6fa0e1fdaa7b Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
2018-01-11Merge "stasis_endpoints: Remove silly usage of RAII_VAR."Jenkins2
2018-01-11Merge "stasis_system: Remove silly usage of RAII_VAR."Jenkins2