feed/telephony.git
6 years agokamailio-5.x: add PKG_CONFIG_DEPENDS 298/head
Sebastian Kemper [Fri, 9 Mar 2018 15:37:35 +0000 (16:37 +0100)]
kamailio-5.x: add PKG_CONFIG_DEPENDS

The module list is necessary, unfortunately. But having working
PKG_CONFIG_DEPENDS is nice and the list rarely needs updating.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: version bump
Sebastian Kemper [Fri, 9 Mar 2018 15:36:16 +0000 (16:36 +0100)]
kamailio-5.x: version bump

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #290 from micmac1/revert-telephony
Jiri Slachta [Sun, 4 Mar 2018 19:24:42 +0000 (20:24 +0100)]
Merge pull request #290 from micmac1/revert-telephony

Revert uclibc++ commits

6 years agoyate: revert uclibc++ commit 290/head
Sebastian Kemper [Sun, 4 Mar 2018 18:21:09 +0000 (19:21 +0100)]
yate: revert uclibc++ commit

This reverts commit b8b9818a13366e69eb769aeee973db18eecfcca8.

In hindsight I have to admit I did not correctly understand the
implications of the uclibc++.mk include.

The include allows a package to follow the user's choice regarding which
C++ library should be the standard. Linking against uClibc++ instead of
libstd++ is not a problem when running musl (which is what I had
incorrectly assumed), as both C++ libs are separate packages. And
uClibc++ is a lot smaller than libstd++, which is probably why it is
even the default C++ lib on OpenWrt currently.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agopcapsipdump: revert uclibc++ commit
Sebastian Kemper [Sun, 4 Mar 2018 18:18:33 +0000 (19:18 +0100)]
pcapsipdump: revert uclibc++ commit

This reverts commit 6857bc21ebb7ab6408a968797f699921f0fb6441.

In hindsight I have to admit I did not correctly understand the
implications of the uclibc++.mk include.

The include allows a package to follow the user's choice regarding which
C++ library should be the standard. Linking against uClibc++ instead of
libstd++ is not a problem when running musl (which is what I had
incorrectly assumed), as both C++ libs are separate packages. And
uClibc++ is a lot smaller than libstd++, which is probably why it is
even the default C++ lib on OpenWrt currently.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #289 from micmac1/fs-updates
micmac1 [Sun, 4 Mar 2018 17:51:54 +0000 (18:51 +0100)]
Merge pull request #289 from micmac1/fs-updates

freeswitch-stable updates

6 years agofreeswitch-stable: fix CVE in libvpx 289/head
Sebastian Kemper [Sun, 4 Mar 2018 17:47:04 +0000 (18:47 +0100)]
freeswitch-stable: fix CVE in libvpx

Patch copied from Debian to fix CVE-2017-13194.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agofreeswitch-stable: unite libvpx patches, address CVE
Sebastian Kemper [Sun, 4 Mar 2018 17:41:26 +0000 (18:41 +0100)]
freeswitch-stable: unite libvpx patches, address CVE

Currently there are two simple patches for libvpx. This commit puts the
second patch into the first.

Also added:

  - CPPFLAGS
  - a flag to address CVE-2017-0641
  - comments

A tiff patch got refreshed due to the above.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agofreeswitch-stable: clean up PKG_CONFIG_DEPENDS
Sebastian Kemper [Sun, 4 Mar 2018 17:37:48 +0000 (18:37 +0100)]
freeswitch-stable: clean up PKG_CONFIG_DEPENDS

A lot of entries in there are unnecessary. Remove them and add the
essential bits.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agofreeswitch-stable: move module selection to Build/Configure
Sebastian Kemper [Sun, 4 Mar 2018 17:25:11 +0000 (18:25 +0100)]
freeswitch-stable: move module selection to Build/Configure

Currently the routine that sets up the modules.conf file resides in
Build/Prepare.

When PKG_CONFIG_DEPENDS causes a reconfiguration, Build/Prepare is not
triggered. So if another module gets selected in menuconfig, this module
would not be added to modules.conf, meaning the rebuild would fail.

Add the routine to Build/Compile to address this.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agofreeswitch-stable: move source file copying to Build/Compile
Sebastian Kemper [Sun, 4 Mar 2018 17:09:29 +0000 (18:09 +0100)]
freeswitch-stable: move source file copying to Build/Compile

Some source files need to be copied into PKG_BUILD_DIR. This is
currently done in Build/Prepare.

When PKG_CONFIG_DEPENDS causes a reconfiguration, Build/Prepare is not
triggered again, meaning needed source files would not be copied.

