feed/telephony.git
23 months agoMerge pull request #793 from micmac1/ast-18.5.1-21.02 openwrt-21.02
Jiri Slachta [Sat, 3 Dec 2022 16:15:19 +0000 (17:15 +0100)]
Merge pull request #793 from micmac1/ast-18.5.1-21.02

[21.02] asterisk: bump to 18.15.1

23 months agoasterisk: bump to 18.15.1 793/head
Sebastian Kemper [Sat, 3 Dec 2022 14:53:38 +0000 (15:53 +0100)]
asterisk: bump to 18.15.1

This is a manual cherry-pick of commit
aa3bc352e787768fbf5f1f806a9b2b06a74b19fc as well as commit
b71770db4196e3eeefc01367e0d36a3f61d8ef85. The latter is currently in a
pull request to update asterisk to 18.15.1 in the openwrt-22.03 branch.

- 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
- refresh patches
- 180_build-fix-bininstall-launchd-issue-on-cross-platfrom.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
- the bump to 18.15.1 contains fixes for AST-2022-007, AST-2022-008 and
  AST-2022-009

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
23 months agopjproject: bump to 2.12.1
Sebastian Kemper [Sat, 3 Dec 2022 14:41:32 +0000 (15:41 +0100)]
pjproject: bump to 2.12.1

This is a manual cherry-pick of a57228588602e5217b95f1e9ded0b76402cb6c72
and 472f1ac7ac867b8fbc2841c56e7d61935dba9d52. The only difference is
that the uclibc-related patches were not dropped, because uclibc is used
in OpenWrt 21.02.

- add "--disable-android-mediacodec" to configure
- add EXCLUDE_APP=1 to "make" calls so some apps aren't built (speeds up
  the build a bit)
- drop "sed" call as no longer needed
- update 0004-config_site.patch to sync up with Asterisk 18.14.0
- update 0006-fix-pkg_config-file.patch as there were some changes in
  this area upstream
- add 0007-execinfo.patch to prevent errors due to missing <execinfo.h>
- sync patches with Asterisk 18.14.0
- backports two security fixes (c4d3498 and 450baca) from pjproject
  2.13, source: asterisk 20.0.1

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2 years agoMerge pull request #787 from micmac1/gsm-no-nls-21.02
micmac1 [Mon, 31 Oct 2022 06:37:14 +0000 (07:37 +0100)]
Merge pull request #787 from micmac1/gsm-no-nls-21.02

[21.02] gsmlib: disable NLS

2 years agogsmlib: disable NLS 787/head
Sebastian Kemper [Sat, 21 Aug 2021 23:48:47 +0000 (01:48 +0200)]
gsmlib: disable NLS

It's not wanted, so add "--disable-nls" to override user selecting
CONFIG_BUILD_NLS.

This also updates 01-update-autotools.patch to make these disappear:

ERROR: Use of AM_GNU_GETTEXT without [external] argument is no longer supported.

Makefile.am:21: warning: 'intl' should not be in SUBDIRS when AM_GNU_GETTEXT([external]) is used

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit b86cf0cdc66d056be13ae49563d9bf5aadf28e78)

2 years agoMerge pull request #770 from micmac1/21.02-sof-1.13.8
micmac1 [Tue, 31 May 2022 19:21:09 +0000 (21:21 +0200)]
Merge pull request #770 from micmac1/21.02-sof-1.13.8

[openwrt-21.02] sofia-sip: bump to 1.13.8

2 years agosofia-sip: bump to 1.13.8 770/head
Sebastian Kemper [Mon, 30 May 2022 16:24:58 +0000 (18:24 +0200)]
sofia-sip: bump to 1.13.8

Some security issues were fixed. Upstream labelled them as follows:

GHSA-79jq-hh82-cv9g: Fix Out-of-bound read in sip_method_d
GHSA-g3x6-p824-x6hm: Fix Out-of-bound read in url_canonize2 and
                     url_canonize3
GHSA-8w5j-6g2j-pxcp: Fix Heap-buffer-overflow in parse_descs and
                     parse_message

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 1efc4f3f98ed46b8bef2e29710d04131cda8ad44)

2 years agoMerge pull request #761 from micmac1/21.02-AST-2022-01-02-03
Jiri Slachta [Tue, 19 Apr 2022 10:29:43 +0000 (12:29 +0200)]
Merge pull request #761 from micmac1/21.02-AST-2022-01-02-03

[21.02] bump asterisk to 18.11.2

2 years agoasterisk: bump to version 18.11.2 761/head
Sebastian Kemper [Fri, 20 Aug 2021 20:59:49 +0000 (22:59 +0200)]
asterisk: bump to version 18.11.2

asterisk: update AST_EXT_TOOL_CHECK for OpenWrt

Issue #672 shows that the current macro has some pitfalls, at least when
running within OpenWrt's buildroot.

The macro is used to detect these tools:

  1. xml2-config
  2. mysql_config
  3. neon-config
  4. net-snmp-config
  5. sdl-config (we're not using SDL)

The macro also adds configure arguments that allow to specify a path
like so:

  --with-mysqlclient=PATH

Macro problems:

  1. If no PATH is specified, it adds "/bin" to the search path.
     Obviously this is a bad thing when cross-compiling.
  2. If a PATH is specified, it adds it to the start of every include
     and library path it encounters. These paths are then broken.

This commit makes problem 1 go away by making the addition of
"${$1_DIR}/bin" to the PATH dependent on there being a PATH handed to
the macro. An alternative would be to remove the PATH addition
altogether, but then the macro wouldn't behave as expected.

It also removes the path filtering of the include and lib dirs to
address problem 2.

Closes #672

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 79a0acfe56256748615159f6e08687570ac2cf88)

asterisk: bump to 18.7.1

The removed patch has been applied upstream and is part of this release.

Signed-off-by: Andre Heider <a.heider@gmail.com>
(cherry picked from commit 0399a3dc730ae639636bcd053193b37751f8df4d)

