Commit Graph

30232 Commits

Author SHA1 Message Date
Jenkins2
a1c7383d49 Merge "editline: Avoid shifting a negative signed value." into 13 2018-01-29 10:24:52 -06:00
Alexander Traud
967c70acb5 BuildSystem: Enable autotools in FreeBSD.
In the current versions of FreeBSD, the apps of GNU autotools do not need to
be called with a version anymore. The latest version can be invoked directly.
Additionally, the script ./bootstrap.sh asked for autoconf 2.62 and
automake 1.9, versions which are not available as port anymore.

ASTERISK-27637

Change-Id: Id7b94b80e78cc943a40ba79b697e3f70019820a7
2018-01-29 10:21:51 -06:00
Jenkins2
5b3b627821 Merge "headers: Consistent use of typeof and/or __typeof__." into 13 2018-01-29 10:13:37 -06:00
Alexander Traud
dd6b8cd0b2 app_voicemail: Avoid always true when using pointer address.
clang 4.0 warned about this.

ASTERISK-27635

Change-Id: I213f230607d7fbe97c0f5f2d60da9cbf5a2d8231
2018-01-29 10:01:44 -06:00
Jenkins2
663f86a1a9 Merge "BuildSystem: Remove unused variables." into 13 2018-01-29 09:48:02 -06:00
Alexander Traud
8daed642c7 install_prereq: Update RHEL/CentOS/Fedora libraries.
deleted
 automake git ncurses-devel pjproject-devel sqlite2-devel libsqlite3x-devel

renamed
 radiusclient-ng-devel to radcli-devel
 gmime22-devel to gmime-dev

added
 alsa-lib-devel bash binutils-devel bison doxygen flex hoard make pkgconfig
 speexdsp-devel uriparser-devel uw-imap-devel wget xmlstarlet zlib-devel

ASTERISK-27599
Reported by: Said Masoud

Change-Id: I05bb0af98ae532b2d5f37478e38b8f0762b1c035
2018-01-29 11:10:49 +01:00
Alexander Traud
f59fb7fec8 BuildSystem: Remove unused variables.
Because of a copy-and-paste from the script build_tools/download_externals,
the script build_tools/list_valid_installed_externals got its local variables.
However in the latter, three variables were not used actually.

Change-Id: I252de5a98c17ea54459174875357c22c2eebe8d5
2018-01-28 05:21:41 -06:00
Corey Farrell
154bccf147 loader: Use ast_cli_completion_add for 'module load' completion.
This addresses all performance issues with 'module load' completion.  In
addition to using ast_cli_completion_add we stop using libedit's
filename_completion_function, instead using ast_file_read_dir.  This
ensures all results are produced from a single call to opendir.

Change-Id: I8bf51ffaa7ef1606f3bd1b5bb13f1905d72c6134
2018-01-27 14:18:39 -06:00
Alexander Traud
4bb38022ea core: Fix unused variable error in handle_show_sysinfo.
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-27 10:12:04 -06:00
Alexander Traud
021168f06f editline: Avoid shifting a negative signed value.
clang 4.0 warned about this.

ASTERISK-27630

Change-Id: Ie2725048c661c1792d8b1d498575144350b6e9ba
2018-01-27 08:55:25 -06:00
Alexander Traud
e998c906a7 headers: Consistent use of typeof and/or __typeof__.
Because of a copy-and-paste error, the Asterisk project was using __typeof
instead of typeof. It works because typeof, __typeof, and __typeof__ are
supported by GCC, but here the escaped variant was not intended. Therefore,
for consistence, we change this to typeof.

Change-Id: I2a962c3e596e882f691a19345445b14571a5f07c
2018-01-27 03:25:53 -06:00
Richard Mudgett
87f8459410 Update sounds release to fix siren7 and siren14 files.
ASTERISK-16172