Move these lines to Build/Compile to address this.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #279 from micmac1/libosip2-flags
Jiri Slachta [Sat, 3 Mar 2018 09:51:53 +0000 (10:51 +0100)]
Merge pull request #279 from micmac1/libosip2-flags

Libosip2 flags and defines

6 years agoMerge pull request #282 from micmac1/spandsp-flags
Jiri Slachta [Sat, 3 Mar 2018 09:50:50 +0000 (10:50 +0100)]
Merge pull request #282 from micmac1/spandsp-flags

Spandsp flags

6 years agoMerge pull request #284 from micmac1/yate-updates
Jiri Slachta [Sat, 3 Mar 2018 09:50:23 +0000 (10:50 +0100)]
Merge pull request #284 from micmac1/yate-updates

Yate updates

6 years agoMerge pull request #288 from micmac1/upd-gsmlib
micmac1 [Tue, 27 Feb 2018 19:26:56 +0000 (20:26 +0100)]
Merge pull request #288 from micmac1/upd-gsmlib

gsmlib: update PKG_BUILD_DEPENDS

6 years agogsmlib: update PKG_BUILD_DEPENDS 288/head
Sebastian Kemper [Tue, 27 Feb 2018 19:24:16 +0000 (20:24 +0100)]
gsmlib: update PKG_BUILD_DEPENDS

gettext-full/host is not enough. We need m4 files from gettext-full as
well.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #277 from micmac1/bcg729-flags
Jiri Slachta [Tue, 27 Feb 2018 08:22:04 +0000 (09:22 +0100)]
Merge pull request #277 from micmac1/bcg729-flags

Bcg729 flags

6 years agoMerge pull request #278 from micmac1/dahdi-linux-flags
Jiri Slachta [Tue, 27 Feb 2018 08:21:38 +0000 (09:21 +0100)]
Merge pull request #278 from micmac1/dahdi-linux-flags

Dahdi flags and defines

6 years agoMerge pull request #280 from micmac1/libpri-symlink
Jiri Slachta [Tue, 27 Feb 2018 07:34:52 +0000 (08:34 +0100)]
Merge pull request #280 from micmac1/libpri-symlink

libpri: update install defines

6 years agoMerge pull request #281 from micmac1/libsrtp-flags
Jiri Slachta [Tue, 27 Feb 2018 07:34:31 +0000 (08:34 +0100)]
Merge pull request #281 from micmac1/libsrtp-flags

Libsrtp flags and missing symlink

6 years agoMerge pull request #285 from micmac1/ast-up-for-master
Jiri Slachta [Tue, 27 Feb 2018 07:32:54 +0000 (08:32 +0100)]
Merge pull request #285 from micmac1/ast-up-for-master

Asterisk/pjproject updates for master

6 years agoasterisk-15.x: bump to 15.2.2 285/head
Sebastian Kemper [Mon, 26 Feb 2018 21:41:37 +0000 (22:41 +0100)]
asterisk-15.x: bump to 15.2.2

- Fixes:
    AST-2018-004
    AST-2018-005
    AST-2018-006
- Remove res_pjsip_transport_management.so as it got moved into
  res_pjsip's core as per AST-2018-003.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoasterisk-13.x: bump to 13.19.2
Sebastian Kemper [Mon, 26 Feb 2018 21:36:55 +0000 (22:36 +0100)]
asterisk-13.x: bump to 13.19.2

- Fixes:
    AST-2018-004
    AST-2018-005
- Remove res_pjsip_transport_management.so as it got moved into
  res_pjsip's core as per AST-2018-003.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agopjproject: bump to 2.7.2
Sebastian Kemper [Mon, 26 Feb 2018 21:33:31 +0000 (22:33 +0100)]
pjproject: bump to 2.7.2

Includes security fixes:

2094: Crash when receiving SDP with invalid fmtp attribute
2095: Crash when parsing SDP with an invalid media format description

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoyate: update install define 284/head
Sebastian Kemper [Sat, 24 Feb 2018 10:37:46 +0000 (11:37 +0100)]
yate: update install define

- Simplify lib install
- Use $(INSTALL_CONF) for config files

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoyate: add DAHDI support
Sebastian Kemper [Sat, 24 Feb 2018 10:35:04 +0000 (11:35 +0100)]
yate: add DAHDI support

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agospandsp: use $(INSTALL_DATA) for regular files 282/head
Sebastian Kemper [Sat, 24 Feb 2018 10:01:53 +0000 (11:01 +0100)]
spandsp: use $(INSTALL_DATA) for regular files

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agospandsp: remove $(FPIC) from TARGET_CFLAGS
Sebastian Kemper [Sat, 24 Feb 2018 09:56:13 +0000 (10:56 +0100)]
spandsp: remove $(FPIC) from TARGET_CFLAGS

