Commit graph

1230 commits

Author SHA1 Message Date
Christian Marangi
f265a93991
rtpengine: add patch fixing compilation warning for kernel module
Add patch fixing compilation warning for kernel module.
Always dynamically allocate buffer for proc_control_read_write.
Fix compilation warning:
/builder/shared-workdir/build/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/rtpengine-no-transcode/rtpengine-mr10.5.2.6/kernel-module/xt_RTPENGINE.c: In function 'proc_control_read_write':
/builder/shared-workdir/build/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/rtpengine-no-transcode/rtpengine-mr10.5.2.6/kernel-module/xt_RTPENGINE.c:3573:1: error: the frame size of 1272 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
 3573 | }
      | ^

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-05-12 19:42:31 +02:00
micmac1
2a81709fd9
Merge pull request #806 from dhewg/buildflags
kamailio: refactor to use PKG_BUILD_FLAGS:=no-mips16
2023-03-24 10:13:45 +01:00
micmac1
50d73ce8e4
Merge pull request #802 from cotequeiroz/baresip
baresip: fix parallel build
2023-03-24 10:10:49 +01:00
Andre Heider
7681ad21d8 kamailio: refactor to use PKG_BUILD_FLAGS:=no-mips16
See commit 5c545bdb "treewide: replace PKG_USE_MIPS16:=0 with
PKG_BUILD_FLAGS:=no-mips16" on the main repository.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-03-23 11:04:25 +01:00
Sebastian Kemper
3b0a9ac8c8 asterisk-chan-sccp: autoconf fixes
Since OpenWrt updated autoconf to 2.71 configure fails, because
"$ac_dir" is now empty when configure attempts to run
"./tools/versioncheck". With previous autoconf "$ac_dir" contained
"autoconf" at this point in the script.

As a workaround "$ac_dir" is replaced with "$ac_aux_dir", which
incidentally contains "autoconf".

Also a build dependency is added for gettext-full, as it provides
iconv.m4. Previously this was provided by libiconv, but not anymore.
Without iconv.m4 autoreconf fails.

Some patches were refreshed to allow CI to pass.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-03-18 17:52:05 +01:00
Sebastian Kemper
269b611027 freeswitch: bump to 1.10.9
ZRTP support removed as it was dropped upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-03-02 20:12:23 +01:00
Eneas U de Queiroz
d1d08eae09
baresip: fix parallel build
Include an upstream patch to fix random parallel build failures, such
as:

  CC [M]  build-arm/modules/ctrl_dbus/ctrl_dbus.o
modules/ctrl_dbus/ctrl_dbus.c:69:10: fatal error: baresipbus.h: No such
file or directory
   69 | #include "baresipbus.h"
      |          ^~~~~~~~~~~~~~

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-02-10 18:21:13 -03:00
Eneas U de Queiroz
26bb868229
coturn: update to 4.6.1
Added a patch from Gentoo that brings compatiblity with OpenSSL 3.0.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-02-10 18:20:35 -03:00
Eneas U de Queiroz
09ad78b6cc
freeswitch: allow building with OpenSSL 3.0
Add -Wno-error=deprecated-declarations to CFLAGS to allow usage of
deprecated API.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-02-10 18:20:35 -03:00
Sebastian Kemper
022701e067 rtpengine: update libwebsockets dependency
The rtpengine daemon requires lws_get_ssl(). This function is not
available in libwebsockets-mbedtls. This commit updates the dependency
to libwebsockets-openssl.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-01-09 12:04:53 +01:00
Sebastian Kemper
64df3ed58c asterisk: bump to 20.0.1
Fixes