Change-Id: I2fb564258cd4db0f35952ad48b8687355c2dcad3
2018-01-26 15:45:06 -06:00
Alexander Traud
6b771e346b BuildSystem: Raise autoconf version requirement to 2.60a.
AC_COMPUTE_INT requires at least autoconf 2.60a.

This affects only those who contribute to Asterisk, only those who had to use
the script ./bootstrap.sh. Furthermore, this change just makes sure nobody is
using a too old autoconf.

ASTERISK-16951

Change-Id: Ibca850e2fe0e77d935207bd959bacf7197d7f637
2018-01-26 07:13:43 -06:00
Alexander Traud
7ad6792011 install_prereq: Download latest Jansson.
ASTERISK-27603

Change-Id: I65c587534c0ae364f063d68da1bed40bb3d5e8aa
2018-01-26 06:53:18 -06:00
Jenkins2
ede9185249 Merge "install_prereq: For PJProject, point users to configure script." into 13 2018-01-25 07:38:27 -06:00
Jenkins2
24def35abc Merge "install_prereq: Support package manager DNF and yum option strict=1." into 13 2018-01-24 07:44:35 -06:00
Jenkins2
14fc07279f Merge "res_config_mysql: Avoid the header mysql_version.h." into 13 2018-01-23 12:15:27 -06:00
Jenkins2
2bdc26b2d2 Merge "install_prereq: Update Debian/Ubuntu libraries." into 13 2018-01-23 09:56:55 -06:00
Jenkins2
5d74e07793 Merge "chan_unistim: Fix hold function ability to lock/crash asterisk" into 13 2018-01-22 16:16:46 -06:00
Richard Mudgett
85b384728c pbx_variables.c: Misc fixes in variable substitution.
* 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-22 12:32:37 -06:00
Jenkins2
31b501c1a7 Merge "chan_sip: 3PCC patch for AMI "SIPnotify"" into 13 2018-01-22 09:51:29 -06:00
Jenkins2
86aa3572ee Merge "pbx: Reduce verbosity while loading extensions" into 13 2018-01-22 09:42:51 -06:00
Alexander Traud
420586beab res_config_mysql: Avoid the header mysql_version.h.
ASTERISK-27607

Change-Id: I23d00ded955c4afd5f2c3c9dc96dcb48b3f74eec
2018-01-22 09:19:55 -06:00
Jenkins2
25adeb120a Merge "BuildSystem: Allow make clean all again." into 13 2018-01-22 09:16:10 -06:00
Jenkins2
38d2a5fd7b Merge "BuildSystem: Remove orphaned .PHONY targets." into 13 2018-01-22 09:04:34 -06:00
Alexander Traud
d5a24cfdf7 install_prereq: For PJProject, point users to configure script.
The installation script and the new configure option --with-pjproject-bundled
aimed to accomplish the same. However, the installation script was out of
date. Users should go for the maintained configure option, or the Wiki.

ASTERISK-24598

Change-Id: Icbf4b562f81f7c05bd24a3805bd46c0beb4ebd44
2018-01-22 09:01:41 -06:00
Jenkins2
32486dd40d Merge "res_pjsip: Document tlsv1_1 and tlsv1_2 methods" into 13 2018-01-22 08:16:52 -06:00
Alexander Traud
31e5008b47 BuildSystem: Remove AC_CONFIG_AUX_DIR.
ASTERISK-27602

Change-Id: I9f4d3d2bc1481748e39ad1e2b0a364d38e38978b
2018-01-20 13:00:36 -06:00
Jenkins2
579dd18eb7 Merge "BuildSystem: Detect external library Lua in version 5.3." into 13 2018-01-19 15:57:52 -06:00
Alexander Traud
ffb7b62019 BuildSystem: Remove orphaned .PHONY targets.
Change-Id: Ic44d75141b9bf99e7d72fcc82ee111b5cf6989d2
2018-01-19 12:22:32 -06:00
Alexander Traud
3b566fc8ec BuildSystem: Allow make clean all again.
ASTERISK-27600
Reported by: Hamid R. Hashmi