spandsp already makes sure that the compiler emits position-independent
code. Adding $(FPIC) makes no difference. In addition the spandsp build
system puts its own flag behind the CFLAGS, overriding whatever was set
before.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agolibsrtp: install additional symlink 281/head
Sebastian Kemper [Sat, 24 Feb 2018 09:51:15 +0000 (10:51 +0100)]
libsrtp: install additional symlink

Makes sure that the libsrtp.so symlink gets installed on the target
devices as well.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agolibsrtp: remove $(FPIC) from TARGET_CFLAGS
Sebastian Kemper [Sat, 24 Feb 2018 09:49:43 +0000 (10:49 +0100)]
libsrtp: remove $(FPIC) from TARGET_CFLAGS

bgg729 already makes sure that the compiler emits position-independent
code. Adding $(FPIC) makes no difference. In addition the libsrtp build
system puts its own flag behind the CFLAGS, overriding whatever was set
before.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agolibpri: update install defines 280/head
Sebastian Kemper [Sat, 24 Feb 2018 09:45:39 +0000 (10:45 +0100)]
libpri: update install defines

- Use $(INSTALL_DATA) for the header file.

- Make sure that also the libpri.so symlink gets installed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agolibosip2: simplify install define 279/head
Sebastian Kemper [Sat, 24 Feb 2018 09:37:25 +0000 (10:37 +0100)]
libosip2: simplify install define

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agolibosip2: remove $(FPIC) from TARGET_CFLAGS
Sebastian Kemper [Sat, 24 Feb 2018 09:35:35 +0000 (10:35 +0100)]
libosip2: remove $(FPIC) from TARGET_CFLAGS

libosip2 already makes sure that the compiler emits position-independent
code. Adding $(FPIC) makes no difference. In addition the libosip2 build
system puts its own flag behind the CFLAGS, overriding whatever was set
before.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agodahdi-tools: update install defines 278/head
Sebastian Kemper [Sat, 24 Feb 2018 09:28:13 +0000 (10:28 +0100)]
dahdi-tools: update install defines

- use $(INSTALL_BIN) and $(INSTALL_DATA) where possible.
- instead of creating symlinks manually just copy them.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agobcg729: fix a typo 277/head
Sebastian Kemper [Sat, 24 Feb 2018 09:23:27 +0000 (10:23 +0100)]
bcg729: fix a typo

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agodahdi-tools: clean up make flags, remove $(FPIC)
Sebastian Kemper [Sat, 24 Feb 2018 09:15:20 +0000 (10:15 +0100)]
dahdi-tools: clean up make flags, remove $(FPIC)

- Remove all flags/variables that are not used at all.

- dahdi-tools already makes sure that the compiler emits
  position-independent code for libtonezone. Adding $(FPIC) makes no
  difference. In addition the dahdi-toolsbuild system puts its own flag
  behind the CFLAGS, overriding whatever was set before. Also the
  applications should never be built with PIC, it should only be done for
  the lib.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agodahdi-linux: clean up make flags
Sebastian Kemper [Sat, 24 Feb 2018 09:10:16 +0000 (10:10 +0100)]
dahdi-linux: clean up make flags

Remove all flags/variables that are not used at all. Remove some ':'
that are not needed in the context.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agobcg729: remove $(FPIC) from TARGET_CFLAGS
Sebastian Kemper [Sat, 24 Feb 2018 08:45:23 +0000 (09:45 +0100)]
bcg729: remove $(FPIC) from TARGET_CFLAGS

bgg729 already makes sure that the compiler emits position-independent
code. Adding $(FPIC) makes no difference. In addition the bcg729 build
system puts its own flag behind the CFLAGS, overriding whatever was set
before.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agobcg729: add OpenWrt CPPFLAGS
Sebastian Kemper [Sat, 24 Feb 2018 08:42:50 +0000 (09:42 +0100)]
bcg729: add OpenWrt CPPFLAGS

Add TARGET_CPPFLAGS to TARGET_CFLAGS, otherwise OpenWrt's CPPFLAGS are
ignored (i.e. fortify-source headers are not picked up).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #253 from neheb/patch-1
Jiri Slachta [Wed, 21 Feb 2018 07:23:34 +0000 (08:23 +0100)]
Merge pull request #253 from neheb/patch-1