asterisk: add missing modules + dependency

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 04b6b267f1c36e228655236ce054b5e0eb15c804)

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>
(cherry picked from commit 4209a36afe4c66365bdffc5f62d287e94cfc8edd)

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>
(cherry picked from commit 958401fa8f98e50df02917eded1eb4815997985d)

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>
(cherry picked from commit 64a1d2faef62352327c4aaeec803ce71ff5d2c40)

2 years agopjproject: sync patches with asterisk 18.11.2
Andre Heider [Thu, 7 Oct 2021 16:31:07 +0000 (18:31 +0200)]
pjproject: sync patches with asterisk 18.11.2

pjproject: sync patches with asterisk 18.7.1

Signed-off-by: Andre Heider <a.heider@gmail.com>
(cherry picked from commit 376473b38c0a6f4a8e742a26caafbf484ed1b9c5)

pjproject: sync patches with asterisk 18.11.2

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 0c67ab5831bb1509af035ce8f142eabbf14bd82a)

2 years agoMerge pull request #753 from micmac1/openwrt-21.02-AST
micmac1 [Sun, 6 Mar 2022 11:31:34 +0000 (12:31 +0100)]
Merge pull request #753 from micmac1/openwrt-21.02-AST

[21.02] pjproject: add upstream security fixes

2 years agopjproject: add upstream security fixes 753/head
Sebastian Kemper [Sat, 5 Mar 2022 15:58:00 +0000 (16:58 +0100)]
pjproject: add upstream security fixes

Details:

https://downloads.asterisk.org/pub/security/AST-2022-004.html
https://downloads.asterisk.org/pub/security/AST-2022-005.html
https://downloads.asterisk.org/pub/security/AST-2022-006.html

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 623e5288f16baa64472eefbbd215aacb0f99e79f)

2 years agoMerge pull request #746 from micmac1/pj-AST-2021-009-2-21.02
micmac1 [Sun, 20 Feb 2022 22:38:22 +0000 (23:38 +0100)]
Merge pull request #746 from micmac1/pj-AST-2021-009-2-21.02

[21.02] pjproject: add missing patch for AST-2021-009

2 years agopjproject: add missing patch for AST-2021-009 746/head
Sebastian Kemper [Sun, 20 Feb 2022 22:10:02 +0000 (23:10 +0100)]
pjproject: add missing patch for AST-2021-009

AST-2021-009 has two patches, the second of which was missed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 1ac119d6c897950f8f1719b4c7c26c63cb060d2e)

2 years agoMerge pull request #733 from micmac1/sof-1137-21
micmac1 [Mon, 31 Jan 2022 18:55:35 +0000 (19:55 +0100)]
Merge pull request #733 from micmac1/sof-1137-21

[21.02] sofia-sip: update to 1.13.7

2 years agosofia-sip: update to 1.13.7 733/head
Sebastian Kemper [Mon, 31 Jan 2022 18:34:11 +0000 (19:34 +0100)]
sofia-sip: update to 1.13.7

Contains DOS fix, see [1].

Converted to AUTORELEASE.

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

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit f04a5a23830ced20e0bd298f41fb9fd93c8353a0)

2 years agoMerge pull request #727 from micmac1/dong-head-21
micmac1 [Tue, 4 Jan 2022 13:28:08 +0000 (14:28 +0100)]
Merge pull request #727 from micmac1/dong-head-21

[21.02] asterisk-chan-dongle: update to the latest git HEAD

2 years agoasterisk-chan-dongle: update to the latest git HEAD 727/head
Shaleen Jain [Tue, 4 Jan 2022 09:36:48 +0000 (09:36 +0000)]
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>
(cherry picked from commit 409e7977851b4687364c980738112376ff354691)

2 years agoMerge pull request #716 from micmac1/restund-cve-21.02
Jiri Slachta [Wed, 8 Dec 2021 05:58:06 +0000 (06:58 +0100)]
Merge pull request #716 from micmac1/restund-cve-21.02

[21.02] restund: fix CVE-2021-21382

2 years agorestund: fix CVE-2021-21382 716/head
Sebastian Kemper [Mon, 6 Dec 2021 23:02:25 +0000 (00:02 +0100)]
restund: fix CVE-2021-21382

Patches taken from [1].

[1] https://github.com/wireapp/restund/pull/7

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2 years agoMerge pull request #711 from micmac1/2102-dongle-fixes
micmac1 [Tue, 9 Nov 2021 18:26:19 +0000 (19:26 +0100)]
Merge pull request #711 from micmac1/2102-dongle-fixes

[21.02] asterisk + asterisk-chan-dongle fixes

2 years agoasterisk-chan-dongle: add postinst note 711/head
Sebastian Kemper [Sat, 23 Oct 2021 16:28:53 +0000 (18:28 +0200)]
asterisk-chan-dongle: add postinst note

Provide quick hint to users to sort out possible/likely permission
issue.

Also refreshes some patches.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 829c1cf031ca78ea490543fd908d820ad13fc875)

2 years agoasterisk: don't start with explicit group
Sebastian Kemper [Fri, 22 Oct 2021 22:12:13 +0000 (00:12 +0200)]
asterisk: don't start with explicit group

Currently the asterisk init script starts the service with the group
"asterisk". Like this, even if the asterisk user is part of other groups,
asterisk will not be able to make use of them. So for instance if you add the
user to the group "dialout", asterisk will run under group "asterisk", instead
of "asterisk" _and_ "dialout".

Not specifying the group gets rid of this limitation.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 9017e04b8755b298649280b3d4491666f1b0c94b)

2 years agoasterisk-chan-dongle: bump for upstream fixes
Deomid "rojer" Ryabkov [Wed, 29 Sep 2021 09:14:31 +0000 (10:14 +0100)]
asterisk-chan-dongle: bump for upstream fixes

To pull in fixes, specifically https://github.com/wdoekes/asterisk-chan-dongle/commit/3d2a97f26ba84473a0926a9fe9a32e451a56bc36 which fixes decoding of SMS messages.