AST-2022-007
AST-2022-008
AST-2022-009

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-12-02 18:15:27 +01:00
Sebastian Kemper
e024681271 rtpproxy: use return in init script
"check_ipaddr()" & "start_service()" are functions, hence "return"
should be used instead of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-08 22:19:29 +01:00
Sebastian Kemper
2be80b04dd kamailio: use return in init script
"check_listen()" & "start_service()" are functions, hence "return"
should be used instead of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-08 22:04:55 +01:00
Sebastian Kemper
9604a203d5 freeswitch: use return in init script
"start_service()" is a function, hence "return" should be used instead
of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-08 21:19:27 +01:00
Sebastian Kemper
ebfad751c7 coturn: use return in init script
"start_service()" is a function, hence "return" should be used instead
of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-08 21:13:05 +01:00
Sebastian Kemper
b69ae7b934 baresip: use return in init script
"start_service()" is a function, hence "return" should be used instead
of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-08 21:11:08 +01:00
Sebastian Kemper
69aebd4f4f asterisk: use return in init script
"start_service()" is a function, hence "return" should be used instead
of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-08 21:08:54 +01:00
Sebastian Kemper
145d0b3a30 freeswitch: workaround mod-shout compile failure
The recent libshout update causes compile failures due to deprecation.
This works around it. Can be removed once issue is fixed upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-07 22:07:53 +01:00
Sebastian Kemper
5ddb85f494 asterisk: bump to 20.0.0 LTS
No longer existing modules removed from OpenWrt Makefile. Same for
configure switches. Patches refreshed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-19 23:19:30 +02:00
Sebastian Kemper
7163789ee1 kamailio: bump to 5.6.2
- 4 new modules: misctest, posops, siprepo & slack
- 140-redis_use_pkg-config.patch refreshed
- 160-ldap-rename-private-function-ldap_connect.patch and
  170-core-add-support-for-time64-libcs.patch removed (applied
  upstream)
- 160-siputils-fix-time_t-warning-and-a-typo.patch added to fix time_t
  warning (sent upstream, see [1])

[1] https://github.com/kamailio/kamailio/pull/3266

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-16 17:40:43 +02:00
Sebastian Kemper
457552110e kamailio: fix dep for keepalive module
Currently the dependency is in the wrong position.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-16 17:15:18 +02:00
Sebastian Kemper
07cbb38db1 kamailio: add descriptions via BuildKamailioModule
The Makefile currently advertises that descriptions can be added by
specifying a string in argument 3 of BuildKamailioModule, but there's
actually no mechanism for this. This commit adds the missing pieces.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-16 17:09:24 +02:00
Sebastian Kemper
66cddc0459 freeswitch: bump to 1.10.8
- minor version bump
- mod-dingaling, mod-unimrcp and apr-util got removed from source tar
  ball, prompting some cleanup
- patches refreshed

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-15 16:49:42 +02:00
Sebastian Kemper
2a13d2eb1e rtpengine: add mqtt dep
rtpengine will use the lib if found, so add it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-15 09:56:12 +02:00
Sebastian Kemper
432432458a rtpengine: bump to 10.5.2.6
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-15 00:51:28 +02:00
Sebastian Kemper
839c181348 sngrep: bump to 1.6.0
- use pcre2 instead of pcre
- add zlib support

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-09-25 11:50:40 +02:00
Sebastian Kemper
aa3bc352e7 asterisk: bump to 18.14.0
- add new modules
- res-geolocation depends on asterisk being built with libxlt support,
  but to make libxslt a general dependency is probably not a good idea
  for small devices, so this adds a config option
  ASTERISK_LIBXSLT_SUPPORT that is off by default except on x86_64
  builds
- correct some module titles by removing the extraneous "support" string
- refresh patches
- 170-time-add-support-for-time64-libcs.patch,
  180_build-fix-bininstall-launchd-issue-on-cross-platfrom.patch and
  190-logger-workaround-woefully-small-BUFSIZ-in-MUSL.patch removed as
  included in upstream release
- added 170-menuselect-force-use-of-xml2-config.patch as upstream
  switched to use pkg-config for libxml2 detection, which would be fine,
  except OpenWrt's host libxml2 is static and Asterisk can't handle that

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-08-20 17:12:39 +02:00
Sebastian Kemper
4e30b64604 asterisk-chan-dongle: adapt BUILD_NLS handling
openwrt recently stopped using libiconv-stub in the BUILD_NLS=n case.
Instead the libc's iconv has to be used.