bcg729: Remove BUILD_PATENTED.

6 years agoMerge pull request #270 from micmac1/dahdi-linux-uaccess-fixes
Jiri Slachta [Sun, 18 Feb 2018 17:59:59 +0000 (18:59 +0100)]
Merge pull request #270 from micmac1/dahdi-linux-uaccess-fixes

dahdi-linux: include linux/uaccess.h rather than asm/uaccess.h

6 years agoMerge pull request #272 from micmac1/baresip-version-bump
Jiri Slachta [Sun, 18 Feb 2018 17:57:36 +0000 (18:57 +0100)]
Merge pull request #272 from micmac1/baresip-version-bump

Re, Baresip: version bump

6 years agoMerge pull request #269 from micmac1/kam5-util-lib-rename
Jiri Slachta [Sun, 18 Feb 2018 17:56:56 +0000 (18:56 +0100)]
Merge pull request #269 from micmac1/kam5-util-lib-rename

kamailio-5.x: update libs and utils handling

6 years agoMerge pull request #274 from micmac1/rtpproxy-bump
Jiri Slachta [Sun, 18 Feb 2018 17:55:01 +0000 (18:55 +0100)]
Merge pull request #274 from micmac1/rtpproxy-bump

Rtpproxy bump

6 years agoMerge pull request #273 from micmac1/asterisk-bumps
Jiri Slachta [Sun, 18 Feb 2018 17:46:14 +0000 (18:46 +0100)]
Merge pull request #273 from micmac1/asterisk-bumps

Asterisk bumps

6 years agoMerge pull request #275 from micmac1/yate-fortify-off
Jiri Slachta [Sun, 18 Feb 2018 17:43:29 +0000 (18:43 +0100)]
Merge pull request #275 from micmac1/yate-fortify-off

net/yate: some tiny updates

6 years agoMerge pull request #276 from micmac1/pcapsipdump-up
Jiri Slachta [Sun, 18 Feb 2018 17:42:50 +0000 (18:42 +0100)]
Merge pull request #276 from micmac1/pcapsipdump-up

Pcapsipdump update

6 years agonet/pcapsipdump: Simplify Makefile 276/head
Sebastian Kemper [Sun, 18 Feb 2018 09:16:32 +0000 (10:16 +0100)]
net/pcapsipdump: Simplify Makefile

Use the default Build/Compile. Use MAKE_VARS to set up the variables
that are used by pcapsipdump's Makefile.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agonet/pcapsipdump: Remove uclibc++.mk include
Sebastian Kemper [Sun, 18 Feb 2018 09:14:13 +0000 (10:14 +0100)]
net/pcapsipdump: Remove uclibc++.mk include

The include injects a lib depend on libuClibc++.so.0 into the package,
even on musl. Remove it and replace the depend with libstcpp instead.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agonet/yate: Add some plugins 275/head
Sebastian Kemper [Sun, 18 Feb 2018 09:11:26 +0000 (10:11 +0100)]
net/yate: Add some plugins

Add some plugins which are built by default anyway.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agonet/yate: Disable RTTI
Sebastian Kemper [Sun, 18 Feb 2018 09:07:16 +0000 (10:07 +0100)]
net/yate: Disable RTTI

Yate is the only package in OpenWrt which manually enables RTTI
(run-time type information). There's no explanation in the Makefile as
to why that would be needed or advisable. Remove it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agonet/yate: Remove uclibc++.mk include
Sebastian Kemper [Sun, 18 Feb 2018 09:04:18 +0000 (10:04 +0100)]
net/yate: Remove uclibc++.mk include

With this include libuClibc++.so.0 gets added as a lib depend, even on
musl. readelf shows:

  Dynamic section at offset 0x10ea60 contains 23 entries:
    Tag        Type                         Name/Value
   0x0000000000000001 (NEEDED)             Shared library: [libuClibc++.so.0]
   0x0000000000000001 (NEEDED)             Shared library: [libc.so]
   0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
   0x000000000000000e (SONAME)             Library soname: [libyate.so.6.0.0]

Remove the include from the Makefile and add a depend on libstdcpp
instead.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agonet/yate: Disable FORTIFY_SOURCE properly
Sebastian Kemper [Sat, 17 Feb 2018 17:39:23 +0000 (18:39 +0100)]
net/yate: Disable FORTIFY_SOURCE properly

