Commit graph

1290 commits

Author SHA1 Message Date
Sebastian Kemper
2711cb872b freeswitch-stable: bump to 1.8.2
- bump version
- go back to using release tarballs (unavailable when 1.8.1 was
  initially released)
- add OpenWrt mirror

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-09-27 22:48:22 +02:00
Jiri Slachta
66bd4490a5
Merge pull request #370 from micmac1/kama-mas-cve
(master) kamailio-5.x: add fix for CVE-2018-16657
2018-09-21 16:47:25 +02:00
Jiri Slachta
d862d911b0
Merge pull request #373 from micmac1/master-AST-2018-009
(Master) Fix for AST-2018-009
2018-09-21 16:46:56 +02:00
Sebastian Kemper
8a53ea43a1 asterisk-15.x: fix for AST-2018-009
Add upstream fix for AST-2018-009: Remote crash vulnerability in HTTP
websocket upgrade

The vulnerability affects the res_http_websocket.so module.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-09-20 23:34:25 +02:00
Sebastian Kemper
ed99b9f31b asterisk-13.x: fix for AST-2018-009
Add upstream fix for AST-2018-009: Remote crash vulnerability in HTTP
websocket upgrade

The vulnerability affects the res_http_websocket.so module.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-09-20 23:29:33 +02:00
Sebastian Kemper
8ecfc4b0b1 kamailio-5.x: add fix for CVE-2018-16657
In Kamailio before 5.0.7 and 5.1.x before 5.1.4, a crafted SIP message with
an invalid Via header causes a segmentation fault and crashes Kamailio. The
reason is missing input validation in the crcitt_string_array core function
for calculating a CRC hash for To tags. (An additional error is present in
the check_via_address core function: this function also misses input
validation.) This could result in denial of service and potentially the
execution of arbitrary code.

Patch from upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-09-12 20:27:33 +02:00
micmac1
f14a417ae3
Merge pull request #368 from micmac1/fs-cpe
freeswitch-stable: add PKG_CPE_ID
2018-08-26 20:13:55 +02:00
Sebastian Kemper
8dc9a376bf freeswitch-stable: add PKG_CPE_ID
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-26 20:08:50 +02:00
micmac1
de2ac6fbc7
Merge pull request #367 from micmac1/fs-uci
freeswitch-stable: replace init config defaults with UCI
2018-08-26 12:52:07 +02:00
Sebastian Kemper
d78c4e07fa freeswitch-stable: replace defaults with uci
This commit replaces /etc/default/freeswitch with /etc/config/freeswitch.
This way the init and hotplug configuration can be done with uci instead of
having to edit a file.

This also does away with the busybox ntpd warning. ntpd uses the same
configuration in system and it looks like busybox's ntpd is not used when
ntpd is installed.

Lastly some log strings are amended to start with a lowercase letter.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-26 12:36:48 +02:00
Sebastian Kemper
a162bd9298 freeswitch-stable: disable parallel build
There is a discussion ongoing if parallel builds should be enabled by
default. For freeswitch parallel builds are known to fail when certain
modules are enabled. This commit preemptively disables parallel builds
explicitly.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-26 12:19:25 +02:00
micmac1
4d83344fee
Merge pull request #365 from micmac1/fs-perl-master
freeswitch-stable: fix perl setup
2018-08-16 22:19:45 +02:00
Sebastian Kemper
3466a118b5 freeswitch-stable: fix perl setup
A recent commit in packages/lang/perl is causing a problem with the
perlmod.mk include. Work around this by including perlver.mk instead and
setting up PERL_CMD and PERL_SITELIB manually.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-16 22:12:27 +02:00
Jiri Slachta
76851ef29d
Merge pull request #360 from micmac1/kam-cve-master
kamailio-5.x: add fix for CVE-2018-14767
2018-08-11 12:18:26 +02:00
Jiri Slachta
d025a99c08
Merge pull request #346 from micmac1/asterisk-uclibc-iconv
asterisk: fix iconv related build issue
2018-08-11 12:17:27 +02:00
Jiri Slachta
1f1a639abe
Merge pull request #351 from micmac1/sccp-nls
asterisk-chan-sccp: remove iconv hack
2018-08-11 12:16:44 +02:00
Jiri Slachta
ef0b6466f4
Merge pull request #352 from micmac1/dongle-nls
asterisk-chan-dongle: remove iconv hack + update snapshot
2018-08-11 12:16:07 +02:00
Sebastian Kemper
1c3677ac96 kamailio-5.x: add fix for CVE-2018-14767
CVE-2018-14767: "In Kamailio before 5.0.7 and 5.1.x before 5.1.4, a
crafted SIP message with a double "To" header and an empty "To" tag
causes a segmentation fault and crash. The reason is missing input
validation in the "build_res_buf_from_sip_req" core function. This could
result in denial of service and potentially the execution of arbitrary
code."

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-06 23:25:27 +02:00
micmac1
8f6cce7af8
Merge pull request #358 from micmac1/fs-1.8-sigkill
freeswitch-stable: add SIGKILL to init script
2018-08-05 15:07:27 +02:00
Sebastian Kemper
b7ce37ba0b freeswitch-stable: add SIGKILL to init script
Sometimes freeswitch doesn't exit after receiving the SIGTERM signal.
This can be reproduced by sending SIGTERM to a freeswitch instance which
is initializing (which can take quite some time).