Also fixes https://github.com/openwrt/telephony/issues/686
and pulls in Quectel support (alternative to https://github.com/openwrt/telephony/pull/682).

Signed-off-by: Deomid "rojer" Ryabkov <rojer@rojer.me>
(cherry picked from commit 02d5dc545e2ffb2740fa2d7d63c53254eb9a9a09)

2 years agoMerge pull request #707 from micmac1/2102-fs1107
micmac1 [Sun, 7 Nov 2021 23:21:56 +0000 (00:21 +0100)]
Merge pull request #707 from micmac1/2102-fs1107

[21.02] freeswitch: security update to 1.10.7

2 years agofreetdm: add package 707/head
Sebastian Kemper [Sat, 30 Oct 2021 21:08:36 +0000 (23:08 +0200)]
freetdm: add package

It was moved from the freeswitch source tree into its own package.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit fd0c65d37949cd8756fbf8ced3acec78ebf92dbb)

freetdm: fix PKG_CONFIG_DEPENDS

One is missing and one is misspelled.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 4c24ad93d355a324d4418fc48b04254526090178)

freetdm: remove wrong InstallDev defines

They currently don't work, but we don't need them anyway. This removes
them.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 70fa153500bb51c2b9cc06527219b36c25676037)

2 years agosofia-sip: bump to 1.13.6
Sebastian Kemper [Sat, 30 Oct 2021 19:32:05 +0000 (21:32 +0200)]
sofia-sip: bump to 1.13.6

Required for freeswitch 1.10.7.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 940613cd7b4eb45b3f9b73a33eea10ee876b1c42)

2 years agofreeswitch: bump to 1.10.7
Sebastian Kemper [Sat, 30 Oct 2021 20:08:16 +0000 (22:08 +0200)]
freeswitch: bump to 1.10.7

- freetdm is now external
- added the freeswitch library to InstallDev in preparation for freetdm
  package
- various fixes related to general build
- patches refreshed

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 4ab96a18799a8d185a748d0b239b5701f33562c8)

freeswitch: add python3 support

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 652d110b2f7ab2ce50e612186ff220f8b2a7b8e0)

freeswitch: fix 230-mod_radius_cdr.patch

This is a patch in a patch. It may happen that the patch was already
applied previously, so this amends the patch line to continue if the
patch doesn't apply. It also sets the direction to forward-only.

Also removes two trailing whitespace warnings.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 3fafe1afac304cc96a3ff941dcff46c72d504530)

freeswitch: only include python3-version.mk

We're just interested in the version, no need to include more than that.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 42574d54d4e864adeb4b00364069c963a685338d)

freeswitch: don't check for distutils

We're not using distutils, so don't check for it. This fixes #704.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit eb145cd014cc210c3a41f4341e139b1f9bda407d)

freeswitch: update 480-fix-libyuv-dependency.patch

Update the patch with the version that actually was applied upstream. No
functional change.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 6004044dc0cd2aa434d75b195d1669f428acc9b7)

freeswitch: add missing item to PKG_CONFIG_DEPENDS

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit ebcdcb35477383eb4409bce14868a57ec9820cba)

3 years agoMerge pull request #696 from micmac1/lan-up-21.02
micmac1 [Fri, 22 Oct 2021 15:37:35 +0000 (17:37 +0200)]
Merge pull request #696 from micmac1/lan-up-21.02

[21.02] asterisk-chan-lantiq: update for DTMF fix

3 years agoasterisk-chan-lantiq: update for DTMF fix 696/head
Sebastian Kemper [Sat, 11 Sep 2021 22:11:50 +0000 (00:11 +0200)]
asterisk-chan-lantiq: update for DTMF fix

Bump to last commit. Includes fix for DTMF causing call release when
using Asterisk 18 (see [1]).

[1] https://github.com/openwrt/telephony/issues/631

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit ec6ba744b0c73a30ad72b2ba18c762ae318609fe)

3 years agoMerge pull request #680 from micmac1/rtpe-up2
micmac1 [Mon, 30 Aug 2021 08:41:46 +0000 (10:41 +0200)]
Merge pull request #680 from micmac1/rtpe-up2

[21.02] rtpengine: bump to version 8.5.5.1

3 years agortpengine: bump to version 8.5.5.1 680/head
Sebastian Kemper [Sun, 29 Aug 2021 21:00:31 +0000 (23:00 +0200)]
rtpengine: bump to version 8.5.5.1

This also:

 - fixes /etc/modules.d/ipt-rtpengine (needs user and group ids instead
   of names)
 - adds user as well when kmod is installed so that abovementioned user
   and group ids are available
 - adds /etc/modules.d/ipt-rtpengine to conffiles

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoMerge pull request #667 from robho/yate_6.4.0_for_21.02
Jiri Slachta [Mon, 16 Aug 2021 19:06:51 +0000 (21:06 +0200)]
Merge pull request #667 from robho/yate_6.4.0_for_21.02

[21.02] yate: bump to 6.4.0

3 years agoMerge pull request #668 from micmac1/21ast1851
Jiri Slachta [Mon, 16 Aug 2021 19:06:07 +0000 (21:06 +0200)]
Merge pull request #668 from micmac1/21ast1851

[21.02] Backport Asterisk 18.5.1 bump

3 years agoMerge pull request #670 from micmac1/21sof14
micmac1 [Wed, 11 Aug 2021 21:01:16 +0000 (23:01 +0200)]
Merge pull request #670 from micmac1/21sof14

[21.02] sofia-sip: bump to 1.13.4

3 years agoasterisk: bump to 18.5.1 668/head
Sebastian Kemper [Sat, 31 Jul 2021 09:27:21 +0000 (11:27 +0200)]
asterisk: bump to 18.5.1