This commit changes the iconv include path passed to
asterisk-chan-dongle for the BUILD_NLS=n case to
$(TOOLCHAIN_DIR)/include. That's where musl and glibc store iconv.h.

Also, the patch 200-fix-iconv-detection.patch gets replaced with a sed
script that only runs in the BUILD_NLS=y case.

And finally, $(AUTORELEASE) is added.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-07-16 20:34:25 +02:00
Sebastian Kemper
62929c24b6 freeswitch: workaround compile fail with gcc 12
An issue report already exists upstream [1].

[1] https://github.com/signalwire/freeswitch/issues/1670

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-06-12 10:10:44 +02:00
Nick Hainke
2d9385f120 rtpengine: fix compilation with iptables 1.8.8
The extension handling changed [0,1]. Fix compilation with iptables
1.8.8 [2].

[0] - https://git.netfilter.org/iptables/commit/?id=ef108943f69a6e20533d58823740d3f0534ea8ec
[1] - https://git.netfilter.org/iptables/commit/?id=6c689b639cf8e2aeced8685eca2915892d76ad86
[2] - https://github.com/openwrt/openwrt/pull/9886

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-06-08 21:14:51 +02:00
Sebastian Kemper
64a1d2faef asterisk: add --without-libxslt to configure
Since upstream commit b40c4d59b1dd803cad79060fb5b5a48d249ba578
"--disable-xmldoc" does no longer prevent the linking to libxslt, if
available. If that's the case one is greeted with the following error:

Package asterisk is missing dependencies for the following libraries:
libxslt.so.1

This commit explicitly disables the use of libxslt, to avoid the
dependency.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-04-17 10:57:22 +02:00
Sebastian Kemper
23925c22f8 asterisk: add logger patch
Add a patch from Philip that got upstreamed. This is in reference to
issue #737.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-04-15 17:17:10 +02:00
Sebastian Kemper
c1cb4fd1a4 asterisk: replace time64 patch
This replaces the current patch with the one upstreamed by Philip.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-04-15 17:16:40 +02:00
Sebastian Kemper
958401fa8f asterisk: bump to version 18.11.2
- add two new modules (app_sf and func_json)
- update 100-build-reproducibly.patch as upstream refactored some of the
  code
- refresh patches

This bump includes fixes for the following security issues:

https://downloads.asterisk.org/pub/security/AST-2022-001.html
https://downloads.asterisk.org/pub/security/AST-2022-002.html
https://downloads.asterisk.org/pub/security/AST-2022-003.html

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-04-15 16:41:43 +02:00
Jiri Slachta
24acd46d2a
Merge pull request #739 from pprindeville/issue#738
asterisk: don't send stdout to syslog by default
2022-03-24 08:30:51 +01:00
Sebastian Kemper
7b79a34166 freeswitch: mark mod-av BROKEN
FS is not yet ready for FFMPEG 5.0. Upstream has a related issue already
([1]).

Also move to AUTORELEASE.

[1] https://github.com/signalwire/freeswitch/issues/1560

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-03-03 23:08:12 +01:00
Sebastian Kemper
3657828ae3 rtpengine: use perl/host when building
utils/const_str_hash is called by rtpengine build system. The Perl
script uses shebang "#!/usr/bin/perl" and depends on perl-IPC-Cmd. If
this is missing the build will fail:

../utils/const_str_hash < "control_ng.c" > "control_ng.strhash.c"
Can't locate IPC/Cmd.pm in @INC (you may need to install the IPC::Cmd module) (@INC contains: /usr/local/lib64/perl5/5.34 /usr/local/share/perl5/5.34 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ../utils/const_str_hash line 6.
BEGIN failed--compilation aborted at ../utils/const_str_hash line 6.
make[4]: *** [../lib/common.Makefile:46: control_ng.strhash.c] Error 2

OpenWrt does not depend on perl-IPC-Cmd being available, so this commit
makes rtpengine build depend on perl/host, which provides this Perl
module.

Closes #748

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-02-26 18:02:34 +01:00
Sebastian Kemper
10f2be5400 siproxd: update to latest git
This includes time64 fixes plus allows reproducible builds.