Instead of just giving up and exiting - leaving a hung freeswitch
process on the system - this commit adds some lines to the init script
that send SIGKILL to freeswitch in case the attempt to terminate it with
SIGTERM fails.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-05 14:56:08 +02:00
micmac1
26db4efb3c
Merge pull request #347 from micmac1/yate-uclibc-iconv
yate: upgrade to 6.1.0 and fix uclibc build issue
2018-08-05 11:22:49 +02:00
micmac1
5a918f3df3
Merge pull request #357 from micmac1/fs-1.8-fs_cli
freeswitch-stable: fix garbled output in fs_cli
2018-08-03 18:52:00 +02:00
Sebastian Kemper
f0d34a6e6d freeswitch-stable: fix garbled output in fs_cli
Fix a typo. Sent to upstream via Jira FS-11309.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-03 18:48:40 +02:00
micmac1
70e0535e59
Merge pull request #356 from cotequeiroz/freeswitch-stable_memory-leak
freeswitch-stable: fix memory leak in mod_event_multicast
2018-08-01 22:47:37 +02:00
Eneas U de Queiroz
c116c37851 freeswitch-stable: fix memory leak in mod_event_multicast
Applied a patch, submitted upstream at
https://freeswitch.org/jira/browse/FS-11193
that fixes two memory leaks in mod_event_multicast.c

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2018-08-01 14:15:14 -03:00
micmac1
c31caa1541
Merge pull request #355 from micmac1/fs-1.8-mods
freeswitch-stable: add new modules
2018-08-01 15:55:36 +02:00
Sebastian Kemper
3fbdfa8d96 freeswitch-stable: add new modules
1. fail2ban
2. raven
3. video_filter

All three are new in FreeSWITCH 1.8.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-01 15:51:13 +02:00
micmac1
aa966ce4eb
Merge pull request #354 from micmac1/fs-1.8
freeswitch-stable: bump to 1.8.1
2018-08-01 13:35:40 +02:00
Sebastian Kemper
06b7df55b0 freeswitch-stable: upgrade to 1.8.1
- Bump version from 1.6.20 to 1.8.1 (includes OpenSSL 1.1.0 support).
- Upstream didn't provide a source tarball yet, switch to git to grab
  the release.
- freeradius-client got updated to 1.1.7 by upstream, update version and
  checksum accordingly.
- tiff, libvpx and pcre patches are no longer needed, drop them.
- Refresh the remaining patches. Only minor changes were needed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-01 13:22:42 +02:00
Sebastian Kemper
2ef37ad9fe freeswitch-stable: remove mod_v8
mod_v8 is too difficult to maintain and tricky to cross-compile. This
commit removes it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-01 13:13:34 +02:00
Sebastian Kemper
63caadb3d3 asterisk-chan-dongle: update snapshot
Includes USSD encoding fix for E3531.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-18 22:11:46 +02:00
Sebastian Kemper
d5f36f5394 asterisk-chan-dongle: remove iconv hack
Remove the hack for iconv on uclibc. Instead include nls.mk which will
sort out the iconv depends.

This changes the iconv patch. AC_SEARCH_LIB doesn't work properly for
openwrt/lede. Instead use AC_CHECK_LIB.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-18 22:07:50 +02:00
Sebastian Kemper
e45e405487 asterisk-chan-sccp: remove iconv hack
Instead just include nls.mk.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-17 23:26:23 +02:00
micmac1
c479fe35e4
Merge pull request #350 from micmac1/fs-nls3
freeswitch-stable: fix gsmopen inbuf handling
2018-07-16 23:27:31 +02:00
Sebastian Kemper
1886bd33b5 freeswitch-stable: fix gsmopen inbuf handling
inbuf is only const in libiconv-full when compiled against uclibc.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-16 23:24:38 +02:00
micmac1
46dddeb3f1
Merge pull request #349 from micmac1/fs-nls2
freeswitch-stable: fix sed script
2018-07-15 23:34:43 +02:00
Sebastian Kemper
d568f9336c freeswitch-stable: fix sed script
The sed script used on libs/unimrcp is used to set LDFLAGS using
APR_SETVAR. Since nls.mk is included there are LDFLAGS with commas. But
the macro APR_SETVAR uses commas to separate arguments, so now the
LDFLAGS are only getting partially copied.

