Commit graph

1286 commits

Author SHA1 Message Date
Sebastian Kemper
e0feb012ad 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>
2020-07-20 20:46:24 +02:00
Rosen Penev
73ed049c1a
sixproxd: fix compilation with GCC 10
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-19 14:55:29 -07:00
Sebastian Kemper
ece4d54d62 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>
2020-07-15 20:35:14 +02:00
Sebastian Kemper
7804977215 sipgrep: make IPv6 support depend on CONFIG_IPV6
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-07-15 20:35:00 +02:00
Sebastian Kemper
edbeb1b9a3 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>
2020-06-11 19:27:51 +02:00
micmac1
ea6d48b680
Merge pull request #538 from micmac1/fs-check
freeswitch: prevent libcheck use
2020-06-10 20:21:45 +02:00
Sebastian Kemper
9710018e41 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>
2020-06-09 18:56:31 +02:00
Sebastian Kemper
9b0e13700a 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>
2020-06-09 18:46:39 +02:00
micmac1
ab2f142730
Merge pull request #534 from micmac1/fs_rename
freeswitch-stable: rename to freeswitch
2020-05-30 07:09:33 +02:00
Jiri Slachta
8765715d80
Merge pull request #531 from micmac1/ast16100
asterisk-16.x: bump to 16.10.0 + init/config changes
2020-05-24 21:04:29 +02:00
Sebastian Kemper
df5338fffb freeswitch-stable-mod-bcg729: rename
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-23 20:02:21 +02:00
Sebastian Kemper
b282a782ce freeswitch-stable-mod-bcg729: move folder
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-23 20:00:18 +02:00
Sebastian Kemper
e3b3dce36e freeswitch-stable: rename to just freeswitch
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-23 19:55:50 +02:00
Sebastian Kemper
b7ada77e17 freeswitch-stable: move folder
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-23 19:46:12 +02:00
Sebastian Kemper
7a5e32f4dc 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>
2020-05-21 17:40:45 +02:00
Sebastian Kemper
aa54d6f005 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>
2020-05-21 17:38:21 +02:00
Sebastian Kemper
e4f1bac168 rtpengine: prevent use of host dpkg utilities
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-17 12:56:01 +02:00
Sebastian Kemper
b3e439a903 rtpengine: prevent picking up host libsystemd
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-17 12:52:29 +02:00
Sebastian Kemper
985365c3f2 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>
2020-05-16 21:00:25 +02:00
Sebastian Kemper
e44fb87cc7 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>
2020-05-14 21:56:52 +02:00
Sebastian Kemper
54d0fb32eb 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>
2020-05-14 21:48:45 +02:00
Sebastian Kemper
439cff8707 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>
2020-05-13 18:27:43 +02:00
Sebastian Kemper
55a6e9f583 freeswitch-stable: bump to 1.10.3
Patches refreshed. Two patches can be dropped.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-12 18:45:54 +02:00
micmac1
7408b6245f
Merge pull request #528 from micmac1/fs-init2
freeswitch-stable: improve init script
2020-05-12 18:40:38 +02:00
micmac1
1929fee28d
Merge pull request #526 from micmac1/rtpengine
rtpengine: new package
2020-05-06 19:09:24 +02:00
Sebastian Kemper
ff67aa6f79 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>
2020-05-04 20:01:01 +02:00
Sebastian Kemper
d3df6110c8 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>
2020-05-04 19:26:41 +02:00
Sebastian Kemper
18ab4c3987 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>
2020-04-24 21:09:25 +02:00
Sebastian Kemper
c09085b076 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>
2020-04-22 18:29:43 +02:00
Sebastian Kemper
60ea8ff676 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>
2020-04-22 18:29:43 +02:00
Jiri Slachta
3c7e4c382e 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>
2020-04-09 18:00:49 +02:00
Sebastian Kemper
0c9dbc341c 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>
2020-04-04 11:27:55 +02:00
Hannu Nyman
0dfeff844c 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>
2020-03-21 21:51:19 +02:00
Sebastian Kemper
9e16abbcde 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>
2020-03-21 09:44:51 +01:00
Sebastian Kemper
9cff8aecfd 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>
2020-03-07 09:58:26 +01:00
Sebastian Kemper
357949967f 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>
2020-01-11 23:44:40 +01:00
Sebastian Kemper
e2bd729545 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>
2020-01-01 15:11:22 +01:00
Sebastian Kemper
b372ae6847 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>
2019-12-20 09:38:06 +01:00
Sebastian Kemper
1e97ec344a 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>
2019-12-17 18:50:11 +01:00
Sebastian Kemper
c02a6fa325 sngrep: add configuration menu
Makes ipv6, pcre and eep optional. Defaults unchanged.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-03 13:42:28 +01:00
Sebastian Kemper
8aa5832961 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>
2019-12-03 13:37:43 +01:00
Jiri Slachta
fc9aa2b3ea
Merge pull request #487 from micmac1/AST-2019-006_007
[master] asterisk-16.x: add fixes for AST-2019-006 and 007
2019-12-01 22:22:10 +01:00
Sebastian Kemper
4204b2755b freeswitch-stable: patch CVEs in included libvpx
Patch taken from Debian Buster, fixes:

CVE-2019-9232
CVE-2019-9325
CVE-2019-9371
CVE-2019-9433

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-11-29 20:33:57 +01:00
Sebastian Kemper
7e41004b1e asterisk-16.x: add fixes for AST-2019-006 and 007
https://downloads.asterisk.org/pub/security/AST-2019-006.html
https://downloads.asterisk.org/pub/security/AST-2019-007.html

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-11-22 18:03:54 +01:00
Sebastian Kemper
e1b0371bcc freeswitch-stable: update OpenSSL depend
FS supports OpenSSL 1.1 but still relies on some of its deprecated
symbols. This commit updates the package's depends to reflect that.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-11-05 23:29:40 +01:00
Sebastian Kemper
b8fe35e965 freeswitch-stable: fix reINVITE after T38 is rejected
For comments see added patch.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-11-05 23:27:28 +01:00
Sebastian Kemper
c2bfc7145f asterisk-16.x: remove libxml2 hacks
There were problems in the past with OpenWrt's libxml2 package (also
it's host package). This led to quite a few workarounds in the asterisk
Makefile.

Recent changes in the libxml2 package have cleared this up.

1. a proper xml2-config file is now installed by both libxml2 and
   libxml2/host
2. xml2-config is now installed with a host triplet prefix (e.g.
   "mips-openwrt-linux-xml2-config" for libxml2 and
   "x86_64-pc-linux-gnu-xml2-config" for libxml2/host), additionally
   these tools get a symbolic link to xml2-config

That means that now OpenWrt's libxml2 can be properly detected and the
workarounds are no longer required.

This commit also removes an explicit dependency on libxml2 from
res-calendar-caldav. The base package already depends on libxml2, hence
the dependency is implicit.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-28 20:40:05 +01:00
Sebastian Kemper
cb2986c56a kamailio-5.x: remove rtp_media_server package
menuconfig is currently showing warnings for kamailio:

WARNING: Makefile 'package/feeds/telephony/kamailio-5.x/Makefile' has a dependency on 'bcunit', which does not exist
WARNING: Makefile 'package/feeds/telephony/kamailio-5.x/Makefile' has a dependency on 'mediastreamer2', which does not exist
WARNING: Makefile 'package/feeds/telephony/kamailio-5.x/Makefile' has a dependency on 'ortp', which does not exist

This commit removes the module in question to clear the warnings.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-25 20:21:32 +02:00
Jiri Slachta
354bc0ce32
Merge pull request #480 from micmac1/kam-mods
kamailio-5.x: add new modules + cleanup
2019-10-24 23:27:01 +02:00
Jiri Slachta
eb0cc5d07d
Merge pull request #478 from jslachta/asterisk-16.6.1
asterisk-16.x: version bump to 16.6.1
2019-10-24 22:34:18 +02:00
Sebastian Kemper
6b571fb4dd kamailio-5.x: add new modules + cleanup
From upstream release notes:

Six new modules:

 - app_lua_sr – old Lua API before introduction of KEMI
 - lost – HELD (RFC6155) and LOST (RFC5222) location-based routing
 - kemix – KEMI specific extensions
 - rtp_media_server – embedded RTP and media processing
   functionalities for Kamailio (like playing media or bridging in a
   B2BUA manner, includes support for different codecs, including Opus)
 - secfilter – filters to allow/block using whitelists/blacklist based
   on user agents, IP addresses, countries, domains and users
 - xhttp_prom – generates suitable metrics for a Prometheus monitoring
   platform, answering to Prometheus pull requests

Additionally this removes libxml2 dependency from modules, because base
kamailio package already depends on it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-24 22:33:29 +02:00
Jiri Slachta
498baa74a7
Merge pull request #477 from jslachta/kamailio-5.3
kamailio-5.x: version bump to 5.3.0
2019-10-24 07:10:27 +02:00
Jiri Slachta
fc68138d42 baresip: add VP8 and VP9 module
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2019-10-24 07:06:15 +02:00
Jiri Slachta
3fd4eed6a2 asterisk-16.x: version bump to 16.6.1
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2019-10-22 23:56:12 +02:00
Jiri Slachta
eb94148d8b kamailio-5.x: version bump to 5.3.0
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2019-10-22 23:52:56 +02:00
Jiri Slachta
649c1f7be1
Merge pull request #472 from micmac1/ast166
asterisk-16.x: bump to 16.6.0
2019-10-16 15:45:04 +02:00
Jiri Slachta
99743ded71
Merge pull request #473 from micmac1/kam5.2.5
kamailio-5.x: bump to 5.2.5
2019-10-16 15:40:31 +02:00
Jiri Slachta
ab5559e1cd
Merge pull request #475 from micmac1/bsip-up
baresip suite: update to 0.6.4
2019-10-16 15:33:15 +02:00
Jiri Slachta
cbc297a611
Merge pull request #464 from micmac1/rtpp-rtp-crypto-setup
rtpproxy: fix RTP crypto setup
2019-10-16 15:32:48 +02:00
Sebastian Kemper
5c8923713b restund: allow parallel build
Adds "PKG_BUILD_PARALLEL:=1".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-13 19:04:52 +02:00
Sebastian Kemper
bd067eba35 baresip: bump to 0.6.4
- adds "PKG_BUILD_PARALLEL:=1" for parallel builds
- refreshes patch

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-13 19:03:07 +02:00
Sebastian Kemper
5a28d7c65b kamailio-5.x: bump to 5.2.5
Minor version bump.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-11 18:20:56 +02:00
Sebastian Kemper
d9b06a0b21 asterisk-16.x: bump to 16.6.0
Also adds two new modules, app-attended-transfer and app-blind-transfer.
Patches refreshed, the ones that are part of the source tarball are
dropped.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-11 18:17:41 +02:00
Sebastian Kemper
af47baec2e pcapsipdump: fix missing libbsd depend
When libbsd is available in staging it will be picked up by pcapsipdump
during the compile. The binary will link to libbsd, causing an
additional dependency. Currently the builds on the bots are failing
because of this.