Update deps of asterisk-res-pjproject. It depends on res_sorcery_config,
which is part of asterisk-res-sorcery.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agopjproject: sync patches with asterisk 18.5.1
Sebastian Kemper [Sat, 31 Jul 2021 09:24:10 +0000 (11:24 +0200)]
pjproject: sync patches with asterisk 18.5.1

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agosofia-sip: bump to 1.13.4 670/head
Sebastian Kemper [Tue, 3 Aug 2021 16:13:59 +0000 (18:13 +0200)]
sofia-sip: bump to 1.13.4

Fixes some issues, for instance a segfault during shutdown when
sofia-sip wasn't fully loaded, see [1]. The segfault was reproducible
by simply calling "freeswitch -help".

The added patch is to address a library versioning regression, patch is
from upstream.

[1] https://github.com/freeswitch/sofia-sip/issues/58

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoyate: bump to 6.4.0 667/head
Robert Högberg [Wed, 4 Aug 2021 21:28:45 +0000 (23:28 +0200)]
yate: bump to 6.4.0

Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
3 years agoMerge pull request #660 from dangowrt/asterisk-18.5.0-for-21.02
Jiri Slachta [Thu, 22 Jul 2021 12:39:16 +0000 (14:39 +0200)]
Merge pull request #660 from dangowrt/asterisk-18.5.0-for-21.02

asterisk: update to version 18.5.0 and backport patch

3 years agoasterisk: update to version 18.5.0 and backport patch 660/head
Daniel Golle [Wed, 21 Jul 2021 13:17:09 +0000 (14:17 +0100)]
asterisk: update to version 18.5.0 and backport patch

Update to upstream version 18.5.0 and backport commit[1] completing the
announcements in Dial command to behave like it is stated in the
documenation[2].

[1]: https://github.com/asterisk/asterisk/commit/1e5a2cfe3037823b17dd4ac47b071f02d6f9825f
[2]: https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Application_Dial

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 20e8c3b2d9150ed0bba02cfeb2e22e7c43e366c8)

3 years agoMerge pull request #647 from robho/yate-6.3.0_21.02
Jiri Slachta [Tue, 8 Jun 2021 06:28:11 +0000 (08:28 +0200)]
Merge pull request #647 from robho/yate-6.3.0_21.02

[21.02] yate: bump to 6.3.0 and enable speex codec

3 years agoyate: bump to 6.3.0 and enable speex codec 647/head
Robert Högberg [Thu, 3 Jun 2021 22:01:59 +0000 (00:01 +0200)]
yate: bump to 6.3.0 and enable speex codec

New yate modules in this release:
yate-mod-ilbcwebrtc
yate-mod-speexcodec
yate-mod-wiresniff

Some patches were removed:
110-no-libnsl.patch - not needed
120-create-thread-key-on-access.patch - not needed
150-video-codecs-mapping.patch - already applied upstream

Some additional changes:
* An upstream fix (r6470) is cherry-picked to avoid crashing when YATE
  receives an invalid SIP message.

* Build directory changed to include package version.

* Set PKG_BUILD_PARALLEL to allow parallelized build of yate.

* Speed up build if yate-mod-ilbccodec or yate-mod-sqlitedb is
  disabled (disable ilbc and sqlite in configure step).

* Removing umbrella package yate-collection-basic. It isn't built and
  hasn't been built for years and I think the modules it wants to
  install are a bit strange and probably not useful to most
  users. From the name yate-collection-basic I would expect to get
  some basic functionality, but why would I then need
  yate-mod-dumbchan, yate-mod-rmanager and yate-mod-tonegen? What is
  the use case? I think it's better that users themselves install the
  packages needed for their use case, especially in OpenWrt where
  flash space usually is limited and you don't want to install more
  packages than what you really need.

Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
3 years agoMerge pull request #645 from micmac1/fs1106-nua-mem-leak-21.02
micmac1 [Thu, 27 May 2021 20:03:16 +0000 (22:03 +0200)]
Merge pull request #645 from micmac1/fs1106-nua-mem-leak-21.02

[21.02] sofia-sip: add upstream fix for memory leak

3 years agosofia-sip: add upstream fix for memory leak 645/head
Sebastian Kemper [Thu, 27 May 2021 18:17:21 +0000 (20:17 +0200)]
sofia-sip: add upstream fix for memory leak

Upstream provided a patch for a memory leak in Sofia SIP (see [1] for
more information).

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

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoasterisk: update to 18.4.0
Jiri Slachta [Wed, 12 May 2021 16:42:06 +0000 (18:42 +0200)]
asterisk: update to 18.4.0

Patches updated/refreshed:

100-build-reproducibly.patch
130-eventfd.patch
140-use-default-lua.patch

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
3 years agoMerge pull request #638 from micmac1/rtpe-8533-21.02
micmac1 [Sun, 18 Apr 2021 10:14:05 +0000 (12:14 +0200)]
Merge pull request #638 from micmac1/rtpe-8533-21.02

rtpengine: bump to 8.5.3.3

3 years agortpengine: fix Module.symvers handling 638/head
Sebastian Kemper [Sat, 20 Feb 2021 10:45:49 +0000 (11:45 +0100)]
rtpengine: fix Module.symvers handling

This sets PKG_EXTMOD_SUBDIRS so kernel.mk can find the rtpengine
Module.symvers file.

Also, this puts KERNEL_MAKE_FLAGS into the make flags used to compile
the kernel module. This way Module.symvers files of other modules are
made available, plus there is no need anymore to specify ARCH and
CROSS_COMPILE, as KERNEL_MAKE_FLAGS already takes care of that.

While updating make flags this also adds PKG_JOBS for completeness'
sake.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agortpengine: build in BUILD_DIR
Sebastian Kemper [Sat, 20 Feb 2021 10:41:27 +0000 (11:41 +0100)]
rtpengine: build in BUILD_DIR

rtpengine is not primarily about kernel modules. It's an application
(which also offers a kernel module). So build it in BUILD_DIR instead of
KERNEL_BUILD_DIR.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agortpengine: bump to 8.5.3.3
Sebastian Kemper [Thu, 15 Apr 2021 10:07:56 +0000 (12:07 +0200)]
rtpengine: bump to 8.5.3.3

