Commit graph

1052 commits

Author SHA1 Message Date
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