feed/telephony.git
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 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

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

New PR: Kamailio for master

6 years agoyate: fix compile failures on ARC 260/head
Sebastian Kemper [Sat, 3 Feb 2018 13:55:41 +0000 (14:55 +0100)]
yate: fix compile failures on ARC

- perl and postgresql do not compile on ARC; disable the modules
  accordingly
- ilbcwebrtc and isac also cause build failures on ARC; disable them as
  well.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoyate: fix module conffiles
Sebastian Kemper [Sat, 3 Feb 2018 13:50:09 +0000 (14:50 +0100)]
yate: fix module conffiles

Currently conffiles is always filled with <module>.conf. This leads to
"no such file and directory" errors when the file actually does not
exist.

This commit adds a 6th column to BuildPlugin() which indicates if there
is a config file or not.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoyate: clean up CONFIGURE_ARGS
Sebastian Kemper [Sat, 3 Feb 2018 13:33:48 +0000 (14:33 +0100)]
yate: clean up CONFIGURE_ARGS

- remove ARGS that are default anyway
- enable sse2 when target is x86_64
- remove --enable-inline as that causes too many warnings:

    ilbccodec.cpp:50:7: warning: inlining failed in call to 'virtual {anonymous}::iLBCFactory::~iLBCFactory()': call is unlikely and code size would grow [-Winline]
     class iLBCFactory : public TranslatorFactory
           ^~~~~~~~~~~
    ilbccodec.cpp:50:7: note: called from here
     class iLBCFactory : public TranslatorFactory
           ^~~~~~~~~~~

- --enable-internalregex removed as yate can use external regex
- make some choices depending on whether a package is selected; otherwise the
  build might fail, i.e. when spandsp is not installed but the Makefiles tells
  the build system to use spandsp anyway

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoyate: clean up FLAGS
Sebastian Kemper [Sat, 3 Feb 2018 13:27:40 +0000 (14:27 +0100)]
yate: clean up FLAGS

- remove flags to don't have a reason for being there anymore (there is
  no comment on why they're needed).
- add CPPFLAGS to CFLAGS so the compiler can use the FORTIFY_SOURCE
  headers.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoyate: prevent ilbc to overwrite OpenWrt CFLAGS
Sebastian Kemper [Sat, 3 Feb 2018 13:21:18 +0000 (14:21 +0100)]
yate: prevent ilbc to overwrite OpenWrt CFLAGS

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoyate: improve depends of sub packages
Sebastian Kemper [Sat, 3 Feb 2018 13:18:51 +0000 (14:18 +0100)]
yate: improve depends of sub packages

Currently the Makfile pulls in every dependency mentioned. Fix this by
prefixing the depends with the respective PACKAGE_* items.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: disable mod-db-postgres on ARC 259/head
Sebastian Kemper [Sat, 3 Feb 2018 13:06:41 +0000 (14:06 +0100)]
kamailio-5.x: disable mod-db-postgres on ARC

postgresql does not build on ARC. This commit makes sure that it is not
pulled in.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: add CPPFLAGS to CFLAGS
Sebastian Kemper [Sat, 3 Feb 2018 13:02:36 +0000 (14:02 +0100)]
kamailio-5.x: add CPPFLAGS to CFLAGS

Pass CPPFLAGS in the CFLAGS as otherwise the build system will ignore
them.

This way FORTIFY_SOURCE headers are passed to the compiler.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: improve module selection
Sebastian Kemper [Sat, 3 Feb 2018 12:56:25 +0000 (13:56 +0100)]
kamailio-5.x: improve module selection

Currently INCL_MODULES is filled with all modules. This commit changes
this so that only the modules that are selected are added to it.

To further limit the number of modules built group_include="standard" is
added. This way only the modules of the standard group plus the modules
selected in menuconfig are built. The "standard" group only includes
modules without any depends.

This fixes build failures on targets where not all depends are
available, i.e. postgresql on ARC. Now these modules can be properly
prevented from being built.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: improve module depends
Sebastian Kemper [Sat, 3 Feb 2018 12:48:58 +0000 (13:48 +0100)]
kamailio-5.x: improve module depends

Currently the Makefile pulls in depends even for packages which are not
selected. Fix this by prefixing the depends with the respective
PACKAGE_* item.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: remove KAM_MODULES use
Sebastian Kemper [Sat, 3 Feb 2018 12:44:25 +0000 (13:44 +0100)]
kamailio-5.x: remove KAM_MODULES use

Adding KAM_MODULES variable is not needed. Remove it and call
BuildPackage from BuildKamailio5Module instead. For this to work
PKG_MAKE_ARGS and Build/Compile need to be moved up, before the module
evals.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agolibosip2: fix build with ARC toolchain 258/head
Sebastian Kemper [Sat, 3 Feb 2018 12:33:24 +0000 (13:33 +0100)]
libosip2: fix build with ARC toolchain

ARC toolchain exports __arc__, which clashes with a symbol of the same
name in libosip2. This commit undefines the toolchain symbol when
building the library.

The fix was found in buildroot repo. Thanks to whoever spotted this!

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agofreeswitch: disable flite module 257/head
Hannu Nyman [Sat, 3 Feb 2018 08:42:36 +0000 (10:42 +0200)]
freeswitch: disable flite module

Disable also flite module that depends on non-existing package.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 years agoAdded patches to build for glibc.
Mazi Lo [Fri, 2 Feb 2018 02:37:39 +0000 (21:37 -0500)]
Added patches to build for glibc.

For now, these patches are basically the same for musl library build.

Signed-off-by: Mazi Lo <openwrt.forum.mazilo@recursor.net>
6 years agoFixed depencencies and also bumped to git 77d0cfbf9e9a546b4eee23d9668cf44022f5d454
Mazi Lo [Fri, 2 Feb 2018 02:32:18 +0000 (21:32 -0500)]
Fixed depencencies and also bumped to git 77d0cfbf9e9a546b4eee23d9668cf44022f5d454

Signed-off-by: Mazi Lo <openwrt.forum.mazilo@recursor.net>
6 years agodahdi-linux: update source to snapshot 256/head
Sebastian Kemper [Wed, 31 Jan 2018 23:47:17 +0000 (00:47 +0100)]
dahdi-linux: update source to snapshot

Currently dahdi-linux fails to compile on targets that use kernel 4.14.
Changes were introduced in kernels 4.11 and 4.13 that cause these build
failures.

Update to an upstream git snapshot to fix the breakage.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #255 from micmac1/fs-system-tiff
micmac1 [Sun, 28 Jan 2018 13:26:55 +0000 (14:26 +0100)]
Merge pull request #255 from micmac1/fs-system-tiff

freeswitch-stable: use system libtiff

6 years agofreeswitch-stable: use system libtiff 255/head
Sebastian Kemper [Sun, 28 Jan 2018 13:19:27 +0000 (14:19 +0100)]
freeswitch-stable: use system libtiff

The included libtiff is dated and has multiple unfixed CVEs. This commit
applies patches from upstream's master branch to use the system libtiff
instead.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agofreeswitch-stable: activate verbose build mode
Sebastian Kemper [Sun, 28 Jan 2018 13:16:17 +0000 (14:16 +0100)]
freeswitch-stable: activate verbose build mode

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #254 from micmac1/fs-1.6.20
micmac1 [Sat, 27 Jan 2018 13:33:31 +0000 (14:33 +0100)]
Merge pull request #254 from micmac1/fs-1.6.20

freeswitch-stable: bump to 1.6.20

6 years agofreeswitch-stable: bump to 1.6.20 254/head
Sebastian Kemper [Sat, 27 Jan 2018 13:19:02 +0000 (14:19 +0100)]
freeswitch-stable: bump to 1.6.20

Upstream seems to have updated their libtool. Instead of running
rebootstrap.sh, set PKG_FIXUP:=autoreconf. Otherwise the build would
fail due to libtool version conflicts.

This is actually nice, because now the build is a bit quicker due to
less autoconf and configure runs.

rebootstrap.sh was primarily used because it worked around some other
issues (e.g. not being able to detect how to convert files to the cross
compiler format, i.e. "func_convert_file_noop"), but that doesn't appear
to be needed anymore, which is nice.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agobcg729: Remove BUILD_PATENTED. 253/head
Rosen Penev [Fri, 26 Jan 2018 03:09:13 +0000 (19:09 -0800)]
bcg729: Remove BUILD_PATENTED.

As of 2017, all patents have expired. Full announcement text below:

As of January 1, 2017 the patent terms of most Licensed Patents under the G.729 Consortium have expired.

With regard to the unexpired Licensed Copyrights and Licensed Patents of the G.729 Consortium Patent License Agreement, the Licensors of the G.729 Consortium, namely Orange SA, Nippon Telegraph and Telephone Corporation and Université de Sherbrooke (“Licensors”) have agreed to license the same under the existing terms on a royalty-free basis starting January 1, 2017.

For current Licensees of the G.729 Consortium Patent License Agreement, no reports and no payments will be due for Licensed Products Sold or otherwise distributed as of January 1, 2017.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agoFixed to use local python3-package.mk
Mazi Lo [Tue, 23 Jan 2018 13:22:52 +0000 (08:22 -0500)]
Fixed to use local python3-package.mk

Signed-off-by: Mazi Lo <openwrt.forum.mazilo@recursor.net>
6 years agoMerge pull request #248 from micmac1/master-mirror-hash-jiri
Jiri Slachta [Mon, 22 Jan 2018 18:56:42 +0000 (19:56 +0100)]
Merge pull request #248 from micmac1/master-mirror-hash-jiri

Add PKG_MIRROR_HASH pt. 2

6 years agoMerge pull request #249 from micmac1/import-sipgrep-and-sngrep
micmac1 [Sun, 21 Jan 2018 18:00:27 +0000 (19:00 +0100)]
Merge pull request #249 from micmac1/import-sipgrep-and-sngrep

Import sipgrep and sngrep

6 years agosngrep: version bump 249/head
Sebastian Kemper [Sun, 21 Jan 2018 17:48:01 +0000 (18:48 +0100)]
sngrep: version bump

- use upstream release tarball instead of git checkout
- update to recently released version 1.4.5

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agosngrep: install /etc/sngreprc
Sebastian Kemper [Sun, 21 Jan 2018 17:46:54 +0000 (18:46 +0100)]
sngrep: install /etc/sngreprc

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agosngrep: add some features
Sebastian Kemper [Sun, 21 Jan 2018 17:44:59 +0000 (18:44 +0100)]
sngrep: add some features

This commit enables support for:

  - IPv6
  - Homer export
  - TLS

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agosngrep: update descriptions
Sebastian Kemper [Sun, 21 Jan 2018 17:42:00 +0000 (18:42 +0100)]
sngrep: update descriptions

- move the package to Utilities/Telephony
- title/description shamelessly copied from Debian

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agosngrep: move binary to /usr/bin
Sebastian Kemper [Sun, 21 Jan 2018 17:39:56 +0000 (18:39 +0100)]
sngrep: move binary to /usr/bin

- added PKG_INSTALL
- upstream puts the binary into /usr/bin, now OpenWrt does the same

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agosngrep: update maintainer and copyright messages
Sebastian Kemper [Sun, 21 Jan 2018 17:37:52 +0000 (18:37 +0100)]
sngrep: update maintainer and copyright messages

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agosngrep: import from openwrt/packages
Sebastian Kemper [Sun, 21 Jan 2018 17:19:34 +0000 (18:19 +0100)]
sngrep: import from openwrt/packages

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agosipgrep: update PKG_VERSION
Sebastian Kemper [Sun, 21 Jan 2018 17:16:01 +0000 (18:16 +0100)]
sipgrep: update PKG_VERSION

The source does not change, but reflect the real version (2.2.1) in
PKG_VERSION. Also move from gz to xz to shave off a few Bytes.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agosipgrep: drop ncurses dependency, add ipv6 support
Sebastian Kemper [Sun, 21 Jan 2018 17:12:42 +0000 (18:12 +0100)]
sipgrep: drop ncurses dependency, add ipv6 support

Following Debian's example, keeping it lean and mean.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agosipgrep: update descriptions
Sebastian Kemper [Sun, 21 Jan 2018 17:09:29 +0000 (18:09 +0100)]
sipgrep: update descriptions

- move the package to Utilities/Telephony
- title/description shamelessly copied from Debian

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agosipgrep: move binary to /usr/bin
Sebastian Kemper [Sun, 21 Jan 2018 17:03:07 +0000 (18:03 +0100)]
sipgrep: move binary to /usr/bin

- added PKG_INSTALL
- upstream puts the binary into /usr/bin, now OpenWrt does the same

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agosipgrep: update maintainer and copyright messages
Sebastian Kemper [Sun, 21 Jan 2018 16:58:36 +0000 (17:58 +0100)]
sipgrep: update maintainer and copyright messages

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