This reverts commit 4cc2afdcdc6891c5546e94e8a15bb9c96864acd6 which
disabled FORTIFY_SOURCE by removing OpenWrt's CPPFLAGS from the built.
Instead PKG_FORTIFY_SOURCE:=0 is defined, which is the proper way to do
it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #271 from micmac1/sipgrep-fix
micmac1 [Sat, 17 Feb 2018 09:53:40 +0000 (10:53 +0100)]
Merge pull request #271 from micmac1/sipgrep-fix

net/sipgrep: fix PKG_SOURCE_URL

6 years agonet/sipgrep: fix PKG_SOURCE_URL 271/head
Sebastian Kemper [Sat, 17 Feb 2018 09:51:07 +0000 (10:51 +0100)]
net/sipgrep: fix PKG_SOURCE_URL

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agonet/rtpproxy: improvide configuration file treatment 274/head
Sebastian Kemper [Sat, 17 Feb 2018 09:44:23 +0000 (10:44 +0100)]
net/rtpproxy: improvide configuration file treatment

Protect configuration files.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agonet/rtpproxy: update flags
Sebastian Kemper [Sat, 17 Feb 2018 09:40:32 +0000 (10:40 +0100)]
net/rtpproxy: update flags

rtpproxy doesn't use OpenWrt's CPPFLAGS (i.e. used for including
fortify-source headers). Add them to CFLAGS.

Run autoreconf. It's usually a good idea.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agonet/rtpproxy: add new CSV accounting module
Sebastian Kemper [Sat, 17 Feb 2018 09:16:21 +0000 (10:16 +0100)]
net/rtpproxy: add new CSV accounting module

Can be loaded by rtpproxy with -dso command line parameter.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agonet/rtpproxy: bump to 2.1.0
Sebastian Kemper [Sat, 17 Feb 2018 09:08:50 +0000 (10:08 +0100)]
net/rtpproxy: bump to 2.1.0

- Version bump
- Refresh debug-disable patch
- Add patch to add missing includes to fix:

    rtpp_record.c: In function 'rtpp_record_open':
    rtpp_record.c:228:62: error: 'DEFFILEMODE' undeclared (first use in this function)
         rrc->fd = open(rrc->spath, O_WRONLY | O_CREAT | O_TRUNC, DEFFILEMODE);
                                                                  ^

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agonet/asterisk-15.x: bump to 15.2.1 273/head
Sebastian Kemper [Fri, 16 Feb 2018 21:26:41 +0000 (22:26 +0100)]
net/asterisk-15.x: bump to 15.2.1

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agonet/asterisk-13.x: bump to 13.19.1
Sebastian Kemper [Fri, 16 Feb 2018 21:17:58 +0000 (22:17 +0100)]
net/asterisk-13.x: bump to 13.19.1

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agonet/baresip: bump to 0.5.8 272/head
Sebastian Kemper [Fri, 16 Feb 2018 20:58:14 +0000 (21:58 +0100)]
net/baresip: bump to 0.5.8

One new module added: ctrl_tcp (TCP control interface using JSON
payload)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agolibs/re: bump to 0.5.7
Sebastian Kemper [Fri, 16 Feb 2018 20:45:05 +0000 (21:45 +0100)]
libs/re: bump to 0.5.7

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agodahdi-linux: include linux/uaccess.h rather than asm/uaccess.h 270/head
Sebastian Kemper [Mon, 12 Feb 2018 20:57:04 +0000 (21:57 +0100)]
dahdi-linux: include linux/uaccess.h rather than asm/uaccess.h

Starting with 4.12 there are module build errors due to the
arch-specific uaccess.h using a macro defined in the generic include.
The generic include has been around since 2.6.18 and has always included
asm/uaccess.h, so switch to using the generic include for all kernels
which have it.

Example build failure:

    CC [M]  /data/bowl-builder/mips64_octeon/build/sdk/build_dir/target-mips64_octeon_64_musl/linux-octeon/dahdi-linux-2.11.1-20180111/drivers/dahdi/wcb4xxp/base.o
  In file included from ../dahdi-linux-2.11.1-20180111/drivers/dahdi/wcb4xxp/base.c:38:0:
  ./arch/mips/include/asm/uaccess.h: In function 'eva_kernel_access':
  ./arch/mips/include/asm/uaccess.h:91:9: error: implicit declaration of function 'uaccess_kernel' [-Werror=implicit-function-declaration]
    return uaccess_kernel();
           ^
  cc1: some warnings being treated as errors

The same can currently be seen on arc_archs where also kernel 4.14.18 is
used.