Contains upstream fix for G.729 recording with bcg729.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoMerge pull request #635 from micmac1/fs-modmake-patch-21.02
micmac1 [Thu, 8 Apr 2021 20:02:15 +0000 (22:02 +0200)]
Merge pull request #635 from micmac1/fs-modmake-patch-21.02

[21.02] freeswitch: fix 003-modmake-fix.patch

3 years agofreeswitch: fix 003-modmake-fix.patch 635/head
Sebastian Kemper [Wed, 7 Apr 2021 18:53:21 +0000 (20:53 +0200)]
freeswitch: fix 003-modmake-fix.patch

Somehow this white space change slipped in unintentionally.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoMerge pull request #632 from micmac1/fs-1106-21.02
micmac1 [Sun, 4 Apr 2021 08:47:41 +0000 (10:47 +0200)]
Merge pull request #632 from micmac1/fs-1106-21.02

[21.02] update freeswitch to 1.10.6

3 years agofreeswitch: rework init & hotplug 632/head
Sebastian Kemper [Fri, 26 Mar 2021 21:22:18 +0000 (22:22 +0100)]
freeswitch: rework init & hotplug

This adds a term_timeout uci option which can be used to change the
default timeout that procd uses while waiting for freeswitch to exit
once the TERM signal is sent. freeswitch may take a bit longer to exit,
so adding this option is likely appreciated. By default procd's default
is used, though.

Logging is updated in init script and hotplug script. The used facility
is changed from user to daemon, for instance.

An issue was fixed in the parsing of the ntpq output. In case a positive
offset was printed the parsing failed. Apparently ntpq is now adding a
'+', so this is now accounted for.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agofreeswitch: update to 1.10.6
Sebastian Kemper [Fri, 26 Mar 2021 21:15:42 +0000 (22:15 +0100)]
freeswitch: update to 1.10.6

- patches which are now upstream were removed
- some patches were refreshed
- 003-modmake-fix.patch was amended a bit because of upstream commit
  91f12b5 (it changed tests/unit/Makefile.am so that it doesn't
  redefine AM_CFLAGS and AM_CPPFLAGS, which results in duplicated flags)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoMerge pull request #628 from micmac1/21.02-ast-backports
Jiri Slachta [Thu, 25 Mar 2021 11:35:51 +0000 (12:35 +0100)]
Merge pull request #628 from micmac1/21.02-ast-backports

[21.02] asterisk backports

3 years agoMerge pull request #627 from micmac1/21.02-seb-backports
micmac1 [Sun, 21 Mar 2021 18:55:31 +0000 (19:55 +0100)]
Merge pull request #627 from micmac1/21.02-seb-backports

[21.02] freeswitch/sngrep backports

3 years agoasterisk: update to 18.2.2 628/head
Sebastian Kemper [Fri, 19 Mar 2021 17:24:43 +0000 (18:24 +0100)]
asterisk: update to 18.2.2

Updated 140-use-default-lua.patch.

Patches refreshed:
  001-disable-semaphores-on-uclibc-otherwise-allow.patch
  002-configure-fix-detection-of-re-entrant-resolver-funct.patch
  100-build-reproducibly.patch
  130-eventfd.patch

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agopjproject: sync patches with asterisk 18.2.2
Sebastian Kemper [Sun, 14 Mar 2021 17:14:30 +0000 (18:14 +0100)]
pjproject: sync patches with asterisk 18.2.2

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agopjproject: drop autoreconf, run make dep
Sebastian Kemper [Sun, 7 Mar 2021 11:22:45 +0000 (12:22 +0100)]
pjproject: drop autoreconf, run make dep

Neither configure.ac nor configure.in exists, so autoreconf is a no-op.
This commit drops it.

Also, run "make dep" as advertised by the README and the configure
script.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agopjproject: add patch for AST-2021-005
Sebastian Kemper [Sun, 7 Mar 2021 11:21:40 +0000 (12:21 +0100)]
pjproject: add patch for AST-2021-005

https://downloads.asterisk.org/pub/security/AST-2021-005.html
https://issues.asterisk.org/jira/browse/ASTERISK-29196

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agosngrep: bump to 1.4.8 627/head
Sebastian Kemper [Sat, 13 Mar 2021 09:52:30 +0000 (10:52 +0100)]
sngrep: bump to 1.4.8

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agospandsp3: bump to 2020-10-19
Sebastian Kemper [Fri, 12 Mar 2021 17:01:50 +0000 (18:01 +0100)]
spandsp3: bump to 2020-10-19

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agosofia-sip: bump to 1.13.3
Sebastian Kemper [Fri, 12 Mar 2021 16:59:18 +0000 (17:59 +0100)]
sofia-sip: bump to 1.13.3

Upstream now provides a release tarball. Use that instead of a git
checkout.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agolibks: bump to 1.7.0
Sebastian Kemper [Fri, 12 Mar 2021 16:57:06 +0000 (17:57 +0100)]
libks: bump to 1.7.0

Drops 05-openssl-deprecated.patch as included upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoMerge pull request #612 from micmac1/glib-rtpen-bump
micmac1 [Sun, 14 Feb 2021 21:07:58 +0000 (22:07 +0100)]
Merge pull request #612 from micmac1/glib-rtpen-bump

rtpengine: update to 8.5.3.2

3 years agortpengine: update to 8.5.3.2 612/head
Sebastian Kemper [Sun, 14 Feb 2021 09:29:49 +0000 (10:29 +0100)]
rtpengine: update to 8.5.3.2

02-pcap.patch no longer needed, it's included in upstream release.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoMerge pull request #610 from lipnitsk/master
micmac1 [Mon, 1 Feb 2021 19:14:21 +0000 (20:14 +0100)]
Merge pull request #610 from lipnitsk/master

dahdi-linux: patch to compile with linux >= 5.6