Change-Id: I683d14d024650be04074b037b6300464519409f4
2018-01-19 12:21:36 -06:00
Alexander Traud
f20a522d43 install_prereq: Update Debian/Ubuntu libraries.
ASTERISK-27555

Change-Id: Ieb41b0cbf968af12882b39454b819ebb48b9ea46
2018-01-19 13:19:42 +01:00
Alexander Traud
1fbca9a40d install_prereq: Support package manager DNF and yum option strict=1.
This re-enables the script ./contrib/scripts/install_prereq on Fedora 22 and
newer, and on RHEL/CentOS when the option strict=1 was set for yum install.

ASTERISK-27598
Reported by: Hunter Stevens, Said Masoud

Change-Id: I40f9517122aaa6906e8fc0962b4b8008dfddb368
2018-01-19 04:48:08 -06:00
krells
d5bcbd460e pbx: Reduce verbosity while loading extensions
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-18 20:42:06 -06:00
Jenkins2
9193f2dd79 Merge "BuildSystem: Avoid $EUID and use id -u instead." into 13 2018-01-18 19:37:44 -06:00
Jenkins2
8c8bb2dbf2 Merge "loader: Miscellaneous fixes." into 13 2018-01-18 19:10:03 -06:00
Jenkins2
fa42549d4e Merge "cel_odbc.c: Fix menuslect module description display." into 13 2018-01-18 15:43:37 -06:00
Sean Bright
b353c90627 res_pjsip: Document tlsv1_1 and tlsv1_2 methods
Change-Id: I67ed9039bf3f132fb20ee7a750e0aef0f704d7d3
2018-01-18 15:55:20 -05:00
Jenkins2
c5739f9858 Merge "BuildSystem: Use the detected name for MD5 everywhere." into 13 2018-01-18 10:05:58 -06:00
Joshua Colp
b944cb629e Merge "BuildSystem: Invoke install not in GNU but POSIX style." into 13 2018-01-18 09:47:28 -06:00
Jenkins2
8e5f07c53c Merge "BuildSystem: In OpenBSD, xmlstarlet is xml." into 13 2018-01-18 09:17:53 -06:00
Jenkins2
b1a65933e2 Merge "app_followme: Add a prompt to be read when a call is connected" into 13 2018-01-18 09:09:27 -06:00
Igor Goncharovsky
1488efb3a8 chan_unistim: Fix hold function ability to lock/crash asterisk
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-18 09:04:25 +03:00
Joshua Colp
c137446772 Merge "pjproject_bundled: Prevent crash on bad outgoing header" into 13 2018-01-17 12:27:19 -06:00
ghjm
0b399013c6 app_followme: Add a prompt to be read when a call is connected
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-17 12:00:22 -06:00
Jenkins2
16f211c647 Merge "res_pjsip: Split type=identify to IP address and SIP header matching priorities" into 13 2018-01-17 11:32:39 -06:00
Corey Farrell
22edb10c44 loader: Miscellaneous fixes.
* 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-17 11:59:40 -05:00
Alexander Traud
9ffa1f4301 BuildSystem: Use the detected name for MD5 everywhere.
Affacted the (automatic) download script for external modules:
./build_tools/download_externals

ASTERISK-27596

Change-Id: If4c3176f7bf58df32fec6e02a659f1a78d57cf4b
2018-01-17 08:36:44 -06:00
Alexander Traud
de65fd11fe BuildSystem: Invoke install not in GNU but POSIX style.
ASTERISK-27594

Change-Id: Iaaa6a19d2fe031dffcba441d0502a7ea65c93cb3
2018-01-17 07:12:25 -06:00
Alexander Traud
72845d54f0 BuildSystem: In OpenBSD, xmlstarlet is xml.
ASTERISK-27593

Change-Id: I1c7087f7f7582e40b3312c690d912c9a86466805
2018-01-17 06:53:11 -06:00