Solve this by surrounding LDFLAGS with brackets ([...]).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-15 23:27:09 +02:00
micmac1
208b918f24
Merge pull request #348 from micmac1/fs-nls
freeswitch-stable: fix iconv related issues
2018-07-15 16:58:44 +02:00
Sebastian Kemper
e5e1e20ab3 freeswitch-stable: include nls.mk, remove hack
Removes the uClibc iconv hack. Instead nls.mk is included to sort out
iconv depends.

mod_gsmopen isn't able to figure out if iconv's inbuf is const. In
OpenWrt this is the case with libiconv-full, not with libiconv-stub. To
aid mod_gsmopen update 270-fix-uclibc-iconv-in-gsmopen.patch so that we
can pass on if inbuf is const via CFLAGS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-15 16:53:23 +02:00
Sebastian Kemper
9d339b9e41 freeswitch-stable: fix APR_TRY_COMPILE_NO_WARNING
The macro included in apr/apr-util is incorrect. It results in extra
brackets being put into conftest.c, for example:

  #include "confdefs.h"

[
  #include <stddef.h>
  #include <iconv.h>
  ]
int main(int argc, const char *const *argv) {
[
  iconv(0,(char **)0,(size_t *)0,(char **)0,(size_t *)0);
  ]
  return 0; }

The test always fails with:

error: expected identifier or '(' before '[' token

The following checks are affected:

- variable length arrays
- type of inbuf parameter to iconv

Fix from upstream (Apache).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-15 16:34:53 +02:00
Sebastian Kemper
b12a8bf62c asterisk-15.x: fix iconv related build issue
libmariadb 10.2 needs to be linked in together with iconv. Include nls.mk
to help the build system find the iconv library.

Also update func_iconv's depend. We want to use the variable
$(ICONV_DEPENDS) provided by nls.mk. It resolves to
+BUILD_NLS:libiconv-full. This cannot be handled properly right now, as the
module depends filter cannot handle +<SYMBOL>:<package> depends. So add
another field to the Makefile's module function for complex depends, which
are passed on unfiltered.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-12 23:21:41 +02:00
Sebastian Kemper
166a1d9f0b asterisk-13.x: fix iconv related build issue
libmariadb 10.2 needs to be linked in together with iconv. Include nls.mk
to help the build system find the iconv library.

Also update func_iconv's depend. We want to use the variable
$(ICONV_DEPENDS) provided by nls.mk. It resolves to
+BUILD_NLS:libiconv-full. This cannot be handled properly right now, as the
module depends filter cannot handle +<SYMBOL>:<package> depends. So add
another field to the Makefile's module function for complex depends, which
are passed on unfiltered.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-12 23:13:27 +02:00
Sebastian Kemper
6315dcd5bf yate: update to 6.1.0
Upgrade yate. The video codec mapping patch needed some small changes.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-12 22:25:01 +02:00
Sebastian Kemper
0234b91cba yate: fix mod-mysqldb compile
Since libmariadb 10.2.x requires to be linked in together with iconv,
include nls.mk to help the build system find it.

Also fix a type in PKG_CONFIG_DEPENDS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-12 22:22:20 +02:00
Jiri Slachta
7407084406
Merge pull request #343 from micmac1/AST-master
(for master) asterik: fix AST-2018-007 and AST-2018-008
2018-06-28 10:43:45 +02:00
Sebastian Kemper
6228ab5ed9 asterisk-15.x: patch AST-2018-007 and 008
Patches from upstream for:

AST-2018-007
AST-2018-008

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-06-25 22:50:20 +02:00
Sebastian Kemper
028912b333 asterisk-13.x: patch AST-2018-008
Patch from upstream for AST-2018-008.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-06-25 22:47:40 +02:00
micmac1
c7cb1e30c2
Merge pull request #339 from micmac1/fs-pcre
freeswitch-stable: fix incompatible pointer type
2018-06-21 21:14:14 +02:00
Sebastian Kemper
2c490b7fd1 freeswitch-stable: fix incompatible pointer type
Currently compiles fail with:

  CC       libfreeswitch_la-switch_regex.lo
src/switch_regex.c: In function 'switch_regex_compile':
src/switch_regex.c:40:9: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
  return pcre_compile(pattern, options, errorptr, erroroffset, tables);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Makefile:2100: recipe for target 'libfreeswitch_la-switch_regex.lo' failed
make[5]: *** [libfreeswitch_la-switch_regex.lo] Error 1

Fix cherry-picked from upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-06-21 21:09:54 +02:00
Jiri Slachta
02928ab9c8
Merge pull request #332 from guidosarducci/siproxd-procd-cleanup
siproxd: switch to procd, restructure/cleanup code, bugfix
2018-05-27 07:32:45 +02:00