feed/telephony.git
4 years agofreeswitch: fix shadow dep
Sebastian Kemper [Sat, 15 Aug 2020 10:29:40 +0000 (12:29 +0200)]
freeswitch: fix shadow dep

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #559 from micmac1/fs1104
micmac1 [Mon, 10 Aug 2020 20:58:07 +0000 (22:58 +0200)]
Merge pull request #559 from micmac1/fs1104

freeswitch: bump to 1.10.4

4 years agoMerge pull request #560 from neheb/rtpe
micmac1 [Sat, 8 Aug 2020 14:22:58 +0000 (16:22 +0200)]
Merge pull request #560 from neheb/rtpe

rtpengine: fix compilation without deprecated OpenSSL APIs

4 years agofreeswitch: bump to 1.10.4 559/head
Sebastian Kemper [Fri, 7 Aug 2020 19:27:36 +0000 (21:27 +0200)]
freeswitch:  bump to 1.10.4

Upstream split out spandsp as well. But their spandsp "fork" may not be
a drop-in replacement for the regular spandsp. For now we keep it built
into freeswitch via patch.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agortpengine: fix compilation without deprecated OpenSSL APIs 560/head
Rosen Penev [Wed, 5 Aug 2020 21:19:12 +0000 (14:19 -0700)]
rtpengine: fix compilation without deprecated OpenSSL APIs

Signed-off-by: Rosen Penev <rosenp@gmail.com>
4 years agoMerge pull request #553 from micmac1/dah-to-gcc10
micmac1 [Fri, 7 Aug 2020 19:06:53 +0000 (21:06 +0200)]
Merge pull request #553 from micmac1/dah-to-gcc10

dahdi-tools: add -fcommon workaround for gcc10

4 years agoMerge pull request #554 from micmac1/rtpengine-lts
micmac1 [Fri, 7 Aug 2020 19:06:17 +0000 (21:06 +0200)]
Merge pull request #554 from micmac1/rtpengine-lts

rtpengine: update to LTS version

4 years agosofia-sip: new package
Sebastian Kemper [Fri, 7 Aug 2020 18:57:45 +0000 (20:57 +0200)]
sofia-sip: new package

FreeSWITCH 1.10.4 split out the sofia-sip library. So here's it's added
as a separate package.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #557 from neheb/bare
Jiri Slachta [Thu, 6 Aug 2020 14:21:24 +0000 (16:21 +0200)]
Merge pull request #557 from neheb/bare

baresip: fix compilation without deprecated OpenSSL APIs

4 years agoMerge pull request #556 from neheb/re
Jiri Slachta [Thu, 6 Aug 2020 14:19:15 +0000 (16:19 +0200)]
Merge pull request #556 from neheb/re

re: fix compilation without deprecated OpenSSL APIs

4 years agoMerge pull request #549 from micmac1/kam54
Jiri Slachta [Thu, 6 Aug 2020 14:18:13 +0000 (16:18 +0200)]
Merge pull request #549 from micmac1/kam54

kamailio-5.x: bump to 5.4.0

4 years agobaresip: fix compilation without deprecated OpenSSL APIs 557/head
Rosen Penev [Wed, 5 Aug 2020 21:24:33 +0000 (14:24 -0700)]
baresip: fix compilation without deprecated OpenSSL APIs

Signed-off-by: Rosen Penev <rosenp@gmail.com>
4 years agore: fix compilation without deprecated OpenSSL APIs 556/head
Rosen Penev [Wed, 5 Aug 2020 21:25:36 +0000 (14:25 -0700)]
re: fix compilation without deprecated OpenSSL APIs

Signed-off-by: Rosen Penev <rosenp@gmail.com>
4 years agortpengine: update to LTS version 554/head
Sebastian Kemper [Sun, 2 Aug 2020 11:40:29 +0000 (13:40 +0200)]
rtpengine: update to LTS version

Upstreamed patch removed. Build workaround removed as fixed upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #552 from micmac1/fs-jpeg
micmac1 [Sun, 2 Aug 2020 10:43:14 +0000 (12:43 +0200)]
Merge pull request #552 from micmac1/fs-jpeg

freeswitch: update libjpeg deps

4 years agoMerge pull request #551 from neheb/patch-1
micmac1 [Sun, 2 Aug 2020 10:42:45 +0000 (12:42 +0200)]
Merge pull request #551 from neheb/patch-1

rtpengine: add nls.mk

4 years agodahdi-tools: add -fcommon workaround for gcc10 553/head
Sebastian Kemper [Sun, 2 Aug 2020 10:28:09 +0000 (12:28 +0200)]
dahdi-tools: add -fcommon workaround for gcc10

This works around the build failure with gcc-10 until there is a patch
for dahdi-tools that is reviewed and acknowledged by upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agofreeswitch: update libjpeg deps 552/head
Sebastian Kemper [Sun, 2 Aug 2020 09:55:34 +0000 (11:55 +0200)]
freeswitch: update libjpeg deps