3 years agodahdi-linux: patch to compile with linux >= 5.6 610/head
Ilya Lipnitskiy [Mon, 1 Feb 2021 03:20:25 +0000 (19:20 -0800)]
dahdi-linux: patch to compile with linux >= 5.6

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
3 years agoMerge pull request #609 from BKPepe/asterisk-uriparser-disable
Jiri Slachta [Wed, 27 Jan 2021 13:49:34 +0000 (14:49 +0100)]
Merge pull request #609 from BKPepe/asterisk-uriparser-disable

asterisk: disable uriparser

3 years agoasterisk: disable uriparser 609/head
Josef Schlehofer [Wed, 27 Jan 2021 09:50:15 +0000 (10:50 +0100)]
asterisk: disable uriparser

Uriparser is a compliant URI parsing and handling library for RFC 3986.
For now, this is not included in OpenWrt feeds, but in Turris OS
uriparser is used as dependency for Updater-ng.

When Asterisk finds in build system there is uriparser or anything else mentioned in configure,
it tries to enable it by default. This applies to every package in
OpenWrt and because of that new packages which are added to OpenWrt tries to disable almost
everything by default. Because if someone adds library, some packages
are not compiled or tested.

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

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
3 years agoMerge pull request #607 from micmac1/rtpe-up
micmac1 [Mon, 25 Jan 2021 21:32:22 +0000 (22:32 +0100)]
Merge pull request #607 from micmac1/rtpe-up

rtpengine: bump to 8.5.3.1

3 years agoMerge pull request #608 from guidosarducci/master-fix-uid-error
micmac1 [Mon, 25 Jan 2021 21:28:59 +0000 (22:28 +0100)]
Merge pull request #608 from guidosarducci/master-fix-uid-error

siproxd: fix UID variable conflict in init

3 years agosiproxd: fix UID variable conflict in init 608/head
Tony Ambardar [Sun, 24 Jan 2021 08:00:01 +0000 (00:00 -0800)]
siproxd: fix UID variable conflict in init

Variable 'UID' is set readonly in some calling contexts, yielding errors
during e.g. ImageBuilder usage:

  Enabling rpcd
  ./etc/init.d/siproxd: line 14: UID: readonly variable
  Enabling siproxd
  Enabling sysctl

Rename UID and GID variables as SIPROXD_UID and SIPROXD_GID.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
3 years agortpengine: bump to 8.5.3.1 607/head
Sebastian Kemper [Sat, 23 Jan 2021 11:05:09 +0000 (12:05 +0100)]
rtpengine: bump to 8.5.3.1

In other news:

 - removes "mr" from version
 - refreshes patches/02-pcap.patch

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoMerge pull request #606 from micmac1/aster-sup
Jiri Slachta [Fri, 15 Jan 2021 20:45:59 +0000 (21:45 +0100)]
Merge pull request #606 from micmac1/aster-sup

asterisk: revert commit + add missing dep

3 years agoasterisk: add dependency to asterisk-chan-rtp 606/head
Sebastian Kemper [Fri, 15 Jan 2021 18:59:47 +0000 (19:59 +0100)]
asterisk: add dependency to asterisk-chan-rtp

This commit makes asterisk-chan-rtp depend on
asterisk-res-rtp-multicast. Without the res-rtp-multicast module
chan-rtp cannot be loaded:

OpenWrt*CLI> module load chan_rtp.so
Unable to load module chan_rtp.so
Command 'module load chan_rtp.so' failed.
[Jan  9 08:51:01] ERROR[16337]: loader.c:281 module_load_error: Error loading module 'chan_rtp.so': Error relocating /usr/lib/asterisk/modules/chan_rtp.so: ast_multicast_rtp_create_options: symbol not found

This issue was mentioned in the OpenWrt forum ([1]).

[1] https://forum.openwrt.org/t/asterisk-makes-a-problem-with-loading/84816

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoRevert "asterisk: link in libdl when linking to liblua"
Sebastian Kemper [Fri, 15 Jan 2021 18:51:02 +0000 (19:51 +0100)]
Revert "asterisk: link in libdl when linking to liblua"

This reverts commit 150b85ab350844f1481b9a9d49984b3e16cddd40.

OpenWrt upstream updated the lua package so that liblua now is linked
to libdl.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoMerge pull request #605 from neheb/r
micmac1 [Fri, 15 Jan 2021 18:20:14 +0000 (19:20 +0100)]
Merge pull request #605 from neheb/r

rtpengine: fix compilation with newer pcap

3 years agortpengine: fix compilation with newer pcap 605/head
Rosen Penev [Mon, 4 Jan 2021 02:55:59 +0000 (18:55 -0800)]
rtpengine: fix compilation with newer pcap

Backport upstream patch fixing this issue.

Remove uClibc-ng patch as it's no longer in the tree.

Refresh patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
3 years agoMerge pull request #604 from micmac1/ast-lua
Jiri Slachta [Sun, 3 Jan 2021 19:17:00 +0000 (20:17 +0100)]
Merge pull request #604 from micmac1/ast-lua

asterisk: link in libdl when linking to liblua

3 years agoasterisk: link in libdl when linking to liblua 604/head
Sebastian Kemper [Sun, 3 Jan 2021 17:20:02 +0000 (18:20 +0100)]
asterisk: link in libdl when linking to liblua

Currently building for archs target against glibc fails:

checking for mandatory modules:  CAP GSM ILBC LIBEDIT LIBXML2 LUA PJPROJECT SQLITE3 SRTP ZLIB... fail

configure: ***
configure: *** The LUA installation appears to be missing or broken.

Checking config.log reveals:

/home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/toolchain-arc_archs_gcc-8.4.0_glibc/bin/../lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/target-arc_archs_glibc/usr/lib/liblua.so: undefined reference to `dlopen'
/home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/toolchain-arc_archs_gcc-8.4.0_glibc/bin/../lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/target-arc_archs_glibc/usr/lib/liblua.so: undefined reference to `dlclose'
/home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/toolchain-arc_archs_gcc-8.4.0_glibc/bin/../lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/target-arc_archs_glibc/usr/lib/liblua.so: undefined reference to `dlerror'
/home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/toolchain-arc_archs_gcc-8.4.0_glibc/bin/../lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/target-arc_archs_glibc/usr/lib/liblua.so: undefined reference to `dlsym'