Also switch to $(AUTORELEASE)

Closes #613
Closes #742

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-02-20 13:19:23 +01:00
micmac1
703bf7013d
Merge pull request #740 from svlobanov/kamailio-fix-build-on-macos
kamailio: fix build on macos
2022-02-14 21:28:56 +01:00
Sergey V. Lobanov
f902c18fbc kamailio: fix build on macos
kamailio macos build fails due to kamailio Makefile checks OS
(`uname -s`) and OSREL (`uname -r`). If build host is not Linux,
then these checks will provide different results, but OpenWrt is
always Linux so target OS should be always Linux.

This patch explicitly specifies OS=linux and OSREL=$(LINUX_UNAME_VERSION)
to avoid using build host values for target build.

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-02-14 02:13:47 +03:00
Sebastian Kemper
4492cc2b83 baresip: only build gst with AUDIO_SUPPORT enabled
Most gstreamer packages aren't build when the target does not have
AUDIO_SUPPORT. This can be seen with realtek target (4kec).

This commit makes the gst plugins depend on AUDIO_SUPPORT, because
otherwise the build dies with this error:

Package baresip-mod-gst-video is missing dependencies for the following libraries:
libgstapp-1.0.so.0

Note: compiling baresip on a target without AUDIO_SUPPORT may be
questionable anyway.

Close #730

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-02-13 18:54:17 +01:00
Sergey V. Lobanov
4209a36afe asterisk: fix build on macos
This commit adds a patch to fix /sbin/launchd detection on macos

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-02-09 02:03:30 +03:00
Philip Prindeville
fb0c2cf2b8 asterisk: don't send stdout to syslog by default
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2022-02-06 12:16:44 -07:00
Sergey V. Lobanov
fb23e4f004 yate: fix build on macos
yate configure script uses `uname -s` to determine OS and changes
build logic regarding to build host OS. OpenWrt is always Linux so
it should be built as for Linux.

This patch uses fakeuname tool to pass `uname -s` checks as Linux
on macos build host.

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-02-06 11:46:51 +03:00
micmac1
ab94e2c73e
Merge pull request #734 from svlobanov/coturn-repro-and-macos-build-fix
coturn: improve reproducibility and fix build on macos
2022-02-06 08:41:32 +01:00
Sebastian Kemper
b508e76300 restund: remove package
Removing as upstream dropped the project. Users can use coturn instead.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-02-01 18:16:17 +01:00
Sergey V. Lobanov
ba23b92974 coturn: fix build on macos
coturn build fails on macos due using `ar -r` by default, but macos
system `ar` is not compatible with the objects generated by OpenWrt
GCC toolchain.

This patch redefines ARCHIVERCMD="$(TARGET_AR) -r" to make it possible
to build coturn on macos build host.

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-02-01 19:49:03 +03:00
Sergey V. Lobanov
8a4daac339 coturn: improve reproducibility (Ubuntu build host fix)
coturn package is reproducible unless the build OS is Ubuntu

coturn configure script detects Ubuntu build host([1]) and changes
compilation flags so produced OpenWrt binaries are different on
Ubuntu and any other build OS (e.g. Debian). It might be necessary
for native build but this check is not valid for cross-compiling.

This patch set LIBEV_OK=1 to generate the same binaries on Ubuntu
and other build OS

Refs:
[1] https://github.com/coturn/coturn/blob/upstream/4.5.2/configure#L426-L435

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-02-01 19:26:38 +03:00
Sebastian Kemper
6ffb3e81d2 rtpengine: bump to 9.5.3.2
Latest LTS release. Switch to AUTORELEASE.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-01-22 11:55:56 +01:00
Shaleen Jain
409e797785 asterisk-chan-dongle: update to the latest git HEAD
The upstream commit 6073c91fcf0a46a1525d500c274fa5ab96af7dda broke
non-quectel devices due to the channel driver unable to complete
initialization.

This is fixed in the latest upstream commit.

Signed-off-by: Shaleen Jain <shaleen@jain.sh>
2022-01-04 16:09:08 +05:30