libjpeg was replaced by libjpeg-turbo in packages repo.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agortpengine: add nls.mk 551/head
Rosen Penev [Sat, 1 Aug 2020 19:41:43 +0000 (12:41 -0700)]
rtpengine: add nls.mk

Needed for the glib2 update in the packages feed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
4 years agokamailio-5.x: bump to 5.4.0 549/head
Sebastian Kemper [Wed, 29 Jul 2020 18:13:01 +0000 (20:13 +0200)]
kamailio-5.x: bump to 5.4.0

- package two new modules: dlgs and pv_headers
- upstream actually provides three more new modules, but two are missing
  dependencies in OpenWrt and one is related to systemd
- use INSTALL_DATA instead of INSTALL_CONF for kamailio configuration
  files (not talking about /etc/config/kamailio) as they're default
  configuration
- refresh 050-fix-kamailio-utils.patch
- drop upstreamed 150-python3-cross-compile.patch
- libsrutils is no longer packaged as upstream moved it into the core

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #548 from micmac1/fs-gcc10
micmac1 [Tue, 28 Jul 2020 16:13:24 +0000 (18:13 +0200)]
Merge pull request #548 from micmac1/fs-gcc10

freeswitch: mod-rayo not compiling with gcc-10

4 years agoMerge pull request #547 from neheb/six
micmac1 [Tue, 28 Jul 2020 16:13:00 +0000 (18:13 +0200)]
Merge pull request #547 from neheb/six

sixproxd: fix compilation with GCC 10

4 years agoMerge pull request #546 from neheb/srt
Jiri Slachta [Tue, 28 Jul 2020 07:00:48 +0000 (09:00 +0200)]
Merge pull request #546 from neheb/srt

libsrtp2: fix compilation with GCC 10

4 years agofreeswitch: mod-rayo not compiling with gcc-10 548/head
Sebastian Kemper [Mon, 20 Jul 2020 18:35:05 +0000 (20:35 +0200)]
freeswitch: mod-rayo not compiling with gcc-10

Raised issue upstream ([1]). For now let's add this workaround.

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

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agosixproxd: fix compilation with GCC 10 547/head
Rosen Penev [Sun, 19 Jul 2020 07:03:11 +0000 (00:03 -0700)]
sixproxd: fix compilation with GCC 10

Signed-off-by: Rosen Penev <rosenp@gmail.com>
4 years agolibsrtp2: fix compilation with GCC 10 546/head
Rosen Penev [Sun, 19 Jul 2020 07:03:58 +0000 (00:03 -0700)]
libsrtp2: fix compilation with GCC 10

Signed-off-by: Rosen Penev <rosenp@gmail.com>
4 years agoMerge pull request #544 from micmac1/tel-deps
micmac1 [Sat, 18 Jul 2020 14:06:37 +0000 (16:06 +0200)]
Merge pull request #544 from micmac1/tel-deps

sipgrep/freeswitch: small amendments

4 years agofreeswitch: remove package symbol from FT mods 544/head
Sebastian Kemper [Wed, 15 Jul 2020 18:35:12 +0000 (20:35 +0200)]
freeswitch: remove package symbol from FT mods

No need to have this symbol around here. libfreetdm is part of the same
package (freeswitch) anyway.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agosipgrep: make IPv6 support depend on CONFIG_IPV6
Sebastian Kemper [Wed, 15 Jul 2020 18:35:00 +0000 (20:35 +0200)]
sipgrep: make IPv6 support depend on CONFIG_IPV6

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #540 from micmac1/dongle-iconv
Jiri Slachta [Tue, 16 Jun 2020 14:35:16 +0000 (16:35 +0200)]
Merge pull request #540 from micmac1/dongle-iconv

asterisk-chan-dongle: fix iconv lib detection

4 years agoasterisk-chan-dongle: fix iconv lib detection 540/head
Sebastian Kemper [Thu, 11 Jun 2020 17:27:48 +0000 (19:27 +0200)]
asterisk-chan-dongle: fix iconv lib detection

A small but important oversight crept into the last asterisk-chan-dongle
update. The iconv library detection was changed to look for iconv()
instead of libiconv().

Reminder: the autoconf macros for finding libraries do _not_ include any
extra headers when testing the compile. So the redefinitions done in
iconv.h provided by any libiconv (stub or regular) aren't visible during
the test the macros execute.

This means that when testing for iconv() the only iconv that can be
detected is the one from libc. Moreover, if the libc doesn't provide
iconv, the check will fail. Below example is with uclibc:

checking for iconv in -liconv... no
configure: error: iconv library missing
Makefile:87: recipe for target '/builder/shared-workdir/build/sdk/build_dir/target-arc_archs_uClibc/asterisk-chan-dongle-asterisk16/asterisk-chan-dongle-2020-05-28-328b2b7d/.configured_a17fb5ef857664f03cd0ce37cc5ea591' failed