The patch just follows what Ubuntu's Seth Forshee suggested for openafs,
which ran into the same problem. The commit message is largely just
copied from Seth's commit message as well :)

The issue has been reported to upstream here:

https://issues.asterisk.org/jira/browse/DAHLIN-360

The same patch has been uploaded there.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: update libs and utils handling 269/head
Sebastian Kemper [Mon, 12 Feb 2018 20:49:59 +0000 (21:49 +0100)]
kamailio-5.x: update libs and utils handling

- The libraries and the Berkeley DB recovery utility are currently in
  Libraries/Telephony and Utilities/Telephony. That makes little sense
  as the are not general purpose libraries/utilities, hence it is better
  to move them to where Kamailio 5 sits in menuconfig.
- Rename them by adding prefixes "lib" and "util" to their name.
- Update their titles a bit.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #267 from micmac1/kam5-update
Jiri Slachta [Mon, 12 Feb 2018 06:05:00 +0000 (07:05 +0100)]
Merge pull request #267 from micmac1/kam5-update

New PR: more kamailio5 updates

6 years agokamailio-5.x: add kambdb_recover utility 267/head
Sebastian Kemper [Sun, 11 Feb 2018 21:30:16 +0000 (22:30 +0100)]
kamailio-5.x: add kambdb_recover utility

The recently added mod-db-berkeley comes with a companion utility.
Package kambdb_recover so it becomes available.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: move lesser-used internal libraries into packages
Sebastian Kemper [Sun, 11 Feb 2018 18:43:15 +0000 (19:43 +0100)]
kamailio-5.x: move lesser-used internal libraries into packages

This commit moves libkamailio-ims & libtrie into their own packages to
keep the main package small.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: make internal libs available always
Sebastian Kemper [Sun, 11 Feb 2018 18:35:47 +0000 (19:35 +0100)]
kamailio-5.x: make internal libs available always

kamailio comes with internal libraries. Some are not built when only the
standard group of modules is compiled (i.e. no modules selected in
menuconfig).

The problem is that there is no way to rely on specific internal
libraries being available in the main kamailio package.

To fix this this add some modules (if they are not already selected)
that will kick of the build of the internal libraries in any case.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: run make cfg
Sebastian Kemper [Sun, 11 Feb 2018 18:29:19 +0000 (19:29 +0100)]
kamailio-5.x: run make cfg

The INSTALL file from kamailio suggests to make the target "cfg" first.
All settinggs will then be reused when make is called again.

This has the side effect that "$(FPIC)" can be dropped from CFLAGS as
the build system adds the flags automatically now.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: remove a gratuitous ":"
Sebastian Kemper [Sun, 11 Feb 2018 18:26:40 +0000 (19:26 +0100)]
kamailio-5.x: remove a gratuitous ":"

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: specify run directory
Sebastian Kemper [Sun, 11 Feb 2018 18:22:10 +0000 (19:22 +0100)]
kamailio-5.x: specify run directory

When not specifying "run_target" the kamailio build system assumes
$(DESTDIR)/var/run/kamailio to be the run directory on the target
device. Add the variable to address this.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: fix RPATH of kamailio modules
Sebastian Kemper [Sun, 11 Feb 2018 18:18:05 +0000 (19:18 +0100)]
kamailio-5.x: fix RPATH of kamailio modules

The kamailio build system provides an RPATH "///usr/lib/kamailio/" when
linking. OpenWrt's rstrip.sh inspects this RPATH and drops it. Now the
modules cannot find the needed libraries. Fix this by specifying a path
that rstrip.sh accepts.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: add missing files from mod-xhttp_pi
Sebastian Kemper [Sun, 11 Feb 2018 18:13:13 +0000 (19:13 +0100)]
kamailio-5.x: add missing files from mod-xhttp_pi

The initial commit for this plugin missed that it comes with a
configuration file and extra files that go into
/usr/share/kamailio/xhttp_pi.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: add snmpstats mibs files
Sebastian Kemper [Sun, 11 Feb 2018 18:08:58 +0000 (19:08 +0100)]
kamailio-5.x: add snmpstats mibs files

This installs the snmp mibs files provided by mod_snmpstats. A patch is
added to make the kamailio build system install the files in a proper
location in PKG_INSTALL_DIR.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #266 from micmac1/kam-master
Jiri Slachta [Sat, 10 Feb 2018 15:06:40 +0000 (16:06 +0100)]
Merge pull request #266 from micmac1/kam-master

kamailio-5.x: update PKG_MAKE_ARGS

6 years agokamailio-5.x: add various new modules 266/head
Sebastian Kemper [Sat, 10 Feb 2018 14:15:33 +0000 (15:15 +0100)]
kamailio-5.x: add various new modules

The aim is to add the missing modules that Debian packages, minus the
ones for which depends are missing on OpenWrt.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: update configuration file handling
Sebastian Kemper [Sat, 10 Feb 2018 14:12:48 +0000 (15:12 +0100)]
kamailio-5.x: update configuration file handling

- add install/conffile routine
- use it for main package
- setup BuildKamailio5Module to allow inclusion of configuration files
  on a per-module basis (mod-tls is currently the only user)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: bump to version 5.1.1
Sebastian Kemper [Thu, 8 Feb 2018 21:26:49 +0000 (22:26 +0100)]
kamailio-5.x: bump to version 5.1.1

- dictionary.kamailio & kamailio-basic.cfg are gone, remove from
  Makefilei accordingly
- Install the config files from PKG_INSTALL_DIR
- Use $(INSTALL_CONF) for config files
- Remove gratuitous directory creation
- Refresh 050-fix-kamailio-utils.patch
- Remove src/modules/cnxcc/Makefile change from 120-libevent-libs.patch
  as $(EXTRA_LIBS) has been removed from Makefile in previous commit

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #257 from hnyman/flite
Jiri Slachta [Sat, 10 Feb 2018 08:59:08 +0000 (09:59 +0100)]
Merge pull request #257 from hnyman/flite

freeswitch: disable flite module

6 years agokamailio-5.x: update PKG_MAKE_ARGS
Sebastian Kemper [Wed, 7 Feb 2018 21:24:36 +0000 (22:24 +0100)]
kamailio-5.x: update PKG_MAKE_ARGS

- Removes TLS_HOOKS as this is default anyway
- Removes -DUSE_PTHREAD_MUTEX as on supported arches FAST_LOCK is used
  by default, which according to doc/tutorials/locking.txt is fastest.
  -DUSE_PTHREAD_MUTEX will be set by the build system automatically in
  case FAST_LOCK is unsupported, e.g. on ARC.
- Add OpenWrt LDFLAGS via LD_EXTRA_OPTS.
- With OpenWrt LDFLAGS and CPPFLAGS in place there is no need to declare
  PCREDEFS, PCRELIBS nor EXTRA_LIBS. Remove them all.
- With this setup mod-dialplan now links to libpcre as well; add the
  depend accordingly.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #265 from micmac1/fs-redo-freetdm
micmac1 [Mon, 5 Feb 2018 22:13:58 +0000 (23:13 +0100)]
Merge pull request #265 from micmac1/fs-redo-freetdm

freeswitch-stable: redo freetdm

6 years agofreeswitch-stable: prevent libfreetdm from being installed twice 265/head
Sebastian Kemper [Mon, 5 Feb 2018 22:08:19 +0000 (23:08 +0100)]
freeswitch-stable: prevent libfreetdm from being installed twice

This patch takes care of that. This commit concludes the series with a
revision bump.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agofreeswitch-stable: tidy up the Build defines
Sebastian Kemper [Mon, 5 Feb 2018 22:04:15 +0000 (23:04 +0100)]
freeswitch-stable: tidy up the Build defines

This commit changes Build/Compile, Build/Install and Build/InstallDev to
prevent building/installing items that are not selected. I.e. when
freeswitch-stable is not selected, only libfreetdm-stable gets built.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agofreeswitch-stable: move the config define
Sebastian Kemper [Mon, 5 Feb 2018 21:57:40 +0000 (22:57 +0100)]
freeswitch-stable: move the config define

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agofreeswitch-stable: redo FreeTDM handling
Sebastian Kemper [Mon, 5 Feb 2018 21:50:08 +0000 (22:50 +0100)]
freeswitch-stable: redo FreeTDM handling

This commit renames libfreetdm to libfreetdm-stable. Also the depends
are changed to what they actually are, i.e. there is no depend on
freeswitch-stable anymore (libfreetdm.so is a standalone libary).

The FreeTDM modules get the same treatment.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #264 from micmac1/yate-change-error-to-warning
Jiri Slachta [Mon, 5 Feb 2018 20:59:04 +0000 (21:59 +0100)]
Merge pull request #264 from micmac1/yate-change-error-to-warning

yate: turn miniwebrtc error into warning

6 years agofreeswitch-stable: remove --disable-silent-rules
Sebastian Kemper [Mon, 5 Feb 2018 20:42:18 +0000 (21:42 +0100)]
freeswitch-stable: remove --disable-silent-rules

Remove this switch as the logs grow quite big with this level of
verbosity.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoyate: turn miniwebrtc error into warning 264/head
Sebastian Kemper [Mon, 5 Feb 2018 20:21:16 +0000 (21:21 +0100)]
yate: turn miniwebrtc error into warning

ilbcwebrtc and isaccodec currently depend on @!arc because the code does
not compile there. The code does not compile on aarch64 either.

Instead of adding @!aarch64 this commit adds a patch copied from Debian
that turns the error "Please add support for your architecture in
typedefs.h" into a warning, allowing the code to build.

Consequently this commit removes @!arc from the depends as well.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #263 from micmac1/yate-fix-typo
Jiri Slachta [Mon, 5 Feb 2018 05:36:08 +0000 (06:36 +0100)]
Merge pull request #263 from micmac1/yate-fix-typo

yate: fix a typo

6 years agoyate: fix a typo 263/head
Sebastian Kemper [Sun, 4 Feb 2018 18:24:17 +0000 (19:24 +0100)]
yate: fix a typo

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #262 from micmac1/master
Jiri Slachta [Sun, 4 Feb 2018 13:00:39 +0000 (14:00 +0100)]
Merge pull request #262 from micmac1/master

PR: yate follow-up and a bit of kamailio

6 years agokamailio-5.x: copy symbolic links instead of hard links 262/head
Sebastian Kemper [Sat, 3 Feb 2018 20:49:23 +0000 (21:49 +0100)]
kamailio-5.x: copy symbolic links instead of hard links

Currently three copies of every library are installed. Save space by
installing symbolic links instead.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoyate: Prevent build failures due to inclusion of fortify-source headers
Sebastian Kemper [Sat, 3 Feb 2018 20:42:53 +0000 (21:42 +0100)]
yate: Prevent build failures due to inclusion of fortify-source headers

yate cannot be compiled against fortify-source headers at this moment:

  In file included from /home/sk/tmp/lede/staging_dir/toolchain-x86_64_gcc-5.5.0_musl/include/fortify/unistd.h:23:0,
                   from ../yateclass.h:32,
                   from ../yatengine.h:29,
                   from ../yatephone.h:29,
                   from server/ysnmpagent.cpp:22:
  /home/sk/tmp/lede/staging_dir/toolchain-x86_64_gcc-5.5.0_musl/include/fortify/fortify-headers.h:20:42: error: type of 'TelEngine::strcat' is unknown

To work around this remove CPPFLAGS from CFLAGS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #261 from micmac1/master
micmac1 [Sat, 3 Feb 2018 19:24:40 +0000 (20:24 +0100)]
Merge pull request #261 from micmac1/master

New PR: freeswitch-stable

6 years agofreeswitch-stable: workaround for build failures when gcc 7 is used 261/head
Sebastian Kemper [Sat, 3 Feb 2018 18:30:34 +0000 (19:30 +0100)]
freeswitch-stable: workaround for build failures when gcc 7 is used

When gcc 7 is used, -Werror=format-truncation finds snprintf() calls in
mod_cdr_mongodb.c and suspects that they may result in truncation. As a
result the build fails.

Work around this by adding -Wno-error=format-truncation to CFLAGS when
gcc support this.

JIRA-10939 has been raised upstream to follow up on this.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agofreeswitch-stable: cleanup after move to system libtiff
Sebastian Kemper [Sat, 3 Feb 2018 18:28:22 +0000 (19:28 +0100)]
freeswitch-stable: cleanup after move to system libtiff

- refresh a patch
- drop depend on liblzma from mod-gsmopen
- add tiff to PKG_BUILD_DEPENDS

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #256 from micmac1/dahdi-linux
Jiri Slachta [Sat, 3 Feb 2018 17:18:52 +0000 (18:18 +0100)]
Merge pull request #256 from micmac1/dahdi-linux

dahdi-linux: update source to snapshot

6 years agoMerge pull request #260 from micmac1/yate-master
Jiri Slachta [Sat, 3 Feb 2018 17:05:16 +0000 (18:05 +0100)]
Merge pull request #260 from micmac1/yate-master

New PR: Yate for master

6 years agoMerge pull request #258 from micmac1/libosip2-master
Jiri Slachta [Sat, 3 Feb 2018 17:04:54 +0000 (18:04 +0100)]
Merge pull request #258 from micmac1/libosip2-master

libosip2: fix build with ARC toolchain