This commit adds "-ldl" to lua linker flags so compilation against glibc
works. This has no ill effect on musl where libdl is just an empty
library archive.

This is not something that should be sent upstream, as they maybe
support non-Linux platforms as well.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoMerge pull request #599 from micmac1/dahto-fix-patch
micmac1 [Fri, 1 Jan 2021 22:05:15 +0000 (23:05 +0100)]
Merge pull request #599 from micmac1/dahto-fix-patch

dahdi-tools: remove broken patch, disable unused features

3 years agoMerge pull request #603 from neheb/f
micmac1 [Fri, 1 Jan 2021 22:03:01 +0000 (23:03 +0100)]
Merge pull request #603 from neheb/f

freeswitch: fix compilation with musl 1.2.0

3 years agofreeswitch: fix compilation with CentOS 7 603/head
Rosen Penev [Fri, 9 Oct 2020 09:26:49 +0000 (02:26 -0700)]
freeswitch: fix compilation with CentOS 7

Fix patch 230 as it's a patch of a patch with fuzz and wrong offsets.
It seems something on CentOS 7 doesn't like fuzz.

The AC_TRY_RUN section was removed as upstream added a check whether or
not cross compilation is being done, making it no/op.

Refresh other patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
3 years agodahdi-tools: remove broken patch, disable unused 599/head
Sebastian Kemper [Thu, 31 Dec 2020 11:20:04 +0000 (12:20 +0100)]
dahdi-tools: remove broken patch, disable unused

The patch "010-fix-non-glibc-builds.patch" is broken. The test for
HAVE_EXECINFO_H must happen after including "<autoconfig.h>".

Instead of fixing the patch this commit removes it. In lieu,
CONFIGURES_ARGS are added to the Makefile. These disable the building of
some tools that are not packaged anyway. Like this, "xpp/xtalk/debug.c"
is avoided, hence the patch becomes irrelevant.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoMerge pull request #596 from micmac1/ast-AST03-04
Jiri Slachta [Sun, 27 Dec 2020 20:33:50 +0000 (21:33 +0100)]
Merge pull request #596 from micmac1/ast-AST03-04

asterisk: micro version bump to 18.1.1

3 years agoasterisk: add res_timing_timerfd to base package 596/head
Sebastian Kemper [Sun, 27 Dec 2020 15:35:26 +0000 (16:35 +0100)]
asterisk: add res_timing_timerfd to base package

This is a response to [1] and [2]. In short, since upstream commit
"channel.c: Resolve issue with receiving SIP INFO packets for DTMF" a
segmentation fault occurs during DTMF when no timing module is loaded.

This commit adds the timerfd timing module to the asterisk base package.
Other possibilities would have been res_timing_pthread and
res_timing_dahdi, but timerfd is the obvious choice because it's
efficient and OpenWrt offers the required kernel support (see [3] for
more details).

Note: even without any timing module the segmentation fault should not
occur according to upstream. Upstream is still working on that. But in
general it makes sense to have a timing module available (loaded) and
the module is tiny anyway.

[1] https://github.com/openwrt/telephony/issues/597
[2] https://issues.asterisk.org/jira/browse/ASTERISK-28800
[3] https://wiki.asterisk.org/wiki/display/AST/Timing+Interfaces

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoMerge pull request #580 from neheb/frees
micmac1 [Sat, 26 Dec 2020 11:24:35 +0000 (12:24 +0100)]
Merge pull request #580 from neheb/frees

freeswitch: fix compilation with musl 1.2.0

3 years agoMerge pull request #577 from micmac1/dah-310
micmac1 [Sat, 26 Dec 2020 10:48:17 +0000 (11:48 +0100)]
Merge pull request #577 from micmac1/dah-310

dahdi: bump and cleanups

3 years agoasterisk: micro version bump to 18.1.1
Sebastian Kemper [Wed, 23 Dec 2020 17:16:28 +0000 (18:16 +0100)]
asterisk: micro version bump to 18.1.1

This addresses CVE-2020-35652 as described in:

https://downloads.asterisk.org/pub/security/AST-2020-003.html
https://downloads.asterisk.org/pub/security/AST-2020-004.html

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoMerge pull request #593 from micmac1/kam-up542
Jiri Slachta [Wed, 23 Dec 2020 17:01:13 +0000 (18:01 +0100)]
Merge pull request #593 from micmac1/kam-up542

kamailio: minor bump + drop 5.x suffix

3 years agoMerge pull request #595 from dkgroot/master
Jiri Slachta [Wed, 23 Dec 2020 16:44:57 +0000 (17:44 +0100)]
Merge pull request #595 from dkgroot/master

asterisk-chan-sccp: update to v4.3.3 release

3 years agoasterisk-chan-sccp: Update to v4.3.3 release 595/head
Diederik de Groot [Sat, 19 Dec 2020 12:35:19 +0000 (13:35 +0100)]
asterisk-chan-sccp: Update to v4.3.3 release
update PKG_MIRROR_HASH

Signed-off-by: Diederik de Groot <dkgroot@talon.nl>
3 years agoMerge pull request #594 from micmac1/rtpe8527
micmac1 [Thu, 17 Dec 2020 18:53:52 +0000 (19:53 +0100)]
Merge pull request #594 from micmac1/rtpe8527

rtpengine: minor bump to mr8.5.2.7

3 years agortpengine: minor bump to mr8.5.2.7 594/head
Sebastian Kemper [Sun, 13 Dec 2020 15:34:43 +0000 (16:34 +0100)]
rtpengine: minor bump to mr8.5.2.7