So, this changes the patch to look for libiconv(), again.

Also, instead of using AC_CHECK_LIB this uses AC_SEARCH_LIBS, like
upstream does. There apparently was a problem with that in the past, but
now it works fine.

checking for rm... rm
checking for library containing libiconv... -liconv
checking for sqlite3_open in -lsqlite3... yes

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #538 from micmac1/fs-check
micmac1 [Wed, 10 Jun 2020 18:21:45 +0000 (20:21 +0200)]
Merge pull request #538 from micmac1/fs-check

freeswitch: prevent libcheck use

4 years agoMerge pull request #537 from micmac1/dongle-up
Jiri Slachta [Tue, 9 Jun 2020 18:07:55 +0000 (20:07 +0200)]
Merge pull request #537 from micmac1/dongle-up

asterisk-chan-dongle: bump + cleanup

4 years agofreeswitch: prevent libcheck use 538/head
Sebastian Kemper [Tue, 9 Jun 2020 16:56:28 +0000 (18:56 +0200)]
freeswitch: prevent libcheck use

Currently we disable some sofia tests to prevent build failure. An issue
was actually raised upstream ([1]) where this was discussed.

This cleared up some doubts. For instance it was established that
libcheck is used as a test framework, if the lib is detected. In OpenWrt
libcheck is available, so it may be in staging during the freeswitch
build.

Upstream also mentioned that libcheck is not always compatible with
freeswitch, which depends on the libcheck version.

This commit prevents libcheck detection. This is nicer than explicitly
disabling tests that fail.

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

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoasterisk-chan-dongle: bump + cleanup 537/head
Sebastian Kemper [Tue, 9 Jun 2020 16:40:49 +0000 (18:40 +0200)]
asterisk-chan-dongle: bump + cleanup

Bump dongle plugin to latest git revision. PKG_SOURCE_SUBDIR and
PKG_BUILD_DIR are removed because defaults are fine. PKG_VERSION is
replaced by PKG_SOURCE_DATE, which is in line with OpenWrt
recommendation.

Soft deps are removed as per request in issue #536.

iconv handling is updated. Upstream now lets us specify the include
directory, so that makes the patch simpler. The iconv lib detection is
also updated so that it never picks the libc iconv. This way we get the
same iconv handling independent of the libc in use. Now it'll be always
iconv-stub or iconv-full.

libsqlite3 dep is made explicit. There was always a dep on it, but it
was implicit via asterisk. When the dep is made explicit, the dongle
package picks up on the sqlite3 ABI_VERSION, which is nice.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #534 from micmac1/fs_rename
micmac1 [Sat, 30 May 2020 05:09:33 +0000 (07:09 +0200)]
Merge pull request #534 from micmac1/fs_rename

freeswitch-stable: rename to freeswitch

4 years agoMerge pull request #531 from micmac1/ast16100
Jiri Slachta [Sun, 24 May 2020 19:04:29 +0000 (21:04 +0200)]
Merge pull request #531 from micmac1/ast16100

asterisk-16.x: bump to 16.10.0 + init/config changes

4 years agofreeswitch-stable-mod-bcg729: rename 534/head
Sebastian Kemper [Sat, 23 May 2020 18:02:18 +0000 (20:02 +0200)]
freeswitch-stable-mod-bcg729: rename

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agofreeswitch-stable-mod-bcg729: move folder
Sebastian Kemper [Sat, 23 May 2020 18:00:18 +0000 (20:00 +0200)]
freeswitch-stable-mod-bcg729: move folder

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agofreeswitch-stable: rename to just freeswitch
Sebastian Kemper [Sat, 23 May 2020 17:53:52 +0000 (19:53 +0200)]
freeswitch-stable: rename to just freeswitch

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agofreeswitch-stable: move folder
Sebastian Kemper [Sat, 23 May 2020 17:46:12 +0000 (19:46 +0200)]
freeswitch-stable: move folder

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #533 from micmac1/rtpe-parallel
micmac1 [Fri, 22 May 2020 08:50:48 +0000 (10:50 +0200)]
Merge pull request #533 from micmac1/rtpe-parallel

rtpengine: build fix and patch improvement

4 years agortpengine: work around sporadic build failures 533/head
Sebastian Kemper [Thu, 21 May 2020 15:40:43 +0000 (17:40 +0200)]
rtpengine: work around sporadic build failures

The rtpengine build system uses the Makefiles to generate source files
on the fly. This usually works fine, but when building in parallel,
intermittently the generated files contain garbage (like, lines are
repeated, causing redefinition errors).

As a workaround this commit disables parallel builds.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agortpengine: clean up 01-cflags.patch
Sebastian Kemper [Thu, 21 May 2020 15:34:48 +0000 (17:34 +0200)]
rtpengine: clean up 01-cflags.patch