The only function pcapsipdump is using from libbsd is strlcpy(). This
function is also provided by uClibc as well as musl.

Attached patch adds a detection mechanism that checks whether libc
provides strlcpy(). This way the dependency on libbsd is only required if
building against a libc which doesn't package strlcpy(), like glibc.
DEPENDS are updated to reflect that.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-09 19:44:17 +02:00
Jiri Slachta
0675bd3b2a
Merge pull request #467 from micmac1/sipp-up
sipp: bump to 3.6.0
2019-10-07 23:09:33 +02:00
Sebastian Kemper
33d376d15e pcapsipdump: update to trunk snapshot
The last official release is quite old. But pcapsipdump's trunk has seen
a steady stream of fixes and improvements. This commit updates the
package to a current SVN snapshot.

MAKE_FLAGS is simplified. The deleted ARGS are provided by OpenWrt
buildroot, no need to specify them again. All that is needed is LIBS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-07 20:31:40 +02:00
Sebastian Kemper
acf3218ef9 sipp: bump to 3.6.0
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-05 17:38:55 +02:00
Sebastian Kemper
574ff7f824 sipgrep: update snapshot
Update snapshot to latest. Includes a fix for a memory leak.

Version handling changed to use PKG_SOURCE_DATE and PKG_SOURCE_VERSION
as per OpenWrt package policies [1].

PKG_BUILD_PARALLEL:=1 added.

[1] https://openwrt.org/docs/guide-developer/package-policies

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-05 15:57:55 +02:00
Sebastian Kemper
20da222b60 rtpproxy: fix RTP crypto setup
Compile fails when both libsrtp and libsrtp2 are available. Patch sent
upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-05 10:20:29 +02:00
John Crispin
e4b9a8aebe
Merge pull request #462 from micmac1/rtpp-up
rtpproxy: update to current snapshot
2019-10-02 22:20:38 +02:00
Jiri Slachta
cf37093342
Merge pull request #459 from micmac1/ast16-conf
asterisk-16.x: amend config file handling
2019-10-02 21:30:51 +02:00
Jiri Slachta
08175bec97
Merge pull request #461 from micmac1/kam5-update
kamailio-5.x: update to 5.2.4
2019-10-02 21:30:12 +02:00
Sebastian Kemper
6280803f1c rtpproxy: update to current snapshot
Upstream accepted OpenWrt patches, so most can be removed.

Other changes:

- version handling changed to use PKG_SOURCE_DATE and PKG_SOURCE_VERSION
  as per OpenWrt package policies [1]
- ./files/rtpproxy.config renamed to ./files/rtpproxy.conf also as per
  OpenWrt package policies [1]
- no longer needed Makefile variables dropped (PKG_SOURCE_SUBDIR etc.)
- PKG_CHECK_FORMAT_SECURITY:=0 dropped, patch for that upstreamed as
  well
- PKG_BUILD_PARALLEL:=1 added
- PKG_LICENSE_FILES updated
- dropped bcg729 deactivation hack (fixed by adding bcg729 pkg-config
  file in other commit)
- dependency on libatomic now required
- updated rtpproxy-mod-acct-csv TITLE
- added --without-xsltproc to CONFIGURE_ARGS to prevent build failure
- added new module rtpproxy-mod-acct-rtcp-hep
- added utilities extractaudio and makeann
- updated patch to prevent debug build of rtpp_acct_rtcp_hep

[1] https://openwrt.org/docs/guide-developer/package-policies

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-02 21:22:47 +02:00
Sebastian Kemper
ca70f0bd4f kamailio-5.x: update to 5.2.4
Minor version bump.

Also renamed ./files/kamailio.config to ./files/kamailio.conf as per
OpenWrt package policies [1].

One patch refreshed.

[1] https://openwrt.org/docs/guide-developer/package-policies

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-02 21:10:24 +02:00
Sebastian Kemper
418cd882ed net/freeswitch-stable: remove old warning
This warning is not relevant anymore.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-02 21:03:27 +02:00
Sebastian Kemper
87eeb0c2a7 asterisk-16.x: amend config file handling
Use $(INSTALL_CONF) instead of $(CP) for module configuration files.
$(INSTALL_CONF) is already used for the init script and utility
configuration  files

Rename ./files/asterisk.config to ./files/asterisk.conf as per OpenWrt
package policies page [1].

[1] https://openwrt.org/docs/guide-developer/package-policies

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-02 20:56:04 +02:00
Sebastian Kemper
0b98458466 asterisk-16.x: add patch for AST-2019-004
Add patch for a remote crash vulnerability. Crash can occur when
negotiating for T.38 with a declined stream.

CVE-2019-15297

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-09-05 19:42:43 +02:00
Sebastian Kemper
e868f592da freeswitch-stable: use qstrip
It's better to rely on qstrip than to look for certain quotes.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-08-31 19:53:15 +02:00
Sebastian Kemper
cabf89d917 freeswitch-stable: remove gratuitous symlinks
No need to copy the libfree{switch,tdm}.so symlinks into the packages.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-08-31 19:26:06 +02:00
Sebastian Kemper
86da9c2787 freeswitch-stable: rename configuration file
As per convention the configuration file in the files directory should
carry the extension .conf.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-08-31 19:24:53 +02:00
Sebastian Kemper
33ee0bd1dd freeswitch-stable: rename some patches
Some patches don't carry the extension .patch. This fixes that.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-08-31 19:23:50 +02:00
Sebastian Kemper
b821bb77d2 freeswitch-stable: bump to 1.10.1
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-08-20 23:01:48 +02:00
Sebastian Kemper
56ffb86f2a freeswitch-stable: workaround libvpx compile issue
The bundled libvpx got updated and now includes some extra tools. But
the linker is fed with some options it doesn't like, which results in
this:

/builder/shared-workdir/build/sdk/staging_dir/toolchain-x86_64_gcc-7.4.0_musl/bin/x86_64-openwrt-linux-musl-ld: unrecognized option '-Wl,-rpath-link=/builder/shared-workdir/build/sdk/staging_dir/target-x86_64_musl/usr/lib/libiconv-stub/lib'
/builder/shared-workdir/build/sdk/staging_dir/toolchain-x86_64_gcc-7.4.0_musl/bin/x86_64-openwrt-linux-musl-ld: use the --help option for usage information
/builder/shared-workdir/build/sdk/build_dir/target-x86_64_musl/freeswitch-1.10.0.-release/libs/libvpx/tools.mk:52: recipe for target 'tools/tiny_ssim' failed
make[6]: *** [tools/tiny_ssim] Error 1

freeswitch doesn't need these tools, it just needs the library, so this
commit just disables them.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-08-18 12:01:21 +02:00
Sebastian Kemper
2cba38dbaf freeswitch-stable: add utility fs_tts
Utility not usable right now because it has run-time deps on plugins for
TTS, which we don't have currently. But the utility is built by default,
so package it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-08-18 11:58:22 +02:00
Sebastian Kemper
60266dc665 freeswitch-stable: upgrade to version 1.10.0
- PostgreSQL is a module now, it's no longer in the core. This commit
  removes the related options.

- New modules: mod_mariadb and mod_pgsql. The latter cannot be compiled
  against uclibcpp because of a missing header ("unordered_map").

- Fixed a typo in the eval line for mod_mp4v.

- Refreshed patches.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-08-16 20:36:18 +02:00
Sebastian Kemper
26b5e510c0 asterisk-16.x-chan-lantiq: update snapshot
@arnysch pointed out on openwrt-devel that chan-lantiq fails to build
against kernel 4.19.x. He already fixed this upstream, so we can just
bump the snapshot to get chan-lantiq to compile again.

This also means that we can remove the malloc/free patch as it is
included upstream as well.