05-support-kernels-greater-equal-5.9.9.patch removed as included in tar
ball.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agokamailio: minor bump + drop 5.x suffix 593/head
Sebastian Kemper [Sat, 12 Dec 2020 22:55:34 +0000 (23:55 +0100)]
kamailio: minor bump + drop 5.x suffix

Bumps kamailio to version 5.4.2 and removes the suffix, as there is only
one kamailio version at a time anyway.

Also:

 - Replaces a few $(PKG_NAME) uses with simply "kamailio"
 - Drops the use of variable PKG_VARIANT (was not set anyway)
 - Drops 160-openssl-deprecated.patch (upstream first accepted the
   patch, then dropped it again after crashes were reported, see [1])

[1] https://github.com/kamailio/kamailio/issues/2466

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agoMerge pull request #592 from micmac1/kam-build-fixes
Jiri Slachta [Mon, 7 Dec 2020 08:34:48 +0000 (09:34 +0100)]
Merge pull request #592 from micmac1/kam-build-fixes

kamailio-5.x: build fixes

3 years agokamailio-5.x: fix build for new MIPS 4kec target 592/head
Sebastian Kemper [Sat, 5 Dec 2020 11:42:20 +0000 (12:42 +0100)]
kamailio-5.x: fix build for new MIPS 4kec target

Recently support for target rtl838x was added to OpenWrt. It uses 4kec,
which is MIPS32. The Kamailio build system doesn't detect this and
treats it as MIPS I, adding -march=r3000 to the flags, which clashes
with -mips32r2.

mips-openwrt-linux-musl-gcc -mfp32 -march=r3000 -ftree-vectorize -fno-strict-overflow -pthread -DKSR_PTHREAD_MUTEX_SHARED -Wall -Os -pipe -mno-branch-likely -mips32r2 -mtune=4kec -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -I/builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/lib/libiconv-stub/include -I/builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/lib/libintl-stub/include -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/kamailio5-5.4.0=kamailio5-5.4.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DVERSION_NODATE=1 -I/builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_4kec_gcc-8.4.0_musl/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_4kec_gcc-8.4.0_musl/include/fortify -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_4kec_gcc-8.4.0_musl/include -I/builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/lib/libiconv-stub/include -I/builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/lib/libintl-stub/include   -DNAME='"kamailio"' -DVERSION='"5.4.0"' -DARCH='"mips"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"mips-openwrt-linux-musl-gcc 8.4.0"' -D__CPU_mips -D__OS_linux -DVERSIONVAL=5004000 -DCFG_DIR='"/etc/kamailio"' -DSHARE_DIR='"/usr/share/kamailio/"' -DRUN_DIR='"/var/run/kamailio/"' -DPKG_MALLOC -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DMEM_JOIN_FREE -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DUSE_SCTP -DMIPS_HAS_LLSC -DNOSMP -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_IP_MREQN -DUSE_RAW_SOCKS -DUSE_PTHREAD_MUTEX -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT  -DMODS_DIR='"/usr/lib/kamailio/modules"' -c main.c -o main.o -MMD -MP
cc1: error: '-mips32r2' conflicts with the other architecture options, which specify a mips1 processor
Assembler messages:
Error: -mips32r2 conflicts with the other architecture options, which imply -mips1
Makefile.rules:100: recipe for target 'main.o' failed
make[5]: *** [main.o] Error 1

This commit fixes this by forcing ARCH to mips2 for 4kec CPUs as well
(Kamailio only differentiates between mips, mips2 and mips64).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
3 years agokamailio-5.x: fix erlang build
Sebastian Kemper [Sat, 5 Dec 2020 11:37:01 +0000 (12:37 +0100)]
kamailio-5.x: fix erlang build

The Erlang module build checks for libs and includes using the erl tool.
This is a hostpkg tool providing paths into the staging/hostpkg.
Of course this fails:

arc-openwrt-linux-uclibc-gcc -shared  -Wl,-O2 -Wl,-E  -L/builder/shared-workdir/build/sdk/staging_dir/toolchain-arc_arc700_gcc-8.4.0_uClibc/usr/lib -L/builder/shared-workdir/build/sdk/staging_dir/toolchain-arc_arc700_gcc-8.4.0_uClibc/lib -L/builder/shared-workdir/build/sdk/staging_dir/target-arc_arc700_uClibc/usr/lib/libiconv-stub/lib -Wl,-rpath-link=/builder/shared-workdir/build/sdk/staging_dir/target-arc_arc700_uClibc/usr/lib/libiconv-stub/lib -L/builder/shared-workdir/build/sdk/staging_dir/target-arc_arc700_uClibc/usr/lib/libintl-stub/lib -Wl,-rpath-link=/builder/shared-workdir/build/sdk/staging_dir/target-arc_arc700_uClibc/usr/lib/libintl-stub/lib -znow -zrelro -pthread -rdynamic "-ldl" -Wl,-Bsymbolic-functions handle_emsg.o pv_xbuff.o cnode.o erl_api.o epmd.o erl_helpers.o pv_ref.o pv_pid.o pv_atom.o worker.o handle_rpc.o pv_list.o pv_tuple.o erlang_mod.o  -L/builder/shared-workdir/build/sdk/staging_dir/hostpkg/lib/erlang/lib/erl_interface-4.0/lib -lei -lpthread   -o erlang.so
/builder/shared-workdir/build/sdk/staging_dir/toolchain-arc_arc700_gcc-8.4.0_uClibc/bin/../lib/gcc/arc-openwrt-linux-uclibc/8.4.0/../../../../arc-openwrt-linux-uclibc/bin/ld: /builder/shared-workdir/build/sdk/staging_dir/hostpkg/lib/erlang/lib/erl_interface-4.0/lib/libei.a: error adding symbols: file format not recognized
collect2: error: ld returned 1 exit status
../../Makefile.rules:191: recipe for target 'erlang.so' failed
make[6]: *** [erlang.so] Error 1

This patch prevents this by relying on the standard paths, where Erlang
resides in OpenWrt.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>