This commit follows upstream, how they include the Debian build system
flags, appending them to their own. To that end OpenWrt's flags are now
saved at the beginning of the Makefiles, and appended at the bottom of
lib/lib.Makefile.

This also sorts out the iptables module compile, to use OpenWrt's
LDFLAGS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #532 from micmac1/rtpecfl
micmac1 [Mon, 18 May 2020 18:05:23 +0000 (20:05 +0200)]
Merge pull request #532 from micmac1/rtpecfl

rtpengine: prevent picking up host system flags

4 years agortpengine: prevent use of host dpkg utilities 532/head
Sebastian Kemper [Sun, 17 May 2020 10:55:16 +0000 (12:55 +0200)]
rtpengine: prevent use of host dpkg utilities

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agortpengine: prevent picking up host libsystemd
Sebastian Kemper [Sun, 17 May 2020 10:52:29 +0000 (12:52 +0200)]
rtpengine: prevent picking up host libsystemd

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoasterisk-16.x: sort out lua detection 531/head
Sebastian Kemper [Sat, 16 May 2020 18:55:27 +0000 (20:55 +0200)]
asterisk-16.x: sort out lua detection

We have both liblua and liblua5.3 in $(STAGING_DIR)/usr. But the headers
for liblua5.3 are in (STAGING_DIR)/usr/include/lua5.3. The way things
are now, Asterisk uses the headers from liblua and links against
liblua5.3.

The easiest way out of this is to turn off the lua detection that is
based on version numbers. The next detection looks for a version-less
lua, which works fine.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoasterisk-16.x: update init and configuration
Sebastian Kemper [Thu, 14 May 2020 19:56:50 +0000 (21:56 +0200)]
asterisk-16.x: update init and configuration

This commit changes handling of configuration and init a bit:

1. Asterisk configuration files are installed with $(INSTALL_DATA). This
   way there is no need to chown /etc/asterisk to user asterisk. The
   package provides the standard asterisk configuration (no secrets) so
   it's OK to install it readable for all. If users put something
   sensitive in there they can update permissions how they like.
2. The init script no longer creates directories that the users can
   configure in /etc/config/asterisk, which could be all kinds of
   strange directories. Instead only the default directories are
   created, and only the ones that reside on volatile memory. The other
   directories are now created by the package itself.
3. This commit removes the ability to choose a user/group via
   /etc/config/asterisk. This makes the init script simpler. If anybody
   wants to play around with the user/group, then it's up to them to fix
   the permissions.
4. "local" is removed because it's not POSIX.
5. From issue #520 we know that adding the user to the dialout group
   does not help with the device permissions for chan_lantiq. This
   removes it again.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoasterisk-16.x: bump to 16.10.0
Sebastian Kemper [Thu, 14 May 2020 19:46:29 +0000 (21:46 +0200)]
asterisk-16.x: bump to 16.10.0

Patches refreshed, no longer needed patches are dropped.

This adds directory "/usr/share/asterisk/firmware/iax" to silence a
run-time warning.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agopjproject: add two patches from Asterisk 16.10.0
Sebastian Kemper [Thu, 14 May 2020 19:40:03 +0000 (21:40 +0200)]
pjproject: add two patches from Asterisk 16.10.0

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #530 from micmac1/fs1103-no-sofia-tests
micmac1 [Wed, 13 May 2020 16:38:24 +0000 (18:38 +0200)]
Merge pull request #530 from micmac1/fs1103-no-sofia-tests

freeswitch-stable: disable sofia-sip tests

4 years agofreeswitch-stable: disable sofia-sip tests 530/head
Sebastian Kemper [Wed, 13 May 2020 16:22:29 +0000 (18:22 +0200)]
freeswitch-stable: disable sofia-sip tests

Upstream commit 2dced93 "[sofia-sip] Build internal tests" enabled the
building of tests. One of them causes build failures on the build bots:

Making all in s2check
make[11]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/freeswitch-1.10.3.-release/libs/sofia-sip/s2check'
         COMPILE s2tcase.o
s2tcase.c: In function 's2_tcase_add_test':
s2tcase.c:60:27: error: passing argument 2 of '_tcase_add_test' from incompatible pointer type [-Werror=incompatible-pointer-types]
       _tcase_add_test(tc, tf, name, signo, 0, start, end);
                           ^~
In file included from s2tcase.c:35:
/builder/shared-workdir/build/sdk/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/include/check.h:331:69: note: expected 'const TTest *' {aka 'const struct TTest *'} but argument is of type 'TFun' {aka 'void (*)(int)'}
 CK_DLL_EXP void CK_EXPORT _tcase_add_test(TCase * tc, const TTest * ttest,
                                                       ~~~~~~~~~~~~~~^~~~~
s2tcase.c:60:31: error: passing argument 3 of '_tcase_add_test' makes integer from pointer without a cast [-Werror=int-conversion]
       _tcase_add_test(tc, tf, name, signo, 0, start, end);
                               ^~~~
In file included from s2tcase.c:35:
/builder/shared-workdir/build/sdk/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/include/check.h:332:47: note: expected 'int' but argument is of type 'const char *'
                                           int _signal, int allowed_exit_value,
                                           ~~~~^~~~~~~
s2tcase.c:60:7: error: too many arguments to function '_tcase_add_test'
       _tcase_add_test(tc, tf, name, signo, 0, start, end);
       ^~~~~~~~~~~~~~~
In file included from s2tcase.c:35:
/builder/shared-workdir/build/sdk/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/include/check.h:331:27: note: declared here
 CK_DLL_EXP void CK_EXPORT _tcase_add_test(TCase * tc, const TTest * ttest,
                           ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

I can't reproduce this at home. Not with a master checkout, not with a
current SDK. But the tests are not needed for the OpenWrt packages
anyway, so this commit disables them again.

No rev bump is done because this has no effect on the packages.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #529 from micmac1/fs1103
micmac1 [Tue, 12 May 2020 18:26:47 +0000 (20:26 +0200)]
Merge pull request #529 from micmac1/fs1103

freeswitch-stable: bump to 1.10.3 (also up libks + signalwire-c)

4 years agosignalwire-client-c: bump to 1.3.0 529/head
Sebastian Kemper [Tue, 12 May 2020 17:32:15 +0000 (19:32 +0200)]
signalwire-client-c: bump to 1.3.0

Use regular releases from now on.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agolibks: bump to 1.6.0
Sebastian Kemper [Tue, 12 May 2020 17:30:22 +0000 (19:30 +0200)]
libks: bump to 1.6.0

Use regular releases from now on.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agofreeswitch-stable: bump to 1.10.3
Sebastian Kemper [Tue, 12 May 2020 16:45:51 +0000 (18:45 +0200)]
freeswitch-stable: bump to 1.10.3

Patches refreshed. Two patches can be dropped.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #528 from micmac1/fs-init2
micmac1 [Tue, 12 May 2020 16:40:38 +0000 (18:40 +0200)]
Merge pull request #528 from micmac1/fs-init2

freeswitch-stable: improve init script

4 years agoMerge pull request #526 from micmac1/rtpengine
micmac1 [Wed, 6 May 2020 17:09:24 +0000 (19:09 +0200)]
Merge pull request #526 from micmac1/rtpengine

rtpengine: new package

4 years agortpengine: new package 526/head
Sebastian Kemper [Mon, 4 May 2020 18:00:59 +0000 (20:00 +0200)]
rtpengine: new package

rtpengine is a proxy for RTP traffic. It has lots of capabilities,
including transcoding, in-kernel forwarding and SRTP transport, to name
a few.

Packaging:

  1. regular rtpengine
  2. rtpengine variant without transcoding support (smaller dependency
     tree)
  3. recording daemon
  4. kernel module
  5. iptables module

Simple init scripts (procd) are included, plus a hotplug script for
rtpengine.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agofreeswitch-stable: improve init script 528/head
Sebastian Kemper [Sun, 3 May 2020 10:15:01 +0000 (12:15 +0200)]
freeswitch-stable: improve init script

This is in response to a posting on oss-security ([1]).

This commit removes the ability to choose a user/group via
/etc/config/freeswitch. This makes the init script simpler. If anybody
wants to play around with the user/group, then it's up to them to fix
the permissions.

The complex awk script is deleted and replaced by two for-loops,
basically. The first loop creates "/var/lib/freeswitch" and
"/var/run/freeswitch" and chowns them to freeswitch, in case they don't
exist already.

The second loop checks if the other directories (either the default ones
or the ones specified by the user) exist. If any is missing it uses "su"
to create that directory as user "freeswitch".

The reasoning behind this is that a) this works for the defaults
(example: "/tmp/freeswitch/db") and b) the user can specify anything
he/she wants in "/etc/config/freeswitch", which could be all kinds of
strange directories. "mkdir" may now fail, as we're not calling it as
root anymore, but we err on the side of caution, as the saying goes.

Calls to "chmod" are eliminated. Instead the desired mode is provided to
"mkdir". The latter applies the mode only to the final directory.
Possible parent directories are created with the regular umask alone.

A dependency on the "su" utility is added to the Makefile.

"local" also gets removed because it is undefined in POSIX.

[1] https://www.openwall.com/lists/oss-security/2020/04/30/1

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #524 from micmac1/master-dahlin
Jiri Slachta [Wed, 29 Apr 2020 06:59:57 +0000 (08:59 +0200)]
Merge pull request #524 from micmac1/master-dahlin

dahdi-linux: add patch to fix 32bit targets

4 years agoMerge pull request #525 from micmac1/master-kam-funroll
Jiri Slachta [Mon, 27 Apr 2020 16:43:30 +0000 (18:43 +0200)]
Merge pull request #525 from micmac1/master-kam-funroll

kamailio-5.x: remove "-funroll-loops"

4 years agokamailio-5.x: remove "-funroll-loops" 525/head
Sebastian Kemper [Fri, 24 Apr 2020 19:03:46 +0000 (21:03 +0200)]
kamailio-5.x: remove "-funroll-loops"

Since recent commit 60ea8ff OpenWrt flags are added to CC_EXTRA_OPTS
instead of CFLAGS, allowing upstream flags to pass into our builds.
Upstream passes "-funroll-loops", which increases package sizes
significantly.

Example mips:

kamailio5_5.3.3-1_mips_24kc.ipk: 1019K
kamailio5_5.3.3-2_mips_24kc.ipk: 1,4M

This commit removes "-funroll-loops", reducing the size to previous
level.

kamailio5_5.3.3-2_mips_24kc.ipk: 1021K

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agodahdi-linux: add patch to fix 32bit targets 524/head
Sebastian Kemper [Fri, 24 Apr 2020 18:52:11 +0000 (20:52 +0200)]
dahdi-linux: add patch to fix 32bit targets

On some 32 bit targets dahdi-linux currently fails to build.

Examples:

ERROR: "__divdi3" [/builder/shared-workdir/build/sdk/build_dir/target-powerpc_8540_musl/linux-mpc85xx_generic/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: "__udivdi3" [/builder/shared-workdir/build/sdk/build_dir/target-powerpc_8540_musl/linux-mpc85xx_generic/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: "__moddi3" [/builder/shared-workdir/build/sdk/build_dir/target-powerpc_8540_musl/linux-mpc85xx_generic/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp.ko] undefined!
ERROR: "__divdi3" [/builder/shared-workdir/build/sdk/build_dir/target-powerpc_8540_musl/linux-mpc85xx_generic/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp.ko] undefined!

or

ERROR: "__aeabi_ldivmod" [/store/buildbot/slave/shared-workdir/build/sdk/build_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/linux-bcm27xx_bcm2708/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: "__aeabi_uldivmod" [/store/buildbot/slave/shared-workdir/build/sdk/build_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/linux-bcm27xx_bcm2708/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: "__aeabi_ldivmod" [/store/buildbot/slave/shared-workdir/build/sdk/build_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/linux-bcm27xx_bcm2708/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp.ko] undefined!

Problem was reported to upstream already by third party ([1]). Patch
attached to bug report is not sufficient.

This commit adds a patch from PLD Linux ([2]) to address the build
failures.

[1] https://issues.asterisk.org/jira/browse/DAHLIN-371
[2] https://github.com/pld-linux/dahdi-linux/blob/master/math64.patch

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #519 from micmac1/master-kam-build-and-py
Jiri Slachta [Thu, 23 Apr 2020 06:28:23 +0000 (08:28 +0200)]
Merge pull request #519 from micmac1/master-kam-build-and-py

kamailio-5.x: update build setup and add Python 3 module

4 years agokamailio-5.x: add app_python3 519/head
Sebastian Kemper [Fri, 10 Apr 2020 12:10:24 +0000 (14:10 +0200)]
kamailio-5.x: add app_python3

Adds the Python 3 module. Patch is required because otherwise the
module's Makefile tries to get the includes from host python.

The patch also adds "--embed" to the python-config call that discovers
LDFLAGS as otherwise the python lib is not linked into the module.

Patch has been accepted upstream already.

Adding PYTHON3 to MAKE_VARS tells the Makefile which python to use.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agokamailio-5.x: update build setup
Sebastian Kemper [Fri, 10 Apr 2020 11:52:17 +0000 (13:52 +0200)]
kamailio-5.x: update build setup

This switches the Makefile away from calling "make" manually to using
OpenWrt default build defines. This way PKG_BUILD_PARALLEL and
PKG_INSTALL can be used.

To achieve this the flags are added to MAKE_FLAGS. The flags are also
tidied up as per example from Alpine Linux. Like this the build is
cleaner, for instance this gets rid of the wrong share directory
("//share/kamailio" instead of "/usr/share/kamailio") and things like
multi-slashes in directory names (ex. "///usr/lib/kamailio/modules").

lib_target was removed after verifying that the correct RPATH
"/usr/lib/kamailio" is still in place without it.

CFLAGS is replaced by CC_EXTRA_OPTS (same is already done for LDFLAGS).
This way upstream source can add flags like "-Wall" to OpenWrt builds.

Extra flags LOCALBASE, SYSBASE and CROSS get removed as they aren't
needed anymore with the "Alpine Linux" flags.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #523 from micmac1/master-ci2
Jiri Slachta [Wed, 22 Apr 2020 16:20:51 +0000 (18:20 +0200)]
Merge pull request #523 from micmac1/master-ci2

circleci: fetch packages repo

4 years agocircleci: fetch packages repo 523/head
Sebastian Kemper [Wed, 22 Apr 2020 16:01:29 +0000 (18:01 +0200)]
circleci: fetch packages repo

Currently CI doesn't work, because the dependencies from the packages
repo are not available.

<snip>
WARNING: No feed for package 'libopenldap' found
WARNING: No feed for package 'libidn2' found
WARNING: No feed for package 'libssh2' found
<snip>

This commit adds the packages repo.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #522 from micmac1/master-ci
Jiri Slachta [Wed, 22 Apr 2020 11:40:15 +0000 (13:40 +0200)]
Merge pull request #522 from micmac1/master-ci

circleci: allow dots in subject line

4 years agocircleci: allow dots in subject line 522/head
Sebastian Kemper [Wed, 22 Apr 2020 11:06:20 +0000 (13:06 +0200)]
circleci: allow dots in subject line

We like to use "kamailio-5.x:" and "asterisk-16.x:" in commit message
subject lines. So relax the regex for it to allow the dots.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #507 from BKPepe/circle_ci
Jiri Slachta [Mon, 13 Apr 2020 11:05:53 +0000 (13:05 +0200)]
Merge pull request #507 from BKPepe/circle_ci

build: Add CircleCI

4 years agoMerge pull request #518 from jslachta/kamailio-5.3.3
Jiri Slachta [Thu, 9 Apr 2020 16:06:47 +0000 (18:06 +0200)]
Merge pull request #518 from jslachta/kamailio-5.3.3

kamailio-5.x: update to 5.3.3

4 years agokamailio-5.x: update to 5.3.3 518/head
Jiri Slachta [Thu, 9 Apr 2020 16:00:49 +0000 (18:00 +0200)]
kamailio-5.x: update to 5.3.3

This commit updates kamailio to version 5.3.3.

Within this commit the python support is removed, since
the python 2.x support is removed and app-python3 is not
ready yet.

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
4 years agoMerge pull request #514 from micmac1/fs-rem-python
micmac1 [Sat, 4 Apr 2020 09:35:00 +0000 (11:35 +0200)]
Merge pull request #514 from micmac1/fs-rem-python

freeswitch-stable: remove python support

4 years agofreeswitch-stable: remove python support 514/head
Sebastian Kemper [Sat, 4 Apr 2020 09:27:53 +0000 (11:27 +0200)]
freeswitch-stable: remove python support

Following the removal of python2 from packages this commit removes
python support from this package. FreeSWITCH at present does not support
python3.

120-fix-copts.patch is refreshed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #511 from hnyman/frsw-opencv
micmac1 [Sat, 21 Mar 2020 20:08:17 +0000 (21:08 +0100)]
Merge pull request #511 from hnyman/frsw-opencv

Thanks!

4 years agofreeswitch-stable: remove opencv module 511/head
Hannu Nyman [Sat, 21 Mar 2020 19:40:54 +0000 (21:40 +0200)]
freeswitch-stable: remove opencv module

Remove the opencv module from freeswitch-stable. The module
has been marked BROKEN already for some time, and currently
it causes a dependency error, as the opencv package itself
was removed from the packages feed.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
4 years agoMerge pull request #510 from micmac1/fs-revert-pg-commit
micmac1 [Sat, 21 Mar 2020 09:16:25 +0000 (10:16 +0100)]
Merge pull request #510 from micmac1/fs-revert-pg-commit

freeswitch-stable: revert libpq pc file workaround

4 years agofreeswitch-stable: revert libpq pc file workaround 510/head
Sebastian Kemper [Sat, 21 Mar 2020 08:44:49 +0000 (09:44 +0100)]
freeswitch-stable: revert libpq pc file workaround

The libpq pkg-config file has been fixed in packages, so we can revert
the commit that introduced the workaround.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #509 from micmac1/dahdi-linux-5.4
Daniel Golle [Thu, 19 Mar 2020 18:25:25 +0000 (18:25 +0000)]
Merge pull request #509 from micmac1/dahdi-linux-5.4

dahdi-linux: bump to version 3.1.0

4 years agodahdi-linux: bump to version 3.1.0 509/head
Sebastian Kemper [Thu, 19 Mar 2020 17:39:19 +0000 (18:39 +0100)]
dahdi-linux: bump to version 3.1.0

This commit provides compatibility with kernel 5.4.

Except for the version bump this commit updates the HFC-S PCI driver to
not rely on the macro "dahdi_pci_module" anymore, because it has been
removed upstream in commit 4af6f69.

Also, a patch is added that makes the include of "<linux/pci-aspm.h>"
conditional on the kernel version, because starting with kernel 5.4 this
header has been removed and its contents merged into "pci.h".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agobuild: Add CircleCI 507/head
Josef Schlehofer [Sat, 7 Mar 2020 23:01:54 +0000 (00:01 +0100)]
build: Add CircleCI

This adds CircleCI as Continous Integration. It will provide compile
test against ath79 target and together with it, it checks if the commit
starts with the package name and it checks if the Signed-off-by matches
the author of the commit.

For example, it can avoid mistakes with broken patches, mismatched changes.

This comes from packages feed and it is being used there and also in
LuCI repository.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
4 years agoMerge pull request #504 from micmac1/pg-fs
micmac1 [Sat, 7 Mar 2020 09:01:53 +0000 (10:01 +0100)]
Merge pull request #504 from micmac1/pg-fs

freeswitch-stable: use pg_config for now

4 years agofreeswitch-stable: use pg_config for now 504/head
Sebastian Kemper [Sat, 7 Mar 2020 08:58:24 +0000 (09:58 +0100)]
freeswitch-stable: use pg_config for now

libpq's pkg-config file is currently broken. Use pg_config instead.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #503 from micmac1/ast-aslr-pie
Jiri Slachta [Sat, 11 Jan 2020 23:01:24 +0000 (00:01 +0100)]
Merge pull request #503 from micmac1/ast-aslr-pie

asterisk-16.x: fix compile with PKG_ASLR_PIE

4 years agoasterisk-16.x: fix compile with PKG_ASLR_PIE 503/head
Sebastian Kemper [Sat, 11 Jan 2020 22:44:38 +0000 (23:44 +0100)]
asterisk-16.x: fix compile with PKG_ASLR_PIE

CFLAGS aren't used when compiling objects for check_expr2. This commits
adds the flags, which fixes the compilation when PKG_ASLR_PIE is
enabled. Note: The STANDALONE define is removed because it is already
defined in _ASTCFLAGS.

Fixes #502

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #500 from micmac1/fs-1102
micmac1 [Wed, 1 Jan 2020 14:23:34 +0000 (15:23 +0100)]
Merge pull request #500 from micmac1/fs-1102

freeswitch-stable: bump to 1.10.2

4 years agofreeswitch-stable: bump to 1.10.2 500/head
Sebastian Kemper [Wed, 1 Jan 2020 14:11:19 +0000 (15:11 +0100)]
freeswitch-stable: bump to 1.10.2

Patches refreshed, two patches removed (included upstream), fixed one
typo (will send pull request to upstream if nobody did so yet).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #497 from micmac1/fix-weak-md
micmac1 [Fri, 20 Dec 2019 09:09:34 +0000 (10:09 +0100)]
Merge pull request #497 from micmac1/fix-weak-md

freeswitch-stable: fix weak md in gentls_cert

4 years agofreeswitch-stable: fix weak md in gentls_cert 497/head
Sebastian Kemper [Fri, 20 Dec 2019 08:32:20 +0000 (09:32 +0100)]
freeswitch-stable: fix weak md in gentls_cert

gentls_cert generates certificates that are deemed too weak by Debian's
OpenSSL (on Buster and up). This patch upgrades the message digest to
SHA256 to address this.

See patch for details. Sent upstream ([1]).

[1] https://github.com/signalwire/freeswitch/pull/126

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #468 from micmac1/sigwa
micmac1 [Tue, 17 Dec 2019 17:56:19 +0000 (18:56 +0100)]
Merge pull request #468 from micmac1/sigwa

freeswitch-stable: add mod_signalwire and dependencies

4 years agofreeswitch-stable: add mod_signalwire 468/head
Sebastian Kemper [Sun, 6 Oct 2019 12:55:44 +0000 (14:55 +0200)]
freeswitch-stable: add mod_signalwire

This plugin allows to make a connection to the SignalWire CLOUD.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agosignalwire-client-c: new package
Sebastian Kemper [Sun, 6 Oct 2019 12:53:59 +0000 (14:53 +0200)]
signalwire-client-c: new package

signalwire-client-c is a dependency of mod-signalwire.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agolibks: new package
Sebastian Kemper [Sun, 6 Oct 2019 12:53:06 +0000 (14:53 +0200)]
libks: new package

libks is a dependency of signalwire-client-c.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #495 from micmac1/sngrep-ssl
micmac1 [Tue, 3 Dec 2019 12:47:01 +0000 (13:47 +0100)]
Merge pull request #495 from micmac1/sngrep-ssl

sngrep: update to snapshot + options

4 years agosngrep: add configuration menu 495/head
Sebastian Kemper [Tue, 3 Dec 2019 12:42:26 +0000 (13:42 +0100)]
sngrep: add configuration menu

Makes ipv6, pcre and eep optional. Defaults unchanged.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agosngrep: update to git snapshot
Sebastian Kemper [Tue, 3 Dec 2019 12:32:12 +0000 (13:32 +0100)]
sngrep: update to git snapshot

Also adds PKG_BUILD_PARALLEL:=1 and updates description.

Fixes #491

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years agoMerge pull request #487 from micmac1/AST-2019-006_007
Jiri Slachta [Sun, 1 Dec 2019 21:22:10 +0000 (22:22 +0100)]
Merge pull request #487 from micmac1/AST-2019-006_007

[master] asterisk-16.x: add fixes for AST-2019-006 and 007