Finally, Build/Prepare and the file "default.exports" can be dropped as
the file got included upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-08-04 11:51:17 +02:00
Diederik de Groot
6854ea6fd6
Update to v4.3.2-epsilon (20190730) 2019-07-31 21:37:35 +02:00
micmac1
9b90b9ea78 asterisk-16.x: update init to procd (#421)
Converts the init script to procd. The user "asterisk" is added to the
system. This user will be used by default.

The init script no longer extracts its configuration from
"/etc/default/asterisk". Instead the uci configuration
"/etc/config/asterisk" is introduced.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-07-25 09:33:06 +02:00
Sebastian Kemper
9f25a29839 asterisk-16.x: upgrade pbx-lua dep to liblua5.3
Recently liblua5.3 was added in the base repo. When both default liblua
and liblua5.3 are staged, asterisk will prefer the latter. But then the
dependency is wrong, because the linked-to lib is in liblua5.3.

This commit upgrades the dependency from liblua to liblua5.3.

Resolves #441.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-07-19 21:32:30 +02:00
Jiri Slachta
2b6907b05e asterisk-13.x: move package to abandoned packages
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2019-07-14 19:25:59 +02:00
Sebastian Kemper
de9edc8e39 asterisk-16.x: fix AST-2019-002 & AST-2019-003
https://downloads.asterisk.org/pub/security/AST-2019-002.html
https://downloads.asterisk.org/pub/security/AST-2019-003.html

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-07-12 20:50:35 +02:00
Sebastian Kemper
671b699a3b asterisk-13.x: fix AST-2019-002 & AST-2019-003
https://downloads.asterisk.org/pub/security/AST-2019-002.html
https://downloads.asterisk.org/pub/security/AST-2019-003.html

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-07-12 20:49:30 +02:00
Sebastian Kemper
7a699fa3fb freeswitch-stable: bump to 1.8.7
Version bump. Patches refreshed. Upstreamed patches removed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-07-07 18:07:52 +02:00
Sebastian Kemper
5ecd8b43a5 baresip: fix recursive dependency
Since OpenWrt commit e82a4d9cfb ("config: regenerate *_shipped sources")
a few recursive dependencies have been discovered that were not visible
before.

$ make menuconfig
tmp/.config-package.in:103098:error: recursive dependency detected!
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
tmp/.config-package.in:103098: symbol PACKAGE_baresip-mod-pulse depends on PACKAGE_baresip-mod-pulse
tmp/.config-package.in:121863:error: recursive dependency detected!
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
tmp/.config-package.in:121863: symbol PACKAGE_pulseaudio-profiles depends on PACKAGE_pulseaudio-profiles
tmp/.config-package.in:121878:error: recursive dependency detected!
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
tmp/.config-package.in:121878: symbol PACKAGE_pulseaudio-tools depends on PACKAGE_pulseaudio-tools

The recursive dependencies were reported at [1] and [2].

This commit addresses the recursive dependency of baresip-mod-pulse. The
new dependency string may look a bit peculiar, but it works and when
specified like this pulseaudio (when selected) doesn't get compiled
automatically when the intention is only to build baresip with mod-pulse
disabled (which in general is why we have the "patsubst" in the module
builder - but this is only triggered when the dependency has a leading
"+").

[1] https://github.com/openwrt/packages/issues/9300
[2] https://forum.openwrt.org/t/make-menuconfig-errors-this-day/38673/5

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-06-26 22:16:10 +02:00
Sebastian Kemper
e3f1b7b959 asterisk-16.x: remove chan-phone
The telephony headers [1] were removed from the kernel, so the Asterisk
channel driver chan-phone can not be built anymore (it depends on these
headers). This causes failures on the build bots on targets which use
kernel 4.19.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-06-20 22:18:58 +02:00
Sebastian Kemper
3c2a22a36a asterisk-13.x: remove chan-phone
The telephony headers [1] were removed from the kernel, so the Asterisk
channel driver chan-phone can not be built anymore (it depends on these
headers). This causes failures on the build bots on targets which use
kernel 4.19.

This commit removes chan-phone.

[1] c26dd817d9

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-06-20 22:18:18 +02:00
Jiri Slachta
6381da204b freeswitch: move to packages-abandoned repository
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2019-06-16 12:53:51 +02:00
Sebastian Kemper
0d4bfdaf68 freeswitch-stable: bump to 1.8.6
- refresh patches
- drop RAND_bytes patch which was upstreamed
- fix ei_init detection
- add opusfile module

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-06-10 14:44:31 +02:00
Sebastian Kemper
1c2023bad2 freeswitch-stable: init script update
- added trailing '--' to logger to make it foolproof
- the script now checks if user and group exist
- directory creation is now done via awk script (more robust)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-05-12 13:57:56 +02:00
Sebastian Kemper
31ede68aac asterisk-chan-sccp: fix gcc8 compiles
Patch applied upstream. Fixes compiles for arc targets, which already
use new gcc8 toolchain.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-05-08 20:15:40 +02:00
Jiri Slachta
4d73f675bd
Merge pull request #422 from micmac1/ast16-mod-desc
asterisk-16.x: update module descriptions
2019-05-06 20:53:25 +02:00
Jiri Slachta
cf51b9b0ff asterisk-15.x: drop support for asterisk-15.x
This commit drops support for asterisk-15.x in favor
of asterisk-16.x.

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2019-05-05 22:10:53 +02:00
Sebastian Kemper
08a96465f0 asterisk-16.x-chan-lantiq: add compile fix
Patch from upstream pull request
(https://github.com/kochstefan/asterisk_channel_lantiq/pull/3).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-05-04 22:35:05 +02:00
Jiri Slachta
b28098eae8
Merge pull request #423 from micmac1/ast16-semaphores
asterisk-16.x: disable semaphores only on uClibc
2019-05-04 07:47:50 +02:00
Jiri Slachta
46b58619b2
Merge pull request #417 from micmac1/ast16-add2
Asterisk 16 additions II
2019-05-02 12:01:13 +02:00
Andre Heider
a669566e1b asterisk-opus: add variant for asterisk 16
Signed-off-by: Andre Heider <a.heider@gmail.com>
2019-05-02 10:53:12 +02:00
Andre Heider
2a87b37fb3 asterisk-g72x: add variant for asterisk 16
Signed-off-by: Andre Heider <a.heider@gmail.com>
2019-05-02 10:53:12 +02:00
Sebastian Kemper
63a8ad1755 asterisk-16.x: disable semaphores only on uClibc
The current patch disables semaphore use always. But musl and glibc
support semaphores. Only uClibc doesn't support them (the functions are
defined but just throw an error when called).

The patch is updated to allow Asterisk to use the system semaphores when
using anything but uClibc. It is also renamed to reflect that.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-05-01 20:52:08 +02:00
Sebastian Kemper
1de2464d5e asterisk-16.x: update module descriptions
The current module descriptions look a bit topsy-turvy.

This updates the BuildAsteriskModule macro to simply take any sentence
(without trying to integrate the input into another string). If the
input contains '\n' a line break is inserted.

The module descriptions were updated from menuselect-tree.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-05-01 20:32:51 +02:00
Jiri Slachta
5d9b1156cf
Merge pull request #411 from micmac1/ast16
asterisk-16: new package
2019-05-01 11:43:22 +02:00
Sebastian Kemper
6cdf80bd46 asterisk-16.x: add Asterisk 16
Initial commit of Asterisk 16. Cleans up Makefile; the version number
now only occurs once in it.

Upstream removed the following modules:

  - format_jpeg
  - res_pjsip_registrar_expire (functionality was moved into
    res_pjsip_registrar.)

pjsip has a new dependency, res-http-websocket.

Notes:

  - replaced res_ninit patch

    Replaced patch with the one from Alpine. It's a bit more flexible and
    allows usage of res_ninit where available (when building against
    glibc).

  - fixed musl compiles

    astmm.h now always gets included by asterisk.h, redefining allocators.
    This causes breakage on musl:

    ccache_cc -o chan_pjsip.o -c chan_pjsip.c -MD -MT chan_pjsip.o -MF .chan_pjsip.o.d -MP -pthread -I/home/sk/tmp/openwrt/build_dir/target-mips_24kc_musl/asterisk-16.2.1/include -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap/home/sk/tmp/openwrt/build_dir/target-mips_24kc_musl/asterisk-16.2.1:asterisk-16.2.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/lib/libiconv-stub/include -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/lib/libintl-stub/include -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/include -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/include -I/home/sk/tmp/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/usr/include -I/home/sk/tmp/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/include/fortify -I/home/sk/tmp/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/include -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/lib/libiconv-stub/include -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/lib/libintl-stub/include    -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/include/libxml2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations       -fPIC -DAST_MODULE=\"chan_pjsip\" -DAST_MODULE_SELF_SYM=__internal_chan_pjsip_self  -DPJ_AUTOCONF=1 -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0 -fPIC -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/include
    In file included from /home/sk/tmp/openwrt/build_dir/target-mips_24kc_musl/asterisk-16.2.1/include/asterisk.h:23:0,
                     from chan_pjsip.c:35:
    /home/sk/tmp/openwrt/build_dir/target-mips_24kc_musl/asterisk-16.2.1/include/asterisk/astmm.h:158:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '->' token
      Do_not_use_calloc__use_ast_calloc->fail(a, b)
                                       ^
    /home/sk/tmp/openwrt/build_dir/target-mips_24kc_musl/asterisk-16.2.1/include/asterisk/astmm.h:162:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before '->' token
      Do_not_use_free__use_ast_free_or_ast_std_free_for_remotely_allocated_memory->fail(a)
                                                                                 ^
    make[4]: *** [/home/sk/tmp/openwrt/build_dir/target-mips_24kc_musl/asterisk-16.2.1/Makefile.rules:153: chan_pjsip.o] Error 1

    The problem is that with _GNU_SOURCE defined musl also declares calloc in
    <sched.h> - and when asterisk's source includes <sched.h> _after_
    "asterisk/astmm.h" the definition clashes with the macro. Timo Teräs from
    Alpine Linux fixed this by including <pthread.h> in "asterisk/compat.h". He
    chose to include <pthread.h> instead of <sched.h> because the original
    header inclusion chain seems to be "asterisk/astobj2.h" ->
    "asterisk/lock.h" -> <pthread.h> -> <sched.h>. It seems Asterisk
    practically never includes <sched.h> directly.

  - added loader workaround for musl

    When the modules are loaded, asterisk segfaults on musl.

       Asterisk Dynamic Loader Starting:
      [Mar  2 22:30:05] NOTICE[20712]: loader.c:2230 load_modules: 91 modules will be loaded.
      Segmentation fault

      [48817.544248] do_page_fault(): sending SIGSEGV to asterisk for invalid read access from 00000000
      [48817.544258] epc = 77f6b764 in libc.so[77ef8000+94000]
      [48817.544285] ra  = 0048d579 in asterisk[400000+160000]

    The real problem is that the loader expects dlopen to always run the
    constructor, which doesn't happen with musl, because its dlopen is
    permanent.

    This commit adds a new configure switch '--enable-permanent-dlopen'.
    When enabled, the loader will manually call 'ast_module_register(...)'
    and 'ast_module_unregister(...)' when needed.

  - allow eventfd detection

    Asterisk 16 wants to use eventfd, but it doesn't allow the detection
    during cross-compiling. This results in runtime warnings, for instance
    when shutting down:

      [Mar  2 22:37:41] WARNING[21593]: alertpipe.c:112 ast_alertpipe_read: read() failed: Bad file descriptor
      [Mar  2 22:37:41] WARNING[21593]: alertpipe.c:112 ast_alertpipe_read: read() failed: Bad file descriptor
      [Mar  2 22:37:41] WARNING[21593]: alertpipe.c:112 ast_alertpipe_read: read() failed: Bad file descriptor

    Relax the configure script so that eventfd can also be detected when
    cross-compiling.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-05-01 11:29:49 +02:00
Sebastian Kemper
df294447b1 baresip: update to 0.6.2
- echo module is now built by default
- natbd, v4l, x264 don't exist anymore

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:28:30 +02:00
Sebastian Kemper
5c29fde85c baresip: update default config
This adds two (three, really) sed scripts to update the default
configuration. All example accounts are getting disabled/commented. And
the module_path is set to the actual path.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:24:11 +02:00
Sebastian Kemper
a878514513 baresip: amend file permissions
The files in /usr/share/baresip are all read-only anyway, so
INSTALL_DATA can be used.

Use it as well for the included (default) modules, otherwise they'll
have different permissions than the extra modules.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:21:39 +02:00
Sebastian Kemper
c6509afd2b baresip: rely on procd for shutdown
No need to stop baresip manually. Just let procd handle it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:18:56 +02:00
Sebastian Kemper
0eb7795080 baresip: do not disable on upgrade
It is not a nice user experience when a package changes configuration
files during an upgrade. Remove this from the postinstall routine.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:17:38 +02:00
Sebastian Kemper
f45be8a154 baresip: disable ffmpeg support on i386
The ffmpeg full variant does not compile on i386_pentium currently.
Disable ffmpeg support on i386 to prevent breakage on the buildbots.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:15:21 +02:00
Sebastian Kemper
6979664769 restund: do not disable on upgrade
It is not a nice user experience when a package changes configuration
files during an upgrade. Remove this from the postinstall routine.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:12:39 +02:00
Sebastian Kemper
8fefafee3c restund: rely on procd for shutdown
No need to stop restund manually. Just let procd handle it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:10:21 +02:00
Sebastian Kemper
8ba0019419 freeswitch-stable: disable mod_av on i386
The ffmpeg full variant does not compile on i386_pentium currently.
Disable mod_av on i386 to prevent breakage on the buildbots.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 12:29:28 +02:00
Sebastian Kemper
787112019c freeswitch-stable: fix gcc8 warnings
Add two patches that were submitted upstream to address warnings that
occur when using gcc 8.3 (like arc does currently) which turn into
errors (-Werror).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-14 19:48:17 +02:00
Sebastian Kemper
d7e221b85f asterisk-chan-lantiq: add asterisk 16 variant
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-13 23:14:49 +02:00
Sebastian Kemper
a8e53cec30 asterisk-chan-sccp: add missing deps
Without these modules chan-sccp will not load.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-13 23:04:29 +02:00
Sebastian Kemper
3856c4e401 asterisk-chan-sccp: add asterisk 16 variant
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-13 23:01:38 +02:00
Sebastian Kemper
e3c95cfc3f asterisk-chan-sccp: update snapshot
Update snapshot to include fixes for Asterisk 16.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-13 22:55:37 +02:00
Sebastian Kemper
4fdcd74dd5 asterisk-chan-dongle: add asterisk 16 variant
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-13 22:53:18 +02:00
Sebastian Kemper
a0549eab4a kamailio-5.x: update hiredis patch
The libhiredis package now contais a fix for its pkgconfig file. This
allows to add prefixes, which is needed when cross-compiling in
environments like OpenWrt.

Therefore, the workaround in kamailio is no longer needed and can be
removed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-13 13:03:15 +02:00
Sebastian Kemper
97c00a118c asterisk-15.x: add patch for AST-2019-001
Remote crash vulnerability with SDP protocol violation.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-03-19 10:22:58 +01:00
Sebastian Kemper
abbbdaa596 freeswitch-stable: bump to 1.8.5
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-02-15 21:51:20 +01:00
Sebastian Kemper
1cdf2c2e25 freeswitch-stable: fix implicit declaration error
Since the update to openssl-1.1.1a the compile fails like this:

  CC       src/libfreeswitch_la-switch_rtp.lo
src/switch_rtp.c: In function 'switch_rtp_get_random':
src/switch_rtp.c:2419:2: error: implicit declaration of function 'RAND_bytes'; did you mean 'RSA_bits'? [-Werror=implicit-function-declaration]
  RAND_bytes(buf, len);
  ^~~~~~~~~~
  RSA_bits
cc1: all warnings being treated as errors
make[4]: *** [Makefile:2377: src/libfreeswitch_la-switch_rtp.lo] Error 1

This patch adds the missing include.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-02-15 21:48:10 +01:00
Sebastian Kemper
c8d2019877 kamailio-5.x: bump to 5.2.1
- bump to 5.2.1
- drops sources.openwrt.org from PKG_SOURCE_URL because this mirror is
  meant as last resort
- adds six new modules (app_python3 marked @BROKEN - doesn't compile
  yet)
- 050-fix-kamailio-utils.patch refreshed. Alpine pushed a fix upstream
  that fixes the quoting issue, so this part could be dropped. I found
  some other issue with kamctl, where the prompt (for password) wasn't
  shown because OpenWrt doesn't have /dev/stderr. So I fixed that and
  added it to this patch as well. Sent upstream.
- hiredis handling was changed upstream. They changed the default
  include from "hiredis/hiredis.h" (which worked for us) to "hiredis.h".
  And the only way to get "hiredis/hiredis.h" is via pkg-config, which
  upstream doesn't allow during cross-compile, probably because hiredis
  pkg-config is rubbish. Patch added to forces pkg-config detection.
  Also includes a fix for a logical error in the Makefile regarding
  header setup. Sent upstream.
  Patch to fix hiredis pkg-config file sent upstream (also to OpenWrt
  package maintainer). Even without hiredis patch we can get away with
  forcing pkg-config detection of hiredis.
- dropped two patches that were upstreamed

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-01-20 10:47:47 +01:00
Sebastian Kemper
cc5ec58dbc kamailio-5.x: fix copyright
In a previous commit I updated the copyright message. But that was not
correct as I am not affiliated with OpenWrt. And I cannot change the
copyright message from a third party either. This commit reverts the
changes.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-01-20 10:21:24 +01:00
Jiri Slachta
dd1e954b2c
Merge pull request #400 from micmac1/bsip
baresip: update to 0.6.0
2019-01-05 09:45:17 +01:00
Jiri Slachta
1f164a50e7
Merge pull request #401 from micmac1/sccp
asterisk-chan-sccp: update to 4.3.1 snapshot
2019-01-05 09:44:00 +01:00
Jiri Slachta
b661f6a962
Merge pull request #402 from micmac1/g72x
asterisk-g72x: update to 1.4.3
2019-01-05 09:41:29 +01:00
Jiri Slachta
8c9c629971
Merge pull request #403 from micmac1/sipp
sipp: update to 3.5.2
2019-01-05 09:38:47 +01:00
Sebastian Kemper
f3408eee24 freeswitch-stable: bump to version 1.8.4
Includes crash-fix for mod_sofia from upstream, FS-11583.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-30 14:48:47 +01:00
Sebastian Kemper
651d6f6f05 sngrep: update to 1.4.6
Update to 1.4.6 and include two fixes from upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:39:48 +01:00
Sebastian Kemper
a4ec8dd40c sngrep: fix copyright
In a previous commit I updated the copyright message. But that was not
correct as I am not affiliated with OpenWrt. And I cannot change the
copyright message from a third party either. This commit reverts the
changes.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:37:13 +01:00
Sebastian Kemper
4589d07a81 sipp: update to 3.5.2
Drop patches for issues that were fixed upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:34:33 +01:00
Sebastian Kemper
b6a33bf8a3 sipp: fix copyright
In a previous commit I updated the copyright message. But that was not
correct as I am not affiliated with OpenWrt. This commit reverts the
change.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:33:16 +01:00
Sebastian Kemper
c17e67f9c8 asterisk-g72x: update to 1.4.3
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:30:02 +01:00
Sebastian Kemper
477249734d asterisk-chan-sccp: update to 4.3.1 snapshot
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:25:08 +01:00
Sebastian Kemper
5d2154edf3 asterisk-chan-sccp: fix copyright
In a previous commit I updated the copyright message. But that was not
correct as I am not affiliated with OpenWrt. This commit reverts the
change.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:23:04 +01:00
Sebastian Kemper
bfff639417 baresip: update to 0.6.0
Drops speex modules (removed upstream). Adds new modules b2bua, echo and
rtcpsummary.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:17:58 +01:00
Sebastian Kemper
3eeb450740 baresip: fix copyright
In a previous commit I updated the copyright message. But that was not
correct as I am not affiliated with OpenWrt. This commit reverts the
change.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:17:02 +01:00
Sebastian Kemper
fa6b2e6437 freeswitch-stable: fix copyright header
Maintainer is not affiliated with OpenWrt so copyright needs to be set
to maintainer instead of OpenWrt. Also correct the year - it should read
the year in which the Makefile was first written.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-22 22:54:22 +01:00
Sebastian Kemper
61681ed947 freeswitch-stable: remove OpenWrt mirror
sources.openwrt.org is used by the build system as a last-resort mirror.
It's not supposed to be used as a regular source mirror. Remove it from
PKG_SOURCE_URL.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-22 22:53:16 +01:00
Sebastian Kemper
7f01f54adc freeswitch-stable: bump to 1.8.3
Refresh patches + add patch to remove luajit detection, which was added
upstream for this release. luajit is available in OpenWrt, but seems to
always fail on the buildbots. To prevent surprises in the future disable
it for now.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-22 22:44:38 +01:00
Andre Heider
452b5d7d44 asterisk-13.x: update to 13.24.0
Update to the current 13.x release, see [0].

[0] http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-13-current

Signed-off-by: Andre Heider <a.heider@gmail.com>
2018-12-16 12:14:51 +01:00
Andre Heider
ef174dc928 asterisk-15.x: update to 15.7.0
Update to the current 15.x release, see [0].
Drop one merged patch and refresh the rest.

There's one new module, res_remb_modifier, add that as a new package.

[0] http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-15-current

Signed-off-by: Andre Heider <a.heider@gmail.com>
2018-12-16 12:14:51 +01:00
guidosarducci
aac5a6f843 siproxd: capture debug output in syslog
Although siproxd normally logs to syslog, it's debug output appears to go
only to stderr. Adjust procd setup to also capture stderr in syslog.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2018-12-08 16:53:08 -08:00
guidosarducci
aa2e7cdc3c siproxd: add OpenWrt siproxd wiki link to package info
This has the advantage of being available in the package catalog and
hence anytime both pre- and post-installation for someone looking for
information, using only the 'opkg info siproxd' command.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2018-12-08 16:51:33 -08:00
Sebastian Kemper
74adbc81a9 kamailio-5.x: fix hotplug script file name
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-02 12:28:21 +01:00
Sebastian Kemper
072d2ce320 rtpproxy: fix hotplug script file name
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-02 12:27:15 +01:00
Jiri Slachta
4395598a75
Merge pull request #385 from micmac1/rtpp
rtpproxy: update to procd and some brushing up
2018-11-15 15:59:26 +01:00
Jiri Slachta
5d299be0ef
Merge pull request #386 from micmac1/kam_procd
kamailio-5.x: update to procd, minor version bump
2018-11-15 15:58:06 +01:00
Jiri Slachta
d231db9e63
Merge pull request #389 from micmac1/bsip-x264
baresip: remove depend on libx264
2018-11-15 15:56:46 +01:00
Sebastian Kemper
2cc494b512 asterisk-15.x: add patch for AST-2018-010
Patch from upstream:

     Summary        Remote crash vulnerability DNS SRV and NAPTR lookups
Nature of Advisory  Denial Of Service
  Susceptibility    Remote Unauthenticated Sessions
     Severity       Moderate
  Exploits Known    No
    Reported On     October 23, 2018

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-14 21:35:13 +01:00
Sebastian Kemper
84bf41e139 freeswitch-stable: cleanup init script
- clean up variable names
 - add options to uci config to enable/disable logging
 - remove option change_perm as it's hacky
 - change check before mkdir and friends to prevent
   overwriting/chown/chmod of existing files/directories (important)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-12 22:35:49 +01:00
Sebastian Kemper
92bdfa634d freeswitch-stable: cleanup hotplug script
- clean up variable names
- replace pgrep with pidof
- remove LOG_WARN and use LOG_ERR instead

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-12 22:21:42 +01:00
Sebastian Kemper
0e4d42b262 freeswitch-stable: don't force disable on install
Don't force freeswitch to off during postinstall. It's not common
practice (anywhere) and it may be confusing.

Add a link to the Wiki, too, and bump the revision.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-12 22:06:55 +01:00
Sebastian Kemper
e730272a77 freeswitch-stable: move hotplug into main pkg
There is no point in keeping the hotplug script in an extra package.
Move it to the main package.

The priority of the script is changed from 99 to 90 as the freeswitch
init script uses the same.

The postinstall script will check if 99-freeswitch exists. If it does a
warning is displayed with the suggestion to uninstall the hotplug
package.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-12 22:00:40 +01:00
Sebastian Kemper
5a35a231ec freeswitch-stable: procd compatibility
procd runs as pid 1. When freeswitch realizes that its parent has pid 1,
it thinks that it has been orphaned and terminates the console thread.
That's why procd isn't able to get freeswitch's console output.

This commit mutes the check in src/switch_console.c. Now console output
is properly logged. The workaround parameters "-nc -nf" are replaced by
a proper "-c" ("console").

Additionally this commit hands control over killing freeswitch to procd.
It's no longer done by the script. This simplifies things quite a bit.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-12 21:34:25 +01:00
Sebastian Kemper
a442df04df baresip: remove depend on libx264
Following up the discussion in pull request #388 this commit removes the
depend on libx264 and prevents baresip from linking to libx264.

baresip can still use a H.264 encoder through ffmpeg, which is the
preferred way anyway.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-11 11:18:48 +01:00
Sebastian Kemper
e8034c181f kamailio-5.x: update to 5.1.6
Minor version bump. Two CVE patches can be removed as they're already
included in the source. One patch was refreshed.

Also:

  - https://sources.openwrt.org is added as primary source URL to lessen
    the load on kamailio upstream
  - Build/Configure is defined as empty (because there is no configure
    script in the source tree
  - patch is added to fix dp_replace(); the function was first added in the
    5.1 release and didn't work; patch was accepted upstream

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 22:46:35 +01:00
Sebastian Kemper
65565186ec kamailio-5.x: remove unnecessary depends
Remove the depend on mod-db-sqlite from some modules. They may depend on
a db module, but any will do. And mod-jsonrpcs also does not depend on
mod-json.

Maybe things were different in the past. But today these depends aren't
needed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 22:39:38 +01:00
Sebastian Kemper
04d2b6822e kamailio-5.x: add a note about the uci file
Echoes a message upon installation and points the user to
/etc/config/kamailio.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 22:36:22 +01:00
Sebastian Kemper
0dd94c624e kamailio-5.x: add hotplug script
Add hotplug script to base package. Hotplug will only occur if user
enables it via uci config.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 22:32:58 +01:00
Sebastian Kemper
6568006dde kamailio-5.x: add ip translation to init
kamailio can be started with multiple "-l" ("listen") parameters to tell
it which IPs to listen on. This can also be configured in kamailio.cfg,
of course.

This commit adds the ability to the init script to translate iface names
like "wan" into IP addresses and hand them over to kamailio as command
line arguments. This is useful when using a network connection where IPs
are dynamically assigned.

kamailio can also work with interface names, e.g. "eth0". But it may
listen to all IPs configured on the interface. To avoid this the commit
differentiates beteen IPv4 ("listen") and IPv6 ("listen6"). So if the
user wants kamailio to only listen on an IPv4 address configured on a
certain iface ("wan" for instance), he/she can just specify a list entry
"listen" with that iface.

An explanation is also added to the uci configuration file.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 22:17:39 +01:00
Sebastian Kemper
eef0679cb4 kamailio-5.x: amend mips2 tweak
Commit f84dda74e6 ("kamailio-5.x: enable
FAST_LOCK for MIPS") turned out to be problematic, because it changed
the ARCH to "mips2" not only for "mips", but also for some "mipsel"
targets, which was unintentional.

Address this by filtering for "mips" specifically before setting the
variable.

Also, get rid of PKG_BUILD_PARALLEL, because adding it really didn't
change anything - due to the way "make" is called. Leave a comment to
prevent repetition (read: prevent _me_ from doing the same mistake again
in the future).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 22:06:31 +01:00
Sebastian Kemper
ebaa99518a kamailio-5.x: convert init to procd
This commit

  - updates init script to use procd
  - adds a default user 'kamailio' (kamailio will switch to this user)
  - introduces uci init config (instead of /etc/default/kamailio)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 21:54:01 +01:00
Sebastian Kemper
3da92d2359 rtpproxy: add iface translation to init
rtpproxy expects IPs as parameters. Lots of OpenWrt devices use
connections where the IP is dynamically assigned. This commit adds shell
functions to convert an iface like 'wan' to an IP address before adding
the parameter to the rtpproxy command line.

Explanation is provided in /etc/config/rtpproxy. Some whitespace issues
were also fixed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 20:59:31 +01:00
Sebastian Kemper
76b09155bc rtpproxy: add uci log switch
Add log_level option to uci config. Paired with the comment it makes
setting the log level easier when no man page is around.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 20:43:27 +01:00
Sebastian Kemper
a3767c5f00 rtpproxy: convert init to procd
Update rtpproxy init script to use procd.

Also increases the start priority to 90 (like the hotplug script) to
make sure rtpproxy is started before kamailio.

Fixes some whitespace issues along the way, too.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 20:42:39 +01:00
Sebastian Kemper
325bbe9bbb rtpproxy: add a note about the uci file
Echoes a message upon installation and points the user to
/etc/config/rtpproxy.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 20:21:09 +01:00
Sebastian Kemper
0b092cbe2b rtpproxy: add hotplug script
Install hotplug script along with rtpproxy. It will only be used if
enabled by the user (via uci config file).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 20:16:56 +01:00
Jiri Slachta
72cb5b8350
Merge pull request #377 from dhewg/pull/asterisk
asterisk related updates
2018-10-15 11:41:27 +02:00
Sebastian Kemper
f84dda74e6 kamailio-5.x: enable FAST_LOCK for MIPS
This tweaks MIPS builds to support a faster locking mechanism.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-10-13 10:09:22 +02:00
Sebastian Kemper
7706749e05 kamailio-5.x: enable parallel build
Enable parallel build for Kamailio package.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-10-13 10:06:09 +02:00
Sebastian Kemper
d035542ffa kamailio-5.x: make jsonrpc filter portable
With OpenWrt default awk - so awk from busybox - the filter is broken,
causing jsonrpc calls to fail, i.e. when running "kamctl ps". Below
patch makes the filter portable. Patch was already accepted upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-10-13 10:05:03 +02:00
Jiri Slachta
a18ff9446c
Merge pull request #381 from micmac1/ast-opus
asterisk-opus: new package
2018-10-10 09:48:10 +02:00
Sebastian Kemper
da517440e1 asterisk-opus: new package
Add package for Opus codec support plugin. Variants for both asterisk13
and asterisk15 included.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-10-09 19:36:07 +02:00
Andre Heider
f6bf5395ac asterisk-13.x: update to 13.23.1
Update to the current 13.x release, see [0].
Drop merged patches and refresh the rest.

Get rid of the unknown --without-pwlib configure switch.
Drop the direct ncurses dependency, it's unused in case of an external
libedit [1].

[0] http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-13-current
[1] https://issues.asterisk.org/jira/browse/ASTERISK-27761

Signed-off-by: Andre Heider <a.heider@gmail.com>
2018-10-08 12:13:24 +02:00
Andre Heider
7a9a78a398 asterisk-15.x: update to 15.6.1
Update to the current 15.x release, see [0].
Drop merged patches and refresh the rest.

Get rid of the unknown --without-pwlib configure switch.
Drop the direct ncurses dependency, it's unused in case of an external
libedit [1].

[0] http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-15-current
[1] https://issues.asterisk.org/jira/browse/ASTERISK-27761

Signed-off-by: Andre Heider <a.heider@gmail.com>
2018-10-08 12:13:24 +02:00
Robert Högberg
a026c0ee63 yate: Revert to internal regex implementation
.. because the musl implementation doesn't seem to be fully compatible
with yate. We switched to the musl implementation in f6ad95d.

Yate has this regexp:
^([[:alpha:]][[:alnum:]]+:)?/?/?([^[:space:][:cntrl:]@]+@)?([[:alnum:]._+-]+|[[][[:xdigit:].:]+[]])(:[0-9]+)?

Given a string like

  sip:012345678@11.111.11.111:5060;user=phone

musl's regexec() returns these matches:

index start end
0     -1    0
1     0     32   sip:012345678@11.111.11.111:5060
2     -1    -1
3     0     14   sip:012345678@
4     14    27   11.111.11.111
5     27    32   :5060

.. but this is what yate expects:

index start end
0     -1    0
1     0     32   sip:012345678@11.111.11.111:5060
2     0     4    sip:
3     4     14   012345678@
4     14    27   11.111.11.111
5     27    32   :5060

Fixes #378

Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
2018-10-02 19:48:18 +02:00
Sebastian Kemper
2711cb872b freeswitch-stable: bump to 1.8.2
- bump version
- go back to using release tarballs (unavailable when 1.8.1 was
  initially released)
- add OpenWrt mirror

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-09-27 22:48:22 +02:00
Jiri Slachta
66bd4490a5
Merge pull request #370 from micmac1/kama-mas-cve
(master) kamailio-5.x: add fix for CVE-2018-16657
2018-09-21 16:47:25 +02:00
Sebastian Kemper
8a53ea43a1 asterisk-15.x: fix for AST-2018-009
Add upstream fix for AST-2018-009: Remote crash vulnerability in HTTP
websocket upgrade

The vulnerability affects the res_http_websocket.so module.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-09-20 23:34:25 +02:00
Sebastian Kemper
ed99b9f31b asterisk-13.x: fix for AST-2018-009
Add upstream fix for AST-2018-009: Remote crash vulnerability in HTTP
websocket upgrade

The vulnerability affects the res_http_websocket.so module.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-09-20 23:29:33 +02:00
Sebastian Kemper
8ecfc4b0b1 kamailio-5.x: add fix for CVE-2018-16657
In Kamailio before 5.0.7 and 5.1.x before 5.1.4, a crafted SIP message with
an invalid Via header causes a segmentation fault and crashes Kamailio. The
reason is missing input validation in the crcitt_string_array core function
for calculating a CRC hash for To tags. (An additional error is present in
the check_via_address core function: this function also misses input
validation.) This could result in denial of service and potentially the
execution of arbitrary code.

Patch from upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-09-12 20:27:33 +02:00
Sebastian Kemper
8dc9a376bf freeswitch-stable: add PKG_CPE_ID
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-26 20:08:50 +02:00
Sebastian Kemper
d78c4e07fa freeswitch-stable: replace defaults with uci
This commit replaces /etc/default/freeswitch with /etc/config/freeswitch.
This way the init and hotplug configuration can be done with uci instead of
having to edit a file.

This also does away with the busybox ntpd warning. ntpd uses the same
configuration in system and it looks like busybox's ntpd is not used when
ntpd is installed.

Lastly some log strings are amended to start with a lowercase letter.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-26 12:36:48 +02:00
Sebastian Kemper
a162bd9298 freeswitch-stable: disable parallel build
There is a discussion ongoing if parallel builds should be enabled by
default. For freeswitch parallel builds are known to fail when certain
modules are enabled. This commit preemptively disables parallel builds
explicitly.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-26 12:19:25 +02:00
Sebastian Kemper
3466a118b5 freeswitch-stable: fix perl setup
A recent commit in packages/lang/perl is causing a problem with the
perlmod.mk include. Work around this by including perlver.mk instead and
setting up PERL_CMD and PERL_SITELIB manually.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-16 22:12:27 +02:00
Jiri Slachta
76851ef29d
Merge pull request #360 from micmac1/kam-cve-master
kamailio-5.x: add fix for CVE-2018-14767
2018-08-11 12:18:26 +02:00
Jiri Slachta
d025a99c08
Merge pull request #346 from micmac1/asterisk-uclibc-iconv
asterisk: fix iconv related build issue
2018-08-11 12:17:27 +02:00
Jiri Slachta
1f1a639abe
Merge pull request #351 from micmac1/sccp-nls
asterisk-chan-sccp: remove iconv hack
2018-08-11 12:16:44 +02:00
Jiri Slachta
ef0b6466f4
Merge pull request #352 from micmac1/dongle-nls
asterisk-chan-dongle: remove iconv hack + update snapshot
2018-08-11 12:16:07 +02:00
Sebastian Kemper
1c3677ac96 kamailio-5.x: add fix for CVE-2018-14767
CVE-2018-14767: "In Kamailio before 5.0.7 and 5.1.x before 5.1.4, a
crafted SIP message with a double "To" header and an empty "To" tag
causes a segmentation fault and crash. The reason is missing input
validation in the "build_res_buf_from_sip_req" core function. This could
result in denial of service and potentially the execution of arbitrary
code."

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-06 23:25:27 +02:00
Sebastian Kemper
b7ce37ba0b freeswitch-stable: add SIGKILL to init script
Sometimes freeswitch doesn't exit after receiving the SIGTERM signal.
This can be reproduced by sending SIGTERM to a freeswitch instance which
is initializing (which can take quite some time).

Instead of just giving up and exiting - leaving a hung freeswitch
process on the system - this commit adds some lines to the init script
that send SIGKILL to freeswitch in case the attempt to terminate it with
SIGTERM fails.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-05 14:56:08 +02:00
micmac1
26db4efb3c
Merge pull request #347 from micmac1/yate-uclibc-iconv
yate: upgrade to 6.1.0 and fix uclibc build issue
2018-08-05 11:22:49 +02:00
Sebastian Kemper
f0d34a6e6d freeswitch-stable: fix garbled output in fs_cli
Fix a typo. Sent to upstream via Jira FS-11309.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-03 18:48:40 +02:00
Eneas U de Queiroz
c116c37851 freeswitch-stable: fix memory leak in mod_event_multicast
Applied a patch, submitted upstream at
https://freeswitch.org/jira/browse/FS-11193
that fixes two memory leaks in mod_event_multicast.c

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2018-08-01 14:15:14 -03:00
Sebastian Kemper
3fbdfa8d96 freeswitch-stable: add new modules
1. fail2ban
2. raven
3. video_filter

All three are new in FreeSWITCH 1.8.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-01 15:51:13 +02:00
Sebastian Kemper
06b7df55b0 freeswitch-stable: upgrade to 1.8.1
- Bump version from 1.6.20 to 1.8.1 (includes OpenSSL 1.1.0 support).
- Upstream didn't provide a source tarball yet, switch to git to grab
  the release.
- freeradius-client got updated to 1.1.7 by upstream, update version and
  checksum accordingly.
- tiff, libvpx and pcre patches are no longer needed, drop them.
- Refresh the remaining patches. Only minor changes were needed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-01 13:22:42 +02:00
Sebastian Kemper
2ef37ad9fe freeswitch-stable: remove mod_v8
mod_v8 is too difficult to maintain and tricky to cross-compile. This
commit removes it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-01 13:13:34 +02:00
Sebastian Kemper
63caadb3d3 asterisk-chan-dongle: update snapshot
Includes USSD encoding fix for E3531.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-18 22:11:46 +02:00
Sebastian Kemper
d5f36f5394 asterisk-chan-dongle: remove iconv hack
Remove the hack for iconv on uclibc. Instead include nls.mk which will
sort out the iconv depends.

This changes the iconv patch. AC_SEARCH_LIB doesn't work properly for
openwrt/lede. Instead use AC_CHECK_LIB.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-18 22:07:50 +02:00
Sebastian Kemper
e45e405487 asterisk-chan-sccp: remove iconv hack
Instead just include nls.mk.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-17 23:26:23 +02:00
Sebastian Kemper
1886bd33b5 freeswitch-stable: fix gsmopen inbuf handling
inbuf is only const in libiconv-full when compiled against uclibc.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-16 23:24:38 +02:00
Sebastian Kemper
d568f9336c freeswitch-stable: fix sed script
The sed script used on libs/unimrcp is used to set LDFLAGS using
APR_SETVAR. Since nls.mk is included there are LDFLAGS with commas. But
the macro APR_SETVAR uses commas to separate arguments, so now the
LDFLAGS are only getting partially copied.

Solve this by surrounding LDFLAGS with brackets ([...]).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-15 23:27:09 +02:00
Sebastian Kemper
e5e1e20ab3 freeswitch-stable: include nls.mk, remove hack
Removes the uClibc iconv hack. Instead nls.mk is included to sort out
iconv depends.

mod_gsmopen isn't able to figure out if iconv's inbuf is const. In
OpenWrt this is the case with libiconv-full, not with libiconv-stub. To
aid mod_gsmopen update 270-fix-uclibc-iconv-in-gsmopen.patch so that we
can pass on if inbuf is const via CFLAGS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-15 16:53:23 +02:00
Sebastian Kemper
9d339b9e41 freeswitch-stable: fix APR_TRY_COMPILE_NO_WARNING
The macro included in apr/apr-util is incorrect. It results in extra
brackets being put into conftest.c, for example:

  #include "confdefs.h"

[
  #include <stddef.h>
  #include <iconv.h>
  ]
int main(int argc, const char *const *argv) {
[
  iconv(0,(char **)0,(size_t *)0,(char **)0,(size_t *)0);
  ]
  return 0; }

The test always fails with:

error: expected identifier or '(' before '[' token

The following checks are affected:

- variable length arrays
- type of inbuf parameter to iconv

Fix from upstream (Apache).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-15 16:34:53 +02:00
Sebastian Kemper
b12a8bf62c asterisk-15.x: fix iconv related build issue
libmariadb 10.2 needs to be linked in together with iconv. Include nls.mk
to help the build system find the iconv library.

Also update func_iconv's depend. We want to use the variable
$(ICONV_DEPENDS) provided by nls.mk. It resolves to
+BUILD_NLS:libiconv-full. This cannot be handled properly right now, as the
module depends filter cannot handle +<SYMBOL>:<package> depends. So add
another field to the Makefile's module function for complex depends, which
are passed on unfiltered.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-12 23:21:41 +02:00
Sebastian Kemper
166a1d9f0b asterisk-13.x: fix iconv related build issue
libmariadb 10.2 needs to be linked in together with iconv. Include nls.mk
to help the build system find the iconv library.

Also update func_iconv's depend. We want to use the variable
$(ICONV_DEPENDS) provided by nls.mk. It resolves to
+BUILD_NLS:libiconv-full. This cannot be handled properly right now, as the
module depends filter cannot handle +<SYMBOL>:<package> depends. So add
another field to the Makefile's module function for complex depends, which
are passed on unfiltered.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-12 23:13:27 +02:00
Sebastian Kemper
6315dcd5bf yate: update to 6.1.0
Upgrade yate. The video codec mapping patch needed some small changes.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-12 22:25:01 +02:00
Sebastian Kemper
0234b91cba yate: fix mod-mysqldb compile
Since libmariadb 10.2.x requires to be linked in together with iconv,
include nls.mk to help the build system find it.

Also fix a type in PKG_CONFIG_DEPENDS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-12 22:22:20 +02:00
Sebastian Kemper
6228ab5ed9 asterisk-15.x: patch AST-2018-007 and 008
Patches from upstream for:

AST-2018-007
AST-2018-008

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-06-25 22:50:20 +02:00
Sebastian Kemper
028912b333 asterisk-13.x: patch AST-2018-008
Patch from upstream for AST-2018-008.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-06-25 22:47:40 +02:00
Sebastian Kemper
2c490b7fd1 freeswitch-stable: fix incompatible pointer type
Currently compiles fail with:

  CC       libfreeswitch_la-switch_regex.lo
src/switch_regex.c: In function 'switch_regex_compile':
src/switch_regex.c:40:9: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
  return pcre_compile(pattern, options, errorptr, erroroffset, tables);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Makefile:2100: recipe for target 'libfreeswitch_la-switch_regex.lo' failed
make[5]: *** [libfreeswitch_la-switch_regex.lo] Error 1

Fix cherry-picked from upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-06-21 21:09:54 +02:00
guidosarducci
b65b20f6f8 siproxd: restructure code and use procd for init
Switch to use procd for init, with support for jails. Clean up code and
restructure callback processing to be more robust and understandable. This
also fixes a bug processing multiple siproxd config sections, as reported
by Michael Kuron.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2018-05-24 00:23:56 -07:00
guidosarducci
a3f6f176d5 siproxd: don't apply default values already built-in
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2018-05-24 00:18:54 -07:00
Sebastian Kemper
e70c0848cc asterisk-15.x: remove sounds cache
When there is no sounds cache declared the build system will not attempt to
download any sound packs or their SHA1 checksums.

This is to be preferred because:

  a) the build may occur offline, causing it to fail
  b) plain http is used by the build system for downloading

There is no drawback here because the standard sound packs are included in
the Asterisk source tarball already.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-05-21 23:11:50 +02:00
Sebastian Kemper
94b70e0425 asterisk-13.x: remove sounds cache
When there is no sounds cache declared the build system will not attempt to
download any sound packs or their SHA1 checksums.

This is to be preferred because:

  a) the build may occur offline, causing it to fail
  b) plain http is used by the build system for downloading

There is no drawback here because the standard sound packs are included in
the Asterisk source tarball already.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-05-21 23:09:26 +02:00
Sebastian Kemper
32fa1723c9 yate: fix mysql detection
When configure is called with '--with-mysql="$(STAGING_DIR)/usr"' it tries
to detect mysql manually instead of using mysql_config. This doesn't always
work:

<snip>
checking for MySQL in /var/lib/buildbot/slaves/slave-lede-builds4/i386_pentium4/build/sdk/staging_dir/target-i386_pentium4_musl/usr... no
<snip>

This commit changes the configure argument to '--with-mysql=yes/no'. When
'yes' is selected configure uses mysql_config and then the detection works
reliably.

<snip>
checking for MySQL using mysql_config... yes 10.1.32
checking whether MYSQL_OPT_RECONNECT is declared... yes
checking whether MYSQL_OPT_READ_TIMEOUT is declared... yes
checking whether MYSQL_OPT_WRITE_TIMEOUT is declared... yes
checking whether mysql_set_character_set is declared... yes
<snip>

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-05-05 13:21:50 +02:00
Jiri Slachta
b159ed0cf9
Merge pull request #321 from micmac1/chan-lantiq-fix-target-build
asterisk-chan-lantiq: fix dep for nonshared builds
2018-05-01 21:19:05 +02:00
Jiri Slachta
4289fbab0d
Merge pull request #322 from micmac1/baresip-up
Baresip suite: version bumps
2018-05-01 21:16:57 +02:00
Jiri Slachta
fb52a10929
Merge pull request #323 from micmac1/ast-up
Asterisk: version bumps
2018-05-01 21:16:34 +02:00
Jiri Slachta
78ad9d8d36
Merge pull request #324 from micmac1/ast-modules-up
asterisk-channel modules: bump sccp and dongle
2018-05-01 21:15:09 +02:00
Sebastian Kemper
5f04977bd6 kamailio-5.x: bump to 5.1.3
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-28 15:09:35 +02:00
Sebastian Kemper
97e04fd17a asterisk-chan-sccp: bump snapshot
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-28 15:05:30 +02:00
Sebastian Kemper
929ad42044 asterisk-chan-dongle: bump snapshot
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-28 15:03:53 +02:00
Sebastian Kemper
715bd046c1 asterisk-15.x: bump to 15.3.0
- patches refreshed
- menuselect is bootstrapped from main bootstrap script now, extra call
  removed
- drop a module that was removed upstream for being incomplete

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-28 14:55:53 +02:00
Sebastian Kemper
6cf1db0c4e asterisk-13.x: bump to 13.20.0
- patches refreshed
- menuselect is bootstrapped from main bootstrap script now, extra call
  removed

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-28 14:27:06 +02:00
Sebastian Kemper
ff40589317 baresip: bump to 0.5.9
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-28 14:03:16 +02:00
Sebastian Kemper
8dd77211e0 asterisk-chan-lantiq: fix dep for nonshared builds
Despite all previous efforts chan-lantiq is not built by the build bots.
Checking the logs of a target build reveals that the chan-lantiq builds are
not even attempted.

During the target builds CONFIG_ALL is not set, meaning no regular package
gets selected. CONFIG_ALL_NONSHARED on the other hand is set. But
chan-lantiq still will not be selected, because it depends on "asterisk",
meaning asterisk needs to be selected first for chan-lantiq to become
available.

This commit changes the asterisk depend to "+asterisk", meaning asterisk
will be selected if chan-lantiq is selected.

This was tested with the SDK. A seed config file was added with the
following:

CONFIG_ALL_NONSHARED=y

Running menuselect showed that now chan-lantiq is selected
automatically. This should fix the problem.

The problem with "+asterisk" is that this breaks the asterisk menus for all
asterisk plugins/utilities that follow chan-lantiq alphabetically.  To
address this put the chan-lantiq modules into their own sub menu "Telephony
Lantiq". This is not nice, but the alternative would be to rename the
packages to something like asterisk13-z-chan-lantiq. This would make it
harder to find the packages. Maybe somebody has a better idea in the
future.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-27 21:44:43 +02:00
Sebastian Kemper
f0e7c5cd4d asterisk-chan-lantiq: avoid VARIANTs
chan-lantiq currently is still not built by the build bots. Split the
package in two, one for Asterisk 13, the other for 15, to avoid a VARIANT
build. Maybe the build bots do not support nonshared VARIANT builds.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-15 17:34:21 +02:00
Jiri Slachta
2ead2c458c
Merge pull request #315 from micmac1/siproxd-fix-package-names
siproxd: remove underscores from package names
2018-04-14 07:49:29 +02:00
Jiri Slachta
187aa78b80
Merge pull request #312 from micmac1/baresip2-fix-package-names
baresip: remove underscores from package names
2018-04-14 07:49:19 +02:00
Jiri Slachta
28c39ca99b
Merge pull request #313 from micmac1/rtpproxy-fix-package-names
rtpproxy: remove underscores from package names
2018-04-14 07:49:07 +02:00
Jiri Slachta
bae2d2a2c6
Merge pull request #316 from micmac1/kamailio-fix-package-names
kamailio-5.x: remove underscores from package names
2018-04-14 07:48:53 +02:00
Jiri Slachta
4ef7e692bf
Merge pull request #317 from micmac1/yate-fix-package-names
yate: remove underscores from package names
2018-04-14 07:48:41 +02:00
Jiri Slachta
bf8164ad0b
Merge pull request #311 from micmac1/asterisk-fix-package-names
Asterisk: fix package names
2018-04-14 07:48:06 +02:00
Sebastian Kemper
03ac9faf7b freeswitch-stable: tone down perl/python flags
Tidy up the flags passed on to FS build system for Perl and Python
modules. Some flags seem a bit too random to include - this commit
removes them.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-13 23:16:21 +02:00
Sebastian Kemper
45ecde769a yate: remove underscores from package names
Underscores should not be used in package base names as they're used as
semantic separators by opkg.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-10 21:34:43 +02:00
Sebastian Kemper
7974fbbe3a kamailio-5.x: remove underscores from package names
Underscores should not be used in package base names as they're used as
semantic separators by opkg.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-10 21:18:16 +02:00
Sebastian Kemper
a126cfcb74 siproxd: remove underscores from package names
Underscores should not be used in package base names as they're used as
semantic separators by opkg.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-10 21:14:11 +02:00
Sebastian Kemper
b6a2b611e9 freeswitch-stable: remove underscores from package names
Underscores should not be used in package base names as they're used as
semantic separators by opkg.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-10 20:47:16 +02:00
Sebastian Kemper
a0dc2c7607 rtpproxy: remove underscores from package names
Underscores should not be used in package base names as they're used as
semantic separators by opkg.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-09 23:42:24 +02:00
Sebastian Kemper
37f897c8c0 baresip: remove underscores from package names
Underscores should not be used in package base names as they're used as
semantic separators by opkg.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-09 23:30:51 +02:00
Sebastian Kemper
b13029c9e6 asterisk-15.x: remove underscores from package names
Underscores should not be used in package base names as they're used as
semantic separators by opkg.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-09 22:57:24 +02:00
Sebastian Kemper
34263d1d22 asterisk-13.x: remove underscores from package names
Underscores should not be used in package base names as they're used as
semantic separators by opkg.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-09 22:54:08 +02:00
Sebastian Kemper
174fce59b7 yate: build pgsqldb for target ARC
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-08 11:52:53 +02:00
Sebastian Kemper
d5a8385a87 kamailio-5.x: build db_postgres for target ARC
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-08 11:51:49 +02:00
Sebastian Kemper
c8ea07edd0 asterisk-15.x: build pgsql for target ARC
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-08 11:50:45 +02:00
Sebastian Kemper
05f74e241a asterisk-13.x: build pgsql for target ARC
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-08 11:49:51 +02:00
Zhong Jianxin
c447ba0de2 yate: Bump PKG_RELEASE
Signed-off-by: Zhong Jianxin <azuwis@gmail.com>
2018-03-31 00:14:25 +08:00
Zhong Jianxin
2235c2fa01 yate: More video codecs mapping
Signed-off-by: Zhong Jianxin <azuwis@gmail.com>
2018-03-30 22:09:57 +08:00
Sebastian Kemper
66d0d185df baresip: fix mod-avformat DEPENDS
mod-avformat is only built when mod-avcodec is selected. baresip sets it
up like that in mk/modules.mk:

  ifneq ($(USE_AVCODEC),)
  MODULES   += avcodec
  ifneq ($(USE_AVFORMAT),)
  MODULES   += avformat
  endif
  endif

This commit updates the mod-avformat DEPENDS accordingly.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-24 12:53:49 +01:00
Sebastian Kemper
40e1a78030 baresip: update baresip-mod-pulse depend
There are two pulseaudio packages, pulseaudio-daemon and
pulseaudio-daemon-avahi. Both provide pulseaudio. Depend on pulseaudio
so the user may choose which one to install.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-18 10:23:16 +01:00
guidosarducci
b5204f6d0d siproxd: improve syslog messages
Use explicit ident string ("siproxd") instead of NULL, as the latter is
not guaranteed to prepend the program name (e.g. unspecified in POSIX),
and may result in syslog messages identified only by PID.

Use consistent facility (LOG_DAEMON) across openlog() and syslog() calls.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2018-03-17 18:41:10 -07:00
guidosarducci
ea47a982ac siproxd: add usage comments, examples to default UCI config
Explain default configuration options and potential firewall settings.
Provide examples of using documented siproxd configuration directives.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2018-03-17 18:41:10 -07:00
guidosarducci
09f32fb1a5 siproxd: use UCI callback processing, reduce code size
Switch to using callback functions for UCI config processing, and remove
the unnecessary scan_interfaces() call together with related code.

Instead of explicitly handling every possible siproxd config option, use
callbacks to deal with those defined in the UCI config file, and directly
handle only selected options with desired default values. This shrinks
the init code by ~3.5 KB and simplifies updating to future siproxd
versions with new options.

(Note: this change exposed some long-standing, broken aspects of UCI
callback handling, fixed in https://github.com/openwrt/openwrt/pull/805.)

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2018-03-17 18:34:16 -07:00
Jiri Slachta
25bb8873b7
Merge pull request #302 from micmac1/sipp-standard-c++-lib
sipp: use preferred standard C++ lib
2018-03-13 16:05:44 +01:00
Sebastian Kemper
7342fdf484 sipp: use preferred standard C++ lib
Currently libstdc++ is hardcoded. Change that and use whatever standard
C++ lib has preference.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-13 13:08:52 +01:00
Sebastian Kemper
1b493c6532 asterisk-15.x: use preferred standard C++ lib
Currently libstdc++ is hardcoded. Change that and use whatever standard
C++ lib has preference.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-13 13:03:47 +01:00
Sebastian Kemper
28fb0ecc3c asterisk-15.x: clean up DEPENDS
- The main package does not actually depend on libpopt. Only the utility
  smsq does. This commit reflects that in the dependencies.

- libxslt is only used if generating the XML documentation, which this
  package does not use. So remove the bogus dependency.

- app-sms does not depend on libpopt either. It has another dependency
  on libstdcpp, which is already covered by the main package. This removes
  both dependencies.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-13 13:02:12 +01:00
Sebastian Kemper
10beb4c240 asterisk-13.x: use preferred standard C++ lib
Currently libstdc++ is hardcoded. Change that and use whatever standard
C++ lib has preference.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-13 12:59:30 +01:00
Sebastian Kemper
bdfb3d75a4 asterisk-13.x: clean up DEPENDS
- The main package does not actually depend on libpopt. Only the utility
  smsq does. This commit reflects that in the dependencies.

- libxslt is only used if generating the XML documentation, which this
  package does not use. So remove the bogus dependency.

- app-sms does not depend on libpopt either. It has another dependency
  on libstdcpp, which is already covered by the main package. This removes
  both dependencies.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-13 12:57:39 +01:00
Jiri Slachta
171fec75e8
Merge pull request #295 from micmac1/dongle-up
asterisk-chan-dongle: simplify and update snapshot
2018-03-13 08:42:32 +01:00
Jiri Slachta
6f886e2a33
Merge pull request #297 from micmac1/sccp-up
asterisk-chan-sccp: bump and cleanup
2018-03-13 08:42:18 +01:00
Jiri Slachta
f318f797f4
Merge pull request #294 from micmac1/pkg_conf_dep_ast15
asterisk-15.x: remove hack, fix deps and add PKG_CONFIG_DEPENDS
2018-03-13 08:41:47 +01:00
Jiri Slachta
2f74348b92
Merge pull request #293 from micmac1/pkg_conf_dep_ast13
asterisk-13.x: remove hack, fix deps and add PKG_CONFIG_DEPENDS
2018-03-13 08:41:34 +01:00
Jiri Slachta
c24cc0c639
Merge pull request #283 from micmac1/siproxd-updates
Siproxd updates
2018-03-13 08:40:38 +01:00
Jiri Slachta
48bbb813ab
Merge pull request #291 from micmac1/compile-fix-pcapsipdump
pcapsipdump: compile fixes
2018-03-13 08:25:40 +01:00
Jiri Slachta
0ce847e000
Merge pull request #296 from micmac1/lantiq-up
asterisk-chan-lantiq: update snapshot
2018-03-13 08:25:12 +01:00
Jiri Slachta
d2593de184
Merge pull request #298 from micmac1/kam-up
Kamailio 5: version bump + PKG_CONFIG_DEPENDS
2018-03-13 08:24:54 +01:00
Jiri Slachta
ef744af47d
Merge pull request #299 from micmac1/yate-up
yate: add PKG_CONFIG_DEPENDS
2018-03-13 08:24:45 +01:00
Sebastian Kemper
c7b427e48f freeswitch-stable: use preferred standard C++ lib
Currently libstdc++ is hardcoded. Change that and use whatever standard
C++ lib has preference.

Note: Two modules, event_zmq and v8, do not compile against libuClibc++.
For them to be available libstdcpp needs to have preference.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-11 23:32:25 +01:00
Sebastian Kemper
87ae0b7ab2 asterisk-chan-lantiq: add back nonshared flag
The module is never attempted to build in the regular buildbot package
cycle. Stick back the nonshared flag to get at least some log during
the target build cycle.

This also updates the dependency on kmod-ltq-vmmc to be selective (+).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-11 10:49:07 +01:00
Sebastian Kemper
5c4ac82788 yate: add PKG_CONFIG_DEPENDS
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 16:57:33 +01:00
Sebastian Kemper
c218f8d79c 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>
2018-03-09 16:37:37 +01:00
Sebastian Kemper
f0bc3c6776 kamailio-5.x: version bump
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 16:36:19 +01:00
Sebastian Kemper
b9c6eabfde asterisk-chan-sccp: remove iostreams workaround
The iostreams patch was dropped from the asterisk 13 package. The
workaround can go away.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 15:31:03 +01:00
Sebastian Kemper
45787332e5 asterisk-chan-sccp: update snapshot
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 15:29:26 +01:00
Sebastian Kemper
5f7266cda7 asterisk-chan-lantiq: update snapshot
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 15:04:27 +01:00
Sebastian Kemper
1459baa061 asterisk-chan-dongle: update snapshot
./configure now requires us to set DESTDIR.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 14:52:42 +01:00
Sebastian Kemper
7beff532c5 asterisk-chan-dongle: add patch to force OpenWrt CFLAGS
Prevent ./configure from adding '-O6' to CFLAGS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 14:49:20 +01:00
Sebastian Kemper
b22af0210e asterisk-chan-dongle: simplify Makefile
Simplify the Makefile by using the default Build/Compile routine.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 14:47:34 +01:00
Sebastian Kemper
59edf25bc1 asterisk-15.x: add PKG_CONFIG_DEPENDS
The module and util lists are necessary, unfortunately. But having
working PKG_CONFIG_DEPENDS is nice and the lists rarely need updating.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 13:01:32 +01:00
Sebastian Kemper
ec4ecc032d asterisk-15.x: remove .lastclean hack
Remove the hack. Instead just call make with .lastclean and afterward
make menuselect again. If .lastclean was not removed by menuselect this
will not do anything, which is nice.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 12:59:43 +01:00
Sebastian Kemper
dc40ee03e4 asterisk-15.x: update compile stage
- define Build/menuselect for reuse
- call the default Compile define for menuselect-tree

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 12:57:47 +01:00
Sebastian Kemper
8510c786c0 asterisk-15.x: add missing util dependencies
The AEL utils need the pbx-ael module selected, otherwise they won't be
built.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 12:55:26 +01:00
Sebastian Kemper
0af4ac7c51 asterisk-13.x: add PKG_CONFIG_DEPENDS
The module and util lists are necessary, unfortunately. But having
working PKG_CONFIG_DEPENDS is nice and the lists rarely need updating.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 12:53:01 +01:00
Sebastian Kemper
23f5a70e0d asterisk-13.x: remove .lastclean hack
Remove the hack. Instead just call make with .lastclean and afterward
make menuselect again. If .lastclean was not removed by menuselect this
will not do anything, which is nice.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 12:45:29 +01:00
Sebastian Kemper
2184038734 asterisk-13.x: update compile stage
- define Build/menuselect for reuse
- call the default Compile define for menuselect-tree

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 12:40:09 +01:00
Sebastian Kemper
edbca36521 asterisk-13.x: add missing util dependencies
The AEL utils need the pbx-ael module selected, otherwise they won't be
built.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 12:34:54 +01:00
Sebastian Kemper
3f238a5e98 pcapsipdump: compile fixes
Previous revert only works when libstdcpp is the default C++ lib. To
make the compile work in all scenarios LIBS needs to be defined and
MAKE_FLAGS are required instead of MAKE_VARS, otherwise the included
variables are overridden.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-08 15:56:54 +01:00
Sebastian Kemper
ecfb5062ef yate: revert uclibc++ commit
This reverts commit b8b9818a13.

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>
2018-03-04 19:21:28 +01:00