Compare commits

...

807 commits

Author SHA1 Message Date
Hayzam Sherif
2606056893 asterisk: add contact_fqdn option for transports 2025-02-19 19:35:06 +04:00
f8211e4c28 asterisk: bump to 20.8.1 2024-12-21 14:05:19 +04:00
ed0e0d2f04 remove: asterisk-chan-quectel 2024-11-14 23:43:51 +04:00
f1c101a10f
Merge branch 'openwrt:master' into master 2024-03-06 10:45:29 +05:30
Daniel Golle
dc889d84f1
Merge pull request #857 from dangowrt/lantiq-vmmc-group
asterisk-chan-lantiq: add user 'asterisk' to 'vmmc' group
2024-03-03 16:16:51 +00:00
Daniel Golle
6b3fe2bd4f asterisk-chan-lantiq: add user 'asterisk' to 'vmmc' group
Make sure asterisk has permission to access /dev/vmmc* devices as it
will segfault if started without.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-03-03 15:44:19 +00:00
711d0a7855
Merge branch 'openwrt:master' into master 2024-02-27 12:21:34 +04:00
micmac1
51c6f587c7
Merge pull request #856 from micmac1/sipp-372
sipp: bump to 3.7.2
2024-01-31 18:35:54 +01:00
micmac1
352384f37d
Merge pull request #788 from guijan/pcapsipdump-libobsd
pcapsipdump: fix linking against libobsd
2024-01-31 18:35:06 +01:00
Sebastian Kemper
7e66d0e618 sipp: bump to 3.7.2
02-Fix_compatibility_with_older_C++_in_3.6.x_branch.patch removed as
included upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2024-01-21 15:15:11 +01:00
5138c498ae
Merge branch 'openwrt:master' into master 2023-12-30 19:09:41 +05:30
Jiri Slachta
0b0af5cc06
Merge pull request #849 from micmac1/ast-20.5.2
asterisk: bump to 20.5.2
2023-12-29 11:11:14 +01:00
micmac1
3d1eac3ca7
Merge pull request #848 from micmac1/dongle-2022
asterisk-chan-dongle: bump to latest git
2023-12-29 09:14:35 +01:00
Sebastian Kemper
4e4b281794 asterisk: bump to 20.5.2
- Resolves GHSA-98rc-4j27-74hh, GHSA-hxj9-xwr8-w8pq, GHSA-5743-x3p5-3rg7
  and GHSA-8857-hfmw-vg8f
- patches refreshed
- patch 180-app_queue_time_t.patch added to fix new warnings, sent
  upstream (see [1])
- 180-res_crypto.c-Avoid-using-the-non-portable-ALLPERMS-m.patch and
  190-chan_iax2.c-Avoid-crash-with-IAX2-switch-support.patch removed as
  they're included in upstream release tar ball.

[1] https://github.com/asterisk/asterisk/pull/516

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-12-29 09:09:00 +01:00
Sebastian Kemper
6643627656 pjproject: sync patches with asterisk 20.5.2
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-12-29 09:01:10 +01:00
Sebastian Kemper
411b6fb1d7 asterisk-chan-dongle: bump to latest git
Closes: #837

The extra patch was submitted upstream for inclusion, see [1].

[1] https://github.com/wdoekes/asterisk-chan-dongle/pull/173

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-12-26 14:22:02 +01:00
micmac1
ca2a412d6a
Merge pull request #847 from micmac1/rtpe-11.5.1.18
rtpengine: bump to 11.5.1.18
2023-12-25 15:30:44 +01:00
Sebastian Kemper
de7534808f rtpengine: bump to 11.5.1.18
Add missing xmlrpc-c dependency.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-12-24 23:50:58 +01:00
micmac1
02f4ad19f2
Merge pull request #844 from micmac1/fs-1.10.11
freeswitch: bump to 1.10.11
2023-12-24 12:09:27 +01:00
Sebastian Kemper
390b0aabe6 freeswitch: bump to 1.10.11
See [1].

[1] https://github.com/signalwire/freeswitch/security/advisories/GHSA-39gv-hq72-j6m6

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-12-23 23:40:39 +01:00
Sebastian Kemper
2ec7aaca9c sofia-sip: bump to 1.13.17
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-12-23 23:38:33 +01:00
d07791e07a
Merge branch 'openwrt:master' into master 2023-11-28 16:49:44 +05:30
Jiri Slachta
04666c3abb
Merge pull request #843 from guidosarducci/master-fix-network-device
siproxd: improve network device resolution
2023-11-25 22:45:44 +01:00
Tony Ambardar
7ab8207ba7 siproxd: improve network device resolution
Resolve network devices by first trying 'network_get_device' (L3) and
falling back to 'network_get_physdev' (L2) on failure, which allows using
Wireguard interfaces. Both are needed to avoid breaking existing usage
for some interfaces (e.g. 'wan').

Also add myself as a maintainer.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2023-11-24 16:51:31 -08:00
2cff7dda44
Merge branch 'openwrt:master' into master 2023-11-19 17:59:40 +05:30
Jiri Slachta
b28229fb59
Merge pull request #840 from Ansuel/pcre-kamailio
kamailio: bump to release 5.7.2 + PCRE2
2023-11-11 19:47:27 +01:00
c1e7ac7826
Merge branch 'openwrt:master' into master 2023-11-07 08:06:02 +04:00
micmac1
35b00b04cf
Merge pull request #839 from Ansuel/rtengine-pcre2
rtpengine: bump to 11.5.1.12 release and set PCRE2
2023-11-05 09:38:16 +01:00
micmac1
fc766e3838
Merge pull request #838 from Ansuel/sipgrep-pcre2
sipgrep: Move package to PCRE2
2023-11-05 09:34:36 +01:00
micmac1
add9143fca
Merge pull request #834 from robho/yate_nftables_banbrutes
yate: Update yate script to use an nftables set
2023-11-05 09:31:45 +01:00
micmac1
56ec2ae459
Merge pull request #836 from micmac1/dahli-6
dahdi-linux: bump to latest git head
2023-11-05 09:26:52 +01:00
Christian Marangi
ed8d330504
rtpengine: bump to 11.5.1.12 release and set PCRE2
Bump rtpengine to release 11.5.1.12.

New 11.x release require libopus as a new library and also moved to
PCRE2 library.

Refresh patches and also introduce a new one to disable docs as they
changed doc generation tool and now would require a new prereq and docs
are not useful and would waste space on an embedded scenario.

For recording module libcurl is also now required.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-11-03 15:47:59 +01:00
Christian Marangi
ac4ad7f6fc
kamailio: backport and move to PCRE2
Backport merged patch and move package to PCRE2 as PCRE is EOL and won't
receive any security updates anymore.

Additional patch are backported to minimize changes to the backport
patches. Only patch 010 required adaptation due to a fix backported in
5.7 in the same place where the patch fixed some whitespace issue.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-11-03 03:37:05 +01:00
Christian Marangi
231910de5f
kamailio: bump to release 5.7.2
Bump kamailio to release 5.7.2 to make it easier to backport PCRE2
patches.

Drop upstream patch related to time_t and python3 fixes.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-11-03 03:35:35 +01:00
Christian Marangi
ceb721c048
kamailio: add patch fixing fragile kamcmd
Add patch fixing fragile kamcmd where output bin can be renamed to
invalid names due to ENV variable clash.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-11-03 03:33:16 +01:00
Christian Marangi
77068cdc51
sipgrep: Move package to PCRE2
Add patch to convert the package to PCRE2 as PCRE is EOL and won't
receive any security updates anymore.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-11-02 22:21:15 +01:00
c3733e02ab
Merge branch 'openwrt:master' into master 2023-10-18 20:53:22 +05:30
Sebastian Kemper
178e4bce1a dahdi-linux: bump to latest git head
This compiles with newer kernels now.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-10-13 12:36:11 +02:00
Robert Högberg
8a2f8231fb yate: Update yate script to use an nftables set
By using an nftables set in this script it's easier to install
and use this script now that OpenWrt uses nftables by default.

Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
2023-10-10 23:55:53 +02:00
micmac1
5f998af5ee
Merge pull request #831 from micmac1/fs-vpx-CVE-2023-5217
freeswitch: add patches for CVE-2023-5217 & CVE-2023-44488 in bundled libvpx
2023-10-06 21:47:20 +02:00
Sebastian Kemper
26e09b2914 freeswitch: add patches for CVEs in bundled libvpx
CVE-2023-5217
CVE-2023-44488

Patches are for bundled libvpx, see [1].

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

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-10-06 17:20:18 +02:00
92ff80f7de
Merge branch 'openwrt:master' into master 2023-09-19 17:26:05 +05:30
Jiri Slachta
4ccdae6c85
Merge pull request #829 from Rondom/rondom-add-cpe-ids
Add CPE ID for asterisk and pjproject
2023-09-17 20:26:41 +02:00
Andreas Gnau
2b3ae318e4 pjproject: Add PKG_CPE_ID
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2023-08-30 18:36:14 +02:00
Andreas Gnau
387ae7be1e asterisk: Add PKG_CPE_ID
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2023-08-30 18:35:51 +02:00
7c7501492e
Merge branch 'openwrt:master' into master 2023-08-22 12:33:08 +05:30
micmac1
1488eb0db4
Merge pull request #826 from micmac1/fs-1.10.10
freeswitch: bump to 1.10.10
2023-08-19 11:20:16 +02:00
Sebastian Kemper
999a8a9ff1 freeswitch: bump to 1.10.10
- bump to 1.10.10
- remove TARGET_CFLAGS workarounds
- remove BROKEN from modules av & python3
- remove 500-libshout-deprecated.patch
- refresh other patches

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-08-18 14:23:56 +02:00
Sebastian Kemper
bd1a8deebe signalwire-client-c: bump to 2.0.0
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-08-18 14:23:41 +02:00
Sebastian Kemper
04f03b98a5 libks: bump to 2.0.2
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-08-18 14:23:30 +02:00
Sebastian Kemper
4cce5ebdd0 sofia-sip: bump to 1.13.16
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-08-18 12:38:12 +02:00
Sebastian Kemper
c18640bc0f spandsp3: bump to commit from June 16th
Same commit is used by freeswitch 1.10.10 for Windows.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-08-18 12:36:43 +02:00
60e56d72f6
Merge branch 'openwrt:master' into master 2023-08-01 19:48:44 +05:30
micmac1
c093d20a53
Merge pull request #822 from micmac1/ast-iax2-crash
asterisk: add upstream patch against iax2 crash
2023-07-23 15:45:02 +02:00
Sebastian Kemper
3d063acb25 asterisk: add upstream patch against iax2 crash
Reported by Sergio in issue #821. This adds upstream patch for the
crash. See upstream issue [1] for details.

[1] https://github.com/asterisk/asterisk/issues/180

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-07-23 12:26:27 +02:00
56d1b625a8
Merge branch 'openwrt:master' into master 2023-07-19 17:12:43 +05:30
micmac1
6e1c2e9bbe
Merge pull request #820 from kuanyili/replace-autorelease
treewide: replace AUTORELEASE with real PKG_RELEASE
2023-07-18 23:16:17 +02:00
Kuan-Yi Li
87275752df treewide: replace AUTORELEASE with real PKG_RELEASE
Based on Paul Fertser <fercerpav@gmail.com>'s guidance:
Change AUTORELEASE in rules.mk to:
```
AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
```

then update all affected packages by:
```
for i in $(git grep -l PKG_RELEASE:=.*AUTORELEASE | sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
	make package/$i/clean
done
```

Signed-off-by: Kuan-Yi Li <kyli@abysm.org>
2023-07-19 04:41:35 +08:00
75d71dbfc7
Merge branch 'openwrt:master' into master 2023-07-11 10:33:20 +05:30
micmac1
bcf4d2a178
Merge pull request #817 from micmac1/pj2131
pjproject: bump to 2.13.1
2023-07-09 10:05:04 +02:00
Sebastian Kemper
73526e5661 pjproject: bump to 2.13.1
1. add "/refs/tags" to PKG_SOURCE_URL, otherwise the downloaded file is
   broken now
2. bump minor version, includes security related fixes, see [1], [2] and
   [3]

[1] https://github.com/pjsip/pjproject/security/advisories/GHSA-9pfh-r8x4-w26w
[2] https://github.com/pjsip/pjproject/security/advisories/GHSA-cxwq-5g9x-x7fr
[3] https://github.com/pjsip/pjproject/security/advisories/GHSA-q9cp-8wcq-7pfr

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-07-08 10:42:16 +02:00
6f871b79b7
Merge branch 'openwrt:master' into master 2023-07-04 23:55:36 +05:30
micmac1
7983fb1401
Merge pull request #815 from micmac1/ast-20.3.0
asterisk: bump to 20.3.0
2023-07-02 20:55:11 +02:00
Sebastian Kemper
945b7ea1f0 asterisk: bump to 20.3.0
- bump to 20.3.0
- new modules: app-broadcast, app-if, app-signal, func-export,
  res-pjsip-aoc and res-pjsip-rfc3329
- remove "--without-vpb", not available anymore
- add configuration file for res-http-media-cache
- drop libsrtp2 from res-pjproject dependencies, see changes in
  pjproject package
- refresh patches
- add upstream patch
  180-res_crypto.c-Avoid-using-the-non-portable-ALLPERMS-m.patch to fix
  build [1]

[1] https://github.com/asterisk/asterisk/issues/149

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-06-07 23:56:27 +02:00
Sebastian Kemper
2e9e9b8386 pjproject: bump to 2.13
- bump to 2.13
- new option "--disable-libsrtp" now available so we can get rid of
  dependency on libsrtp2 (asterisk's SRTP support doesn't depend on pjproject)
- new option "--disable-upnp"
- 0007-execinfo.patch not required anymore, pjproject now checks for
  __GLIBC__
- sync patches with asterisk 20.3.0

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-06-07 23:49:01 +02:00
b8fce8ae55
Merge branch 'openwrt:master' into master 2023-06-03 00:06:23 +05:30
micmac1
5960523a58
Merge pull request #812 from micmac1/kam-py-3.11-patches
kamailio: add patches for app_python3
2023-05-29 23:13:36 +02:00
micmac1
e77a92ec2a
Merge pull request #811 from micmac1/fs-py-3.11-broken
freeswitch: mark mod-python3 BROKEN
2023-05-29 23:12:52 +02:00
Sebastian Kemper
4483312785 kamailio: add patches for app_python3
Python was updated to 3.11 and app_python3 doesn't compile anymore.
This commit adds three upstream patches to resolve this.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-05-29 19:56:57 +02:00
Sebastian Kemper
2d4c2d2361 freeswitch: mark mod-python3 BROKEN
mod-python3 is not compatible with Python 3.11 currently, mark it
BROKEN.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-05-29 19:53:37 +02:00
5d54b465d8
Merge branch 'openwrt:master' into master 2023-05-23 03:24:23 +05:30
micmac1
27be55e0a7
Merge pull request #810 from micmac1/fs-musl-1.2.4
freeswitch: fix compile against musl-1.2.4
2023-05-19 10:45:34 +02:00
Sebastian Kemper
8bd8f5e3e4 freeswitch: fix compile against musl-1.2.4
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-05-19 01:00:12 +02:00
96e7b87fed
Merge branch 'openwrt:master' into master 2023-05-13 01:37:09 +05:30
Christian Marangi
afad179aae
dahdi-linux: add multiple patch fixing compilation warning
Add multiple patch fixing compilation warning and obvius code bug.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-05-12 20:27:48 +02:00
Christian Marangi
f265a93991
rtpengine: add patch fixing compilation warning for kernel module
Add patch fixing compilation warning for kernel module.
Always dynamically allocate buffer for proc_control_read_write.
Fix compilation warning:
/builder/shared-workdir/build/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/rtpengine-no-transcode/rtpengine-mr10.5.2.6/kernel-module/xt_RTPENGINE.c: In function 'proc_control_read_write':
/builder/shared-workdir/build/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/rtpengine-no-transcode/rtpengine-mr10.5.2.6/kernel-module/xt_RTPENGINE.c:3573:1: error: the frame size of 1272 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
 3573 | }
      | ^

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-05-12 19:42:31 +02:00
9faf240363
Merge branch 'openwrt:master' into master 2023-03-30 00:09:36 +05:30
micmac1
39ca113f84
Merge pull request #807 from micmac1/ci-up
CI: sync up with changes in packages repo
2023-03-29 20:18:27 +02:00
3494ece7dc
Merge branch 'openwrt:master' into master 2023-03-24 18:12:32 +05:30
Sebastian Kemper
a4b6dfaffb CI: sync up with changes in packages repo
Catch up with the changes in the packages repository. All changes are
manual cherry picks from the packages repo and listed below.

ci: update github actions to v3

Update checkout and upload-artifact action to v3 to mute nodejs
deprecation warning.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 52570d4242822e3db678f5484c2ca3e72f485d52)

CI: deprecate $(AUTORELEASE) via comments

Autorelease causes some issues like heavy bandwidth usage as well as
non-deterministic package releases whenever someone doesn't use the full
git log.

With this comment all modified packages are checked and if they use
the autorelease feature, kindly comment to the user to change that.

Signed-off-by: Paul Spooren <paul.spooren@rhebo.com>
[ move check to separate workflow to handle ci limitation ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 61d59fd54254b97218aa4e861b1f933d5c5e0bc4)

ci: only comment AUTORELEASE deprecation if exists

If it doesn't exists, don't confuse the contributors.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 75ff4ba358aa0357f0af62cb980568bdc8d390a1)

github-ci: error on any shell errors

Enable `errexit` and `nounset` [POSIX shell options][1]
in `.github/workflows/entrypoint.sh` so that the script fails
if any command within the script fails.

[1]: https://pubs.opengroup.org/onlinepubs/9699919799//utilities/V3_chap02.html#set

Reported-by: Marius Dinu <m95d+git@psihoexpert.ro>
Fixes: https://github.com/openwrt/packages/issues/19953
Signed-off-by: Alois Klink <alois@aloisklink.com>
(cherry picked from commit 18d3c529fa4ab8dafcf6c147cf3cb55792d8ca10)

CI: update build architectures

Removed arc_archs - archs38 was marked as source-only [1].
Renamed powerpc_8540 to powerpc_8548 [2].

1. https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=c01641bcc7236d2e2de3ea65444b0cf2898df351
2. https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=2cad88b99fdae9766de84e6c1cb56f111eb53748

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 29041e8f8eb42dcd8eee03602348b39dbf9d0c70)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-03-24 10:29:22 +01:00
micmac1
2a81709fd9
Merge pull request #806 from dhewg/buildflags
kamailio: refactor to use PKG_BUILD_FLAGS:=no-mips16
2023-03-24 10:13:45 +01:00
micmac1
50d73ce8e4
Merge pull request #802 from cotequeiroz/baresip
baresip: fix parallel build
2023-03-24 10:10:49 +01:00
micmac1
e29aac525c
Merge pull request #805 from micmac1/sccp-autoconf-2.70
asterisk-chan-sccp: autoconf fixes
2023-03-24 10:03:33 +01:00
Andre Heider
7681ad21d8 kamailio: refactor to use PKG_BUILD_FLAGS:=no-mips16
See commit 5c545bdb "treewide: replace PKG_USE_MIPS16:=0 with
PKG_BUILD_FLAGS:=no-mips16" on the main repository.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-03-23 11:04:25 +01:00
Sebastian Kemper
3b0a9ac8c8 asterisk-chan-sccp: autoconf fixes
Since OpenWrt updated autoconf to 2.71 configure fails, because
"$ac_dir" is now empty when configure attempts to run
"./tools/versioncheck". With previous autoconf "$ac_dir" contained
"autoconf" at this point in the script.

As a workaround "$ac_dir" is replaced with "$ac_aux_dir", which
incidentally contains "autoconf".

Also a build dependency is added for gettext-full, as it provides
iconv.m4. Previously this was provided by libiconv, but not anymore.
Without iconv.m4 autoreconf fails.

Some patches were refreshed to allow CI to pass.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-03-18 17:52:05 +01:00
3183bffaec
Merge branch 'openwrt:master' into master 2023-03-05 11:53:10 +05:30
micmac1
f79f6246bc
Merge pull request #804 from micmac1/fs-1109
freeswitch: bump to 1.10.9
2023-03-03 17:17:42 +01:00
Sebastian Kemper
269b611027 freeswitch: bump to 1.10.9
ZRTP support removed as it was dropped upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-03-02 20:12:23 +01:00
Sebastian Kemper
5df2a49696 spandsp3: bump to latest commit
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-03-02 20:10:58 +01:00
Sebastian Kemper
9cfc0b415a sofia-sip: bump to 1.13.14
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-03-02 20:10:04 +01:00
Sebastian Kemper
e52d417cce libks: bump to 1.8.2
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-03-02 20:09:02 +01:00
eb61a8aea6
Merge branch 'openwrt:master' into master 2023-02-18 14:57:23 +05:30
micmac1
54be049dd9
Merge pull request #803 from cotequeiroz/OpenSSL3
freeswitch,coturn: Prepare for OpenSSL 3.0 upgrade
2023-02-12 18:33:38 +01:00
Eneas U de Queiroz
d1d08eae09
baresip: fix parallel build
Include an upstream patch to fix random parallel build failures, such
as:

  CC [M]  build-arm/modules/ctrl_dbus/ctrl_dbus.o
modules/ctrl_dbus/ctrl_dbus.c:69:10: fatal error: baresipbus.h: No such
file or directory
   69 | #include "baresipbus.h"
      |          ^~~~~~~~~~~~~~

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-02-10 18:21:13 -03:00
Eneas U de Queiroz
26bb868229
coturn: update to 4.6.1
Added a patch from Gentoo that brings compatiblity with OpenSSL 3.0.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-02-10 18:20:35 -03:00
Eneas U de Queiroz
09ad78b6cc
freeswitch: allow building with OpenSSL 3.0
Add -Wno-error=deprecated-declarations to CFLAGS to allow usage of
deprecated API.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-02-10 18:20:35 -03:00
37122b1289
Merge branch 'openwrt:master' into master 2023-01-13 23:53:59 +05:30
Jiri Slachta
b1bfd7d375
Merge pull request #797 from micmac1/rtpe-lws-openssl
rtpengine: update libwebsockets dependency
2023-01-09 14:16:47 +01:00
Sebastian Kemper
022701e067 rtpengine: update libwebsockets dependency
The rtpengine daemon requires lws_get_ssl(). This function is not
available in libwebsockets-mbedtls. This commit updates the dependency
to libwebsockets-openssl.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-01-09 12:04:53 +01:00
adf5e9773a
Merge branch 'openwrt:master' into master 2022-12-31 17:34:02 +05:30
micmac1
3cf295a468
Merge pull request #795 from micmac1/sof-1.13.11
sofia-sip: bump to 1.13.11
2022-12-30 20:11:21 +01:00
Sebastian Kemper
2aeae69324 sofia-sip: bump to 1.13.11
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-12-29 13:16:12 +01:00
2cb615aa28
Merge branch 'openwrt:master' into master 2022-12-11 20:11:29 +04:00
Jiri Slachta
2a34d1190e
Merge pull request #791 from micmac1/ast-20.0.1
asterisk: bump to 20.0.1
2022-12-02 20:12:15 +01:00
Sebastian Kemper
64df3ed58c asterisk: bump to 20.0.1
Fixes

AST-2022-007
AST-2022-008
AST-2022-009

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-12-02 18:15:27 +01:00
Sebastian Kemper
472f1ac7ac pjproject: backport security fixes from 2.13
Backports two security fixes (c4d3498 and 450baca) from pjproject 2.13.
Source: asterisk 20.0.1.

Also drop AUTORELEASE as OpenWrt project wants to get rid of it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-12-02 18:11:54 +01:00
6ed5537dc1
Merge branch 'openwrt:master' into master 2022-11-24 03:14:49 +04:00
micmac1
ed951ea624
Merge pull request #790 from micmac1/init-return
Treewide: Use return in init scripts instead of exit
2022-11-19 08:40:33 +01:00
f97ce9a811 asterisk: enable settings 2022-11-16 18:04:05 +01:00
38c27414b0 add: asterisk-chan-quectel 2022-11-16 18:00:22 +01:00
Sebastian Kemper
e024681271 rtpproxy: use return in init script
"check_ipaddr()" & "start_service()" are functions, hence "return"
should be used instead of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-08 22:19:29 +01:00
Sebastian Kemper
2be80b04dd kamailio: use return in init script
"check_listen()" & "start_service()" are functions, hence "return"
should be used instead of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-08 22:04:55 +01:00
Sebastian Kemper
9604a203d5 freeswitch: use return in init script
"start_service()" is a function, hence "return" should be used instead
of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-08 21:19:27 +01:00
Sebastian Kemper
ebfad751c7 coturn: use return in init script
"start_service()" is a function, hence "return" should be used instead
of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-08 21:13:05 +01:00
Sebastian Kemper
b69ae7b934 baresip: use return in init script
"start_service()" is a function, hence "return" should be used instead
of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-08 21:11:08 +01:00
Sebastian Kemper
69aebd4f4f asterisk: use return in init script
"start_service()" is a function, hence "return" should be used instead
of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-08 21:08:54 +01:00
micmac1
87a78e0d8a
Merge pull request #789 from micmac1/fs-libshout-deprecated
freeswitch: workaround mod-shout compile failure
2022-11-08 19:00:31 +01:00
Sebastian Kemper
145d0b3a30 freeswitch: workaround mod-shout compile failure
The recent libshout update causes compile failures due to deprecation.
This works around it. Can be removed once issue is fixed upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-07 22:07:53 +01:00
Guilherme Janczak
1d3ed8031d
pcapsipdump: fix linking against libobsd
This just makes it so libbsd is picked up through pkg-config. It adds
support for libobsd without breaking libbsd.

Signed-off-by: Guilherme Janczak <guilherme.janczak@yandex.com>
2022-11-04 17:22:58 +00:00
Jiri Slachta
0403af50b1
Merge pull request #785 from micmac1/ast20
asterisk: bump to 20.0.0 LTS
2022-10-20 06:04:57 +02:00
Sebastian Kemper
5ddb85f494 asterisk: bump to 20.0.0 LTS
No longer existing modules removed from OpenWrt Makefile. Same for
configure switches. Patches refreshed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-19 23:19:30 +02:00
micmac1
33e6deadec
Merge pull request #784 from micmac1/kam562
kamailio: bump to 5.6.2
2022-10-19 20:26:03 +02:00
Sebastian Kemper
7163789ee1 kamailio: bump to 5.6.2
- 4 new modules: misctest, posops, siprepo & slack
- 140-redis_use_pkg-config.patch refreshed
- 160-ldap-rename-private-function-ldap_connect.patch and
  170-core-add-support-for-time64-libcs.patch removed (applied
  upstream)
- 160-siputils-fix-time_t-warning-and-a-typo.patch added to fix time_t
  warning (sent upstream, see [1])

[1] https://github.com/kamailio/kamailio/pull/3266

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-16 17:40:43 +02:00
Sebastian Kemper
457552110e kamailio: fix dep for keepalive module
Currently the dependency is in the wrong position.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-16 17:15:18 +02:00
Sebastian Kemper
07cbb38db1 kamailio: add descriptions via BuildKamailioModule
The Makefile currently advertises that descriptions can be added by
specifying a string in argument 3 of BuildKamailioModule, but there's
actually no mechanism for this. This commit adds the missing pieces.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-16 17:09:24 +02:00
micmac1
fa14037e8a
Merge pull request #783 from micmac1/fs-1.10.8
freeswitch: bump to 1.10.8
2022-10-15 18:57:06 +02:00
Sebastian Kemper
66cddc0459 freeswitch: bump to 1.10.8
- minor version bump
- mod-dingaling, mod-unimrcp and apr-util got removed from source tar
  ball, prompting some cleanup
- patches refreshed

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-15 16:49:42 +02:00
Sebastian Kemper
b1fa575a12 libks: bump to 1.8.0
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-15 16:42:14 +02:00
micmac1
176665c2a6
Merge pull request #781 from micmac1/rtpengine-mqtt
rtpengine: add mqtt dep
2022-10-15 11:00:27 +02:00
Sebastian Kemper
2a13d2eb1e rtpengine: add mqtt dep
rtpengine will use the lib if found, so add it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-15 09:56:12 +02:00
Jiri Slachta
a16f7ce898
Merge pull request #780 from micmac1/rtpengine-10.5.2.6
rtpengine: bump to 10.5.2.6
2022-10-15 08:35:13 +02:00
Sebastian Kemper
432432458a rtpengine: bump to 10.5.2.6
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-15 00:51:28 +02:00
micmac1
2d70a4ce02
Merge pull request #777 from micmac1/sof-1.13.9
sofia-sip: bump to 1.13.9
2022-09-30 11:01:42 +02:00
micmac1
a48a0cafd4
Merge pull request #778 from micmac1/sngrep-1.6.0
sngrep: bump to 1.6.0
2022-09-30 11:00:50 +02:00
Sebastian Kemper
839c181348 sngrep: bump to 1.6.0
- use pcre2 instead of pcre
- add zlib support

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-09-25 11:50:40 +02:00
Sebastian Kemper
b563e61455 sofia-sip: bump to 1.13.9
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-09-25 11:04:22 +02:00
Jiri Slachta
649bd22c22
Merge pull request #776 from micmac1/ast-18.4
asterisk: bump to 18.14.0 (includes pjproject bump)
2022-08-21 12:23:20 +02:00
Sebastian Kemper
aa3bc352e7 asterisk: bump to 18.14.0
- add new modules
- res-geolocation depends on asterisk being built with libxlt support,
  but to make libxslt a general dependency is probably not a good idea
  for small devices, so this adds a config option
  ASTERISK_LIBXSLT_SUPPORT that is off by default except on x86_64
  builds
- correct some module titles by removing the extraneous "support" string
- refresh patches
- 170-time-add-support-for-time64-libcs.patch,
  180_build-fix-bininstall-launchd-issue-on-cross-platfrom.patch and
  190-logger-workaround-woefully-small-BUFSIZ-in-MUSL.patch removed as
  included in upstream release
- added 170-menuselect-force-use-of-xml2-config.patch as upstream
  switched to use pkg-config for libxml2 detection, which would be fine,
  except OpenWrt's host libxml2 is static and Asterisk can't handle that

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-08-20 17:12:39 +02:00
Sebastian Kemper
a572285886 pjproject: bump to 2.12.1
- add "--disable-android-mediacodec" to configure
- add EXCLUDE_APP=1 to "make" calls so some apps aren't built (speeds up
  the build a bit)
- drop "sed" call as no longer needed
- drop uclibc related patches
  (0002-uclibc-linker-unrecognized-options.patch and
  0003-non-gnu-pthreads.patch)
- update 0004-config_site.patch to sync up with Asterisk 18.14.0
- drop 0005-remove-hardcoded-lstdc++.patch as uclibcxx was removed from
  OpenWrt
- update 0006-fix-pkg_config-file.patch as there were some changes in
  this area upstream
- add 0007-execinfo.patch to prevent errors due to missing <execinfo.h>
- sync patches with 18.14.0

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-08-20 11:15:34 +02:00
Jiri Slachta
f129efb035
Merge pull request #775 from micmac1/chan-dongle-iconv-update
asterisk-chan-dongle: adapt BUILD_NLS handling
2022-07-16 23:39:02 +02:00
Sebastian Kemper
4e30b64604 asterisk-chan-dongle: adapt BUILD_NLS handling
openwrt recently stopped using libiconv-stub in the BUILD_NLS=n case.
Instead the libc's iconv has to be used.

This commit changes the iconv include path passed to
asterisk-chan-dongle for the BUILD_NLS=n case to
$(TOOLCHAIN_DIR)/include. That's where musl and glibc store iconv.h.

Also, the patch 200-fix-iconv-detection.patch gets replaced with a sed
script that only runs in the BUILD_NLS=y case.

And finally, $(AUTORELEASE) is added.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-07-16 20:34:25 +02:00
micmac1
f50096a8a0
Merge pull request #773 from micmac1/fs-gcc-12
freeswitch: workaround for compile fail with gcc 12
2022-06-15 00:35:40 +02:00
Sebastian Kemper
62929c24b6 freeswitch: workaround compile fail with gcc 12
An issue report already exists upstream [1].

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

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-06-12 10:10:44 +02:00
micmac1
ce64b9c01a
Merge pull request #772 from PolynomialDivision/fix-compile
rtpengine: fix compilation with iptables 1.8.8

Thanks!
2022-06-08 23:33:13 +02:00
Nick Hainke
2d9385f120 rtpengine: fix compilation with iptables 1.8.8
The extension handling changed [0,1]. Fix compilation with iptables
1.8.8 [2].

[0] - https://git.netfilter.org/iptables/commit/?id=ef108943f69a6e20533d58823740d3f0534ea8ec
[1] - https://git.netfilter.org/iptables/commit/?id=6c689b639cf8e2aeced8685eca2915892d76ad86
[2] - https://github.com/openwrt/openwrt/pull/9886

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-06-08 21:14:51 +02:00
Jiri Slachta
1fc2c77420
Merge pull request #768 from micmac1/github-sync-with-packages
CI: sync up with changes in packages repo
2022-05-31 21:45:53 +02:00
Sebastian Kemper
ff8addfd97 CI: sync up with changes in packages repo
Catch up with the changes in the packages repository. All changes are
manual cherry picks from the packages repo and listed below.

github: adapt templates

Remove refs to LEDE and use "OpenWrt" instead of "OpenWRT"

Remove instructions on self-checking pull request content for the
following considerations

 - The checks are now enforced by travis autocheck scripts
 - Github now prompts users to refer to the contributing guide on
   submitting new issue and pull request

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit f552f738e2d4bb1fc15acde8b7410e3d37586e2f)

repo: Add more information to the issue template

Rephrase the template a bit and add information about
older releases and forks.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
(cherry picked from commit 31179ef2a414412871c1c23a9b3e506a5eab1ef8)

CI: use new `openwrt` Docker username

We now own `openwrtorg` and `openwrt`, where the latter replaces the
former. Slowly migrate over.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit b164a3aa32caa181feff8074ecce3a42b052b060)

CI: define matrix individually and add targets

This allows more specific definition per test, like on which target
packages should be compiled.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 3701000051afe81c0f6c166a924828706cf21b05)

CI: reformat extra long line

Better readability on split screens.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 81f7461e66c877a9d1f6c751fd92252e950370c3)

CI: test build dependent packages

By using OPKGs `whatdepends` all packages dependent on a library are
printed. Use that feature to obtain packages which a version change may
break and build them as well.

Change "default" packages to contain a lib on which other packages
depend, instead of compiling `tmux` compile `attendedsysupgrade-common`
on which other packages depend.

Ignore any LuCI packages which only contains translations.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit c0d0c64f6ca1cbed2586812cad9d7da7b6e5e542)

CI: revert adding of *depending* packages

While the idea may make sense the current implementation is faulty.
Problem is that OpenWrt uses the folder name of packages within the
build system while `opkg` spits out the actual packages names.

An example, compiling the packages of folder `vim` (`make
package/vim/compile`) creates a package called `xxd`, where `make
package/xxd/compile` would fail.

The current implementation uses `opkg` to figure out dependent packages,
but the resulting names do not match the above mentioned folders.

Revert this for now until we come up with a better implementation to
avoid false positive CI failures.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit a2bda4cc69e4121dccba097578bbd0bd40d0675d)

github-ci: fix small typo

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
(cherry picked from commit 05a3011b00f7128c5f46c2d05999937fc01dc2ca)

CI: update SDK action to v3

No also check mirror hashes and badly formated init files

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 291d1f255abefbc05e53bb3019ed7a13e1826ef2)

github-ci: also build mipsel_24kc / mt7621

Signed-off-by: Kevin David <kevin.p.david@gmail.com>

This seems like a fairly popular configuration and is at least handy for me for temporary testing.

(cherry picked from commit a5de3d04557eccd1db58a35ab9f76b38eab4bfb4)

artifacts: use git commit sha in name

Signed-off-by: Peter van Dijk <peter.van.dijk@powerdns.com>
(cherry picked from commit bbf983721cf41fd94388b16ce90f018d6c0496f5)

CI: add PKG-INFO metadata file

Signed-off-by: Peter van Dijk <peter.van.dijk@powerdns.com>
(cherry picked from commit a40c1b3e442eccbf0619f06b473705f4a4a0ac6d)

CI: do not crash during PKG-INFO generation if there are no packages

Signed-off-by: Peter van Dijk <peter.van.dijk@powerdns.com>
(cherry picked from commit b5132de5cf4f7d0562445cf3c65f9f1a4bcb1bbf)

CI: fix runtime testing for non master branch

The runtime testing always ran on master branch aka snapshots since the
branch wasn't passed over to the container execution!

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit f535d770901674d7d9f3d8cd9abe566d9db63ebe)

ci: use openwrt/gh-action-sdk@v4

In order to use feeds from GH mirror for GH actions, thus saving a lot
of resources being wasted. While at it fix whitespace issue.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit b1355832a05f96d96081044a90b4c9137eb15fad)

github: fix typo in issue template

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit ffdc2b09eada82dd563f23a9a51e4ef8e233920f)

ci: Look for changed packages in the PR branch only

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 6b2294ac379ecae55993a8faa583910423f620e7)

ci: Use openwrt/gh-action-sdk@v5

The previous build errors with v5 have been fixed. This version builds
packages as a normal user instead of as root.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 37f9b77b01fd148c946dc313869602fb8203eaea)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-05-31 21:29:41 +02:00
micmac1
8edd28e0bd
Merge pull request #767 from micmac1/sof-1.13.8
sofia-sip: bump to 1.13.8
2022-05-30 18:56:20 +02:00
Sebastian Kemper
1efc4f3f98 sofia-sip: bump to 1.13.8
Some security issues were fixed. Upstream labelled them as follows:

GHSA-79jq-hh82-cv9g: Fix Out-of-bound read in sip_method_d
GHSA-g3x6-p824-x6hm: Fix Out-of-bound read in url_canonize2 and
                     url_canonize3
GHSA-8w5j-6g2j-pxcp: Fix Heap-buffer-overflow in parse_descs and
                     parse_message

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-05-30 18:29:35 +02:00
micmac1
056e93c1ad
Merge pull request #764 from micmac1/libsrtp-openssl
libsrtp: use OpenSSL
2022-05-03 23:18:08 +02:00
Sebastian Kemper
9b9ef7ff84 libsrtp: use OpenSSL
Use OpenSSL instead of the internal crypto backend. Everything in
OpenWrt that links to libsrtp2 depends on OpenSSL anyway.

Upsides:

  - the libsrtp2 package size shrinks a bit (for example from 35 to 24
    KiB on ath79)
  - allows to use more cipher suites
  - may allow for hardware acceleration

Closes #763

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-04-30 18:14:42 +02:00
micmac1
cf06463863
Merge pull request #759 from micmac1/ast-disable-libxslt
asterisk: add --without-libxslt to configure
2022-04-17 12:47:11 +02:00
Sebastian Kemper
64a1d2faef asterisk: add --without-libxslt to configure
Since upstream commit b40c4d59b1dd803cad79060fb5b5a48d249ba578
"--disable-xmldoc" does no longer prevent the linking to libxslt, if
available. If that's the case one is greeted with the following error:

Package asterisk is missing dependencies for the following libraries:
libxslt.so.1

This commit explicitly disables the use of libxslt, to avoid the
dependency.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-04-17 10:57:22 +02:00
Jiri Slachta
1518d145c3
Merge pull request #756 from micmac1/ast-18.11.2
asterisk: bump to 18.11.2
2022-04-16 19:20:54 +02:00
Sebastian Kemper
23925c22f8 asterisk: add logger patch
Add a patch from Philip that got upstreamed. This is in reference to
issue #737.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-04-15 17:17:10 +02:00
Sebastian Kemper
c1cb4fd1a4 asterisk: replace time64 patch
This replaces the current patch with the one upstreamed by Philip.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-04-15 17:16:40 +02:00
Sebastian Kemper
958401fa8f asterisk: bump to version 18.11.2
- add two new modules (app_sf and func_json)
- update 100-build-reproducibly.patch as upstream refactored some of the
  code
- refresh patches

This bump includes fixes for the following security issues:

https://downloads.asterisk.org/pub/security/AST-2022-001.html
https://downloads.asterisk.org/pub/security/AST-2022-002.html
https://downloads.asterisk.org/pub/security/AST-2022-003.html

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-04-15 16:41:43 +02:00
Sebastian Kemper
0c67ab5831 pjproject: sync patches with asterisk 18.11.2
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-04-15 16:21:24 +02:00
Jiri Slachta
24acd46d2a
Merge pull request #739 from pprindeville/issue#738
asterisk: don't send stdout to syslog by default
2022-03-24 08:30:51 +01:00
micmac1
ced4ff20e3
Merge pull request #752 from micmac1/pj-AST
pjproject: add upstream security fixes
2022-03-06 12:15:25 +01:00
Sebastian Kemper
623e5288f1 pjproject: add upstream security fixes
Details:

https://downloads.asterisk.org/pub/security/AST-2022-004.html
https://downloads.asterisk.org/pub/security/AST-2022-005.html
https://downloads.asterisk.org/pub/security/AST-2022-006.html

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-03-05 16:58:02 +01:00
micmac1
e44178af63
Merge pull request #751 from micmac1/mod-av-BROKEN
freeswitch: mark mod-av BROKEN
2022-03-04 00:46:59 +01:00
Sebastian Kemper
7b79a34166 freeswitch: mark mod-av BROKEN
FS is not yet ready for FFMPEG 5.0. Upstream has a related issue already
([1]).

Also move to AUTORELEASE.

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

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-03-03 23:08:12 +01:00
micmac1
8cf20bc21c
Merge pull request #749 from micmac1/rtpengine-host-perl
rtpengine: use perl/host when building
2022-02-27 12:22:52 +01:00
Sebastian Kemper
3657828ae3 rtpengine: use perl/host when building
utils/const_str_hash is called by rtpengine build system. The Perl
script uses shebang "#!/usr/bin/perl" and depends on perl-IPC-Cmd. If
this is missing the build will fail:

../utils/const_str_hash < "control_ng.c" > "control_ng.strhash.c"
Can't locate IPC/Cmd.pm in @INC (you may need to install the IPC::Cmd module) (@INC contains: /usr/local/lib64/perl5/5.34 /usr/local/share/perl5/5.34 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ../utils/const_str_hash line 6.
BEGIN failed--compilation aborted at ../utils/const_str_hash line 6.
make[4]: *** [../lib/common.Makefile:46: control_ng.strhash.c] Error 2

OpenWrt does not depend on perl-IPC-Cmd being available, so this commit
makes rtpengine build depend on perl/host, which provides this Perl
module.

Closes #748

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-02-26 18:02:34 +01:00
micmac1
980c6cd4d0
Merge pull request #745 from micmac1/pj-AST-2021-009-2
pjproject: add missing patch for AST-2021-009
2022-02-20 23:31:56 +01:00
Sebastian Kemper
1ac119d6c8 pjproject: add missing patch for AST-2021-009
AST-2021-009 has two patches, the second of which was missed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-02-20 23:10:07 +01:00
Jiri Slachta
9fe1266431
Merge pull request #744 from micmac1/siproxd-up
siproxd/libosip2: update to latest
2022-02-20 13:35:39 +01:00
Sebastian Kemper
10f2be5400 siproxd: update to latest git
This includes time64 fixes plus allows reproducible builds.

Also switch to $(AUTORELEASE)

Closes #613
Closes #742

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-02-20 13:19:23 +01:00
Sebastian Kemper
99a0f61304 libosip2: update to 5.3.0
Switch to $(AUTORELEASE).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-02-20 13:16:35 +01:00
micmac1
703bf7013d
Merge pull request #740 from svlobanov/kamailio-fix-build-on-macos
kamailio: fix build on macos
2022-02-14 21:28:56 +01:00
Jiri Slachta
f1f291d0b4
Merge pull request #743 from micmac1/bare-aud-sup
baresip: only build gst with AUDIO_SUPPORT enabled
2022-02-14 07:23:19 +01:00
Sergey V. Lobanov
f902c18fbc kamailio: fix build on macos
kamailio macos build fails due to kamailio Makefile checks OS
(`uname -s`) and OSREL (`uname -r`). If build host is not Linux,
then these checks will provide different results, but OpenWrt is
always Linux so target OS should be always Linux.

This patch explicitly specifies OS=linux and OSREL=$(LINUX_UNAME_VERSION)
to avoid using build host values for target build.

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-02-14 02:13:47 +03:00
Sebastian Kemper
4492cc2b83 baresip: only build gst with AUDIO_SUPPORT enabled
Most gstreamer packages aren't build when the target does not have
AUDIO_SUPPORT. This can be seen with realtek target (4kec).

This commit makes the gst plugins depend on AUDIO_SUPPORT, because
otherwise the build dies with this error:

Package baresip-mod-gst-video is missing dependencies for the following libraries:
libgstapp-1.0.so.0

Note: compiling baresip on a target without AUDIO_SUPPORT may be
questionable anyway.

Close #730

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-02-13 18:54:17 +01:00
micmac1
2afbe4fda6
Merge pull request #741 from svlobanov/asterisk-fix-build-on-macos
asterisk: fix build on macos
2022-02-13 12:41:11 +01:00
Sergey V. Lobanov
4209a36afe asterisk: fix build on macos
This commit adds a patch to fix /sbin/launchd detection on macos

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-02-09 02:03:30 +03:00
Philip Prindeville
fb0c2cf2b8 asterisk: don't send stdout to syslog by default
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2022-02-06 12:16:44 -07:00
micmac1
0eb623a3a6
Merge pull request #736 from svlobanov/yate-fix-build-on-macos
yate: fix build on macos
2022-02-06 10:50:52 +01:00
Sergey V. Lobanov
fb23e4f004 yate: fix build on macos
yate configure script uses `uname -s` to determine OS and changes
build logic regarding to build host OS. OpenWrt is always Linux so
it should be built as for Linux.

This patch uses fakeuname tool to pass `uname -s` checks as Linux
on macos build host.

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-02-06 11:46:51 +03:00
micmac1
ab94e2c73e
Merge pull request #734 from svlobanov/coturn-repro-and-macos-build-fix
coturn: improve reproducibility and fix build on macos
2022-02-06 08:41:32 +01:00
micmac1
d3b1787211
Merge pull request #729 from svlobanov/libpri-fix-build-on-macos
libpri: fix build on macos
2022-02-06 08:26:39 +01:00
Jiri Slachta
e0c9e89f1a
Merge pull request #735 from micmac1/restund-remove
restund: remove package
2022-02-01 18:27:17 +01:00
Sebastian Kemper
b508e76300 restund: remove package
Removing as upstream dropped the project. Users can use coturn instead.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-02-01 18:16:17 +01:00
Sergey V. Lobanov
ba23b92974 coturn: fix build on macos
coturn build fails on macos due using `ar -r` by default, but macos
system `ar` is not compatible with the objects generated by OpenWrt
GCC toolchain.

This patch redefines ARCHIVERCMD="$(TARGET_AR) -r" to make it possible
to build coturn on macos build host.

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-02-01 19:49:03 +03:00
Sergey V. Lobanov
8a4daac339 coturn: improve reproducibility (Ubuntu build host fix)
coturn package is reproducible unless the build OS is Ubuntu

coturn configure script detects Ubuntu build host([1]) and changes
compilation flags so produced OpenWrt binaries are different on
Ubuntu and any other build OS (e.g. Debian). It might be necessary
for native build but this check is not valid for cross-compiling.

This patch set LIBEV_OK=1 to generate the same binaries on Ubuntu
and other build OS

Refs:
[1] https://github.com/coturn/coturn/blob/upstream/4.5.2/configure#L426-L435

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-02-01 19:26:38 +03:00
micmac1
51e62de182
Merge pull request #732 from micmac1/sof-1137
sofia-sip: update to 1.13.7
2022-01-31 19:54:41 +01:00
Sebastian Kemper
f04a5a2383 sofia-sip: update to 1.13.7
Contains DOS fix, see [1].

Converted to AUTORELEASE.

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

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-01-31 19:34:13 +01:00
Sergey V. Lobanov
3424e0027d libpri: fix build on macos
libpri can not be built on macos for OpenWrt Linux target due to:
1. Makefile uses `ar` and `ranlib` (without using make variables).
   MacOS system ar and ranlib are not compatible with the objects
   generated by OpenWrt GCC toolchain. This commit adds patch to
   add an ability to redefine `ar` and `ranlib` tools.
   Upstream issue: https://issues.asterisk.org/jira/browse/PRI-188
2. Makefile detects Darwin using `uname -s` and changes build logic
   but it is not need for cross-platfrom build. This commit
   redefines OSARCH=Linux in OpenWrt Makefile
3. After redefining OSARCH=Linux, libpri Makefile uses /sbin/ldconfig
   that does not exist on MacOS. This commit redefines LDCONFIG=ldconfig
   in OpenWrt Makefile to use ldconfig provided by OpenWrt.

Patch '001-fix-include-signal-h-warning.patch' was refreshed to pass
CI checks. The payload of this patch was not changed.

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-01-30 14:40:24 +03:00
micmac1
561131d523
Merge pull request #728 from micmac1/rtpe9532
rtpengine: bump to 9.5.3.2
2022-01-22 15:10:53 +01:00
Sebastian Kemper
6ffb3e81d2 rtpengine: bump to 9.5.3.2
Latest LTS release. Switch to AUTORELEASE.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-01-22 11:55:56 +01:00
micmac1
33fda345d2
Merge pull request #726 from shalzz/master
asterisk-chan-dongle: update to the latest git HEAD
2022-01-04 14:16:42 +01:00
Shaleen Jain
409e797785 asterisk-chan-dongle: update to the latest git HEAD
The upstream commit 6073c91fcf0a46a1525d500c274fa5ab96af7dda broke
non-quectel devices due to the channel driver unable to complete
initialization.

This is fixed in the latest upstream commit.

Signed-off-by: Shaleen Jain <shaleen@jain.sh>
2022-01-04 16:09:08 +05:30
micmac1
323a790926
Merge pull request #725 from BKPepe/coturn
coturn: add libintl dependency when enabled full language support
2021-12-31 12:46:32 +01:00
Josef Schlehofer
f2a745c472
coturn: add patch for not linking libintl
If there is enabled CONFIG_BUILD_NLS, coturn can not be compiled.
It fails with the following error:

Package coturn is missing dependencies for the following libraries:
libintl.so.8

But thanks to @micmac1, it was realized that libintl
is not used anywhere in coturn, that's why there was sent PR to upstream.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2021-12-30 22:23:12 +01:00
Jiri Slachta
8c563cb3d8
Merge pull request #724 from micmac1/kam-time_t-ldap
kamailio: add upstreamed patches (compile fix + time64 fixes)
2021-12-23 23:26:16 +01:00
Sebastian Kemper
b0387a66ac kamailio: add patch for time64 libc support
This was upstreamed recently. All twelve commits were squashed into a
single patch.

Also the Makefile is switched to AUTORELEASE.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-12-22 21:49:56 +01:00
Sebastian Kemper
8ecd6e71fd kamailio: ldap: rename function ldap_connect
With the recently updated openldap, kamailio fails to build. This adds
an upstreamed patch to resolve this.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-12-22 21:39:31 +01:00
micmac1
7fa7115d7a
Merge pull request #722 from micmac1/ast-init
asterisk: init script changes
2021-12-22 21:21:52 +01:00
micmac1
4806e36ecd
Merge pull request #723 from micmac1/coturn-conffiles
coturn: add /etc/turnserver to conffiles
2021-12-22 21:21:14 +01:00
Sebastian Kemper
893f8d72a8 coturn: add /etc/turnserver to conffiles
If turndb it created in this folder it should be saved during
sysupgrade.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-12-19 12:59:35 +01:00
Sebastian Kemper
992c894c1c asterisk: init: use daemon facility, not user
This facility was suggested in pull request #701.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-12-19 12:46:54 +01:00
Andre Heider
c84e2f7414 asterisk: send SIGHUP on reload
asterisk reloads its config upon SIGHUP, use it.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2021-12-19 12:43:35 +01:00
micmac1
d080a6ec0e
Merge pull request #721 from BKPepe/fix-baresip-nls
baresip: fix compilation with NLS
2021-12-15 22:38:16 +01:00
Josef Schlehofer
edd47e20a8
baresip: fix compilation with NLS
Fixes issue:

/master/build/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-11.2.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/11.2.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: cannot find -lintl
  LD [M]  speex_pp.so
  LD [M]  stdio.so
collect2: error: ld returned 1 exit status
  LD [M]  syslog.so
make[3]: *** [mk/mod.mk:41: gst.so] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/master/build/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/baresip-1.1.0'

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2021-12-15 13:38:40 +01:00
Jiri Slachta
5e86575ad3
Merge pull request #720 from micmac1/restund-cve
restund: fix CVE-2021-21382
2021-12-09 11:37:04 +01:00
micmac1
b39127a7b2
Merge pull request #719 from micmac1/baresip-drop-rem-patch
baresip: drop 002-fix-rem-include.patch
2021-12-09 00:29:30 +01:00
micmac1
56e9310c8f
Merge pull request #715 from micmac1/coturn-checkin
coturn: new package
2021-12-09 00:28:55 +01:00
Sebastian Kemper
612a7535ee restund: fix CVE-2021-21382
Patches taken from [1].

Added a postinstall note about the upcoming deletion of this package.

[1] https://github.com/wireapp/restund/pull/7

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit dec6316f2f)
2021-12-09 00:22:45 +01:00
Sebastian Kemper
ceec95d92d coturn: new package
This is meant as a replacement for restund.

By default, sqlite3 support is enabled. The DBs to use can be freely
changed in menuselect, though. sqlite3 is enabled by default as it is
the upstream default DB.

The package installs turnserver, which includes an init script. Options
can be set via /etc/config/turnserver and /etc/turnserver.conf.

turnserver is started as root and later drops privileges to user/group
turnserver/turnserver.

DB schemas etc. get installed to /usr/share/coturn. The default DB path
is set to /etc/turnserver, to avoid volatile /var on OpenWrt.
/etc/turnserver is created and permissions are automatically set to only
allow access for user turnserver (done via fakeroot).

The utilities coturn provides are installed as well.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-12-08 16:58:44 +01:00
Sebastian Kemper
8e687b90b7 baresip: drop 002-fix-rem-include.patch
Setting LIBREM_PATH allows dropping the patch.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-12-08 16:22:31 +01:00
Jiri Slachta
1e49a312fa
Merge pull request #718 from micmac1/baresip110
baresip: bump to 1.1.0 (re to 2.0.1 and rem to 1.0.0)
2021-12-08 06:57:07 +01:00
Sebastian Kemper
3dc1f61329 baresip: bump to 1.1.0
- bump to version 1.1.0
- change to use AUTORELEASE
- drop rtcpsummary from baresip-mods as it is now part of the default
  modules
- update BARESIP_MOD_OPTIONS to allow for defining multiple variables
  per module (the new module ctrl-dbus requires both HAVE_GLIB and
  USE_DBUS)
- add new modules:
  - aac
  - amr (openamr still missing, but maybe amr passthrough becomes
    possible)
  - ausine
  - ctrl_dbus
  - ebuacip
  - gst
  - gst_video
  - httpreq
  - l16
  - mixausrc
  - mqtt
  - multicast
  - opus_multistream
  - serreg
  - snapshot
  - speex_pp
  - syslog
  - vidinfo
-updated 002-fix-rem-include.patch

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-12-07 00:27:35 +01:00
Sebastian Kemper
8b54b8f852 rem: bump to 1.0.0
- bump to version 1.0.0
- change to use AUTORELEASE
- point to github instead of now-defunct www.creytiv.com

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-12-07 00:16:16 +01:00
Sebastian Kemper
a93e411539 re: bump to 2.0.1
- bump to version 2.0.1
- change to use AUTORELEASE
- add ABI_VERSION
- refresh patches

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-12-07 00:13:35 +01:00
micmac1
5ee7928640
Merge pull request #713 from micmac1/sngrep1410
sngrep: bump to 1.4.10
2021-11-28 18:48:05 +01:00
Jiri Slachta
f9b91a196f
Merge pull request #712 from micmac1/srtp2.4
libsrtp: bump to 2.4.2
2021-11-28 18:39:41 +01:00
Sebastian Kemper
58658de45c sngrep: bump to 1.4.10
- switch to $(AUTORELEASE)
- drop PKG_MIRROR_HASH (leftover from when a git checkout was used)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-28 18:25:32 +01:00
Sebastian Kemper
10b7fcd4d1 rtpproxy: add build fix
- add upstream build fix related to libsrtp version bump
- switch to $(AUTORELEASE)
- refresh patch

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-28 18:18:16 +01:00
Sebastian Kemper
7e8ee8ac26 libsrtp: bump to 2.4.2
- switch to $(AUTORELEASE)
- update upstream URL
- add ABI_VERSION
- drop patch that is included upstream

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-28 18:14:12 +01:00
micmac1
490173c7c4
Merge pull request #710 from micmac1/clean_PKG_CONFIG_DEPENDS
freeswitch + freetdm: clean pkg config depends
2021-11-09 19:06:00 +01:00
Sebastian Kemper
10d500efb9 freeswitch: clean PKG_CONFIG_DEPENDS
CONFIG_FS_WITH_MODCONF doesn't influence configure and doesn't belong
here.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-09 18:59:56 +01:00
Sebastian Kemper
b58f66bddc freetdm: clean PKG_CONFIG_DEPENDS
CONFIG_FS_WITH_MODCONF doesn't influence configure and doesn't belong
here.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-09 18:58:45 +01:00
micmac1
0363331c8e
Merge pull request #706 from micmac1/fs-small-fixes
freeswitch + freetdm: small fixes
2021-11-07 22:46:08 +01:00
Sebastian Kemper
ebcdcb3547 freeswitch: add missing item to PKG_CONFIG_DEPENDS
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-07 20:26:27 +01:00
Sebastian Kemper
70fa153500 freetdm: remove wrong InstallDev defines
They currently don't work, but we don't need them anyway. This removes
them.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-07 20:24:00 +01:00
Sebastian Kemper
4c24ad93d3 freetdm: fix PKG_CONFIG_DEPENDS
One is missing and one is misspelled.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-07 20:21:36 +01:00
micmac1
6130c3a967
Merge pull request #705 from micmac1/python3-setup
freeswitch: build fix + patch update
2021-11-07 11:03:30 +01:00
micmac1
0a15acef4b
Merge pull request #702 from micmac1/ast-master-mods
asterisk: add missing modules + dependency
2021-11-06 12:38:40 +01:00
Sebastian Kemper
6004044dc0 freeswitch: update 480-fix-libyuv-dependency.patch
Update the patch with the version that actually was applied upstream. No
functional change.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-06 12:29:18 +01:00
Sebastian Kemper
eb145cd014 freeswitch: don't check for distutils
We're not using distutils, so don't check for it. This fixes #704.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-06 12:25:56 +01:00
Sebastian Kemper
42574d54d4 freeswitch: only include python3-version.mk
We're just interested in the version, no need to include more than that.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-06 12:25:09 +01:00
Sebastian Kemper
04b6b267f1 asterisk: add missing modules + dependency
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-04 19:21:27 +01:00
micmac1
d337eeadfc
Merge pull request #693 from dhewg/asterisk-opus
asterisk: add opus read and write support
2021-11-03 18:16:03 +01:00
Andre Heider
a7e5bda0ce asterisk-opus: enable format_ogg_opus_open_source
This enables reading and rewriting ogg/opus files.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2021-11-03 05:40:03 +01:00
Andre Heider
5bb38c2f09 asterisk-opus: update to git master as of 2021-11-01
Setting AST_MODULE_SELF_SYM is no longer required.

Update the Makefile patch for the new version, the functional changes are
the same except the added -Wall compiler flag.

Switch to AUTORELEASE while at it.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2021-11-03 04:36:05 +01:00
micmac1
8c4b67dfe2
Merge pull request #699 from micmac1/kam552
kamailio: bump to 5.5.2
2021-11-02 22:14:51 +01:00
Sebastian Kemper
7c379687d0 kamailio: bump to 5.5.2
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-02 19:45:10 +01:00
micmac1
2e21cfdd9e
Merge pull request #698 from micmac1/fs1107
freeswitch: bump to 1.10.7
2021-10-31 15:52:17 +01:00
Sebastian Kemper
3fafe1afac freeswitch: fix 230-mod_radius_cdr.patch
This is a patch in a patch. It may happen that the patch was already
applied previously, so this amends the patch line to continue if the
patch doesn't apply. It also sets the direction to forward-only.

Also removes two trailing whitespace warnings.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-10-31 08:52:51 +01:00
Sebastian Kemper
fd0c65d379 freetdm: add package
It was moved from the freeswitch source tree into its own package.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-10-30 23:08:38 +02:00
Sebastian Kemper
652d110b2f freeswitch: add python3 support
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-10-30 23:08:00 +02:00
Sebastian Kemper
4ab96a1879 freeswitch: bump to 1.10.7
- freetdm is now external
- added the freeswitch library to InstallDev in preparation for freetdm
  package
- add time64 change which always uses "lld" format and casts
- various fixes related to general build and time64 especially
- patches refreshed

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-10-30 23:07:04 +02:00
Sebastian Kemper
940613cd7b sofia-sip: bump to 1.13.6
Required for freeswitch 1.10.7.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-10-30 21:32:07 +02:00
micmac1
5ced7ea4fc
Merge pull request #695 from neheb/1
rtpengine: update to 9.5.2.1
2021-10-23 20:15:29 +02:00
micmac1
96d4857ba5
Merge pull request #697 from micmac1/dongle-perms-dirs
asterisk/asterisk-chan-dongle: address permission issues
2021-10-23 20:06:14 +02:00
Sebastian Kemper
829c1cf031 asterisk-chan-dongle: add postinst note
Provide quick hint to users to sort out possible/likely permission
issue.

Also refreshes some patches.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-10-23 18:28:56 +02:00
Sebastian Kemper
9017e04b87 asterisk: don't start with explicit group
Currently the asterisk init script starts the service with the group
"asterisk". Like this, even if the asterisk user is part of other groups,
asterisk will not be able to make use of them. So for instance if you add the
user to the group "dialout", asterisk will run under group "asterisk", instead
of "asterisk" _and_ "dialout".

Not specifying the group gets rid of this limitation.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-10-23 00:12:15 +02:00
micmac1
f56b9ff2dc
Merge pull request #683 from micmac1/ast-chan-lantiq-dtmf
asterisk-chan-lantiq: update for DTMF fix
2021-10-22 17:29:50 +02:00
micmac1
f92a7a08ba
Merge pull request #691 from rojer/dongle_update
asterisk-chan-dongle: bump for upstream fixes
2021-10-22 17:25:20 +02:00
micmac1
9ea346c1f5
Merge pull request #692 from dhewg/asterisk
asterisk: bump to 18.7.1 and adjust for musl 64bit time_t
2021-10-22 17:17:57 +02:00
Rosen Penev
647996dc78 rptengine: update to 9.5.2.1
Fixes compilation with glib 2.7.0.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-10-20 13:41:41 -07:00
Andre Heider
a03d699262 asterisk: adjust for musl 64bit time_t
Fixes #690.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2021-10-18 14:23:47 +02:00
Andre Heider
0399a3dc73 asterisk: bump to 18.7.1
The removed patch has been applied upstream and is part of this release.

Switch to AUTORELEASE while at it.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2021-10-18 14:23:47 +02:00
Andre Heider
376473b38c pjproject: sync patches with asterisk 18.7.1
Switch to AUTORELEASE while at it.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2021-10-18 14:23:46 +02:00
micmac1
e05e0095d4
Merge pull request #694 from micmac1/fs-nogroup
freeswitch: don't start with explicit group
2021-10-17 20:45:01 +02:00
Sebastian Kemper
060be263d2 freeswitch: don't start with explicit group
Currently the freeswitch init script starts the service with the group
"freeswitch". Like this, even if the freeswitch user is part of other
groups, freeswitch will not be able to make use of them. So for instance
if you add the user to the group "dialout", freeswitch will run under
group "freeswitch", instead of "freeswitch" _and_ "dialout".

Not specifying the group gets rid of this limitation.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-10-10 11:26:41 +02:00
Deomid "rojer" Ryabkov
02d5dc545e asterisk-chan-dongle: bump for upstream fixes
To pull in fixes, specifically 3d2a97f26b which fixes decoding of SMS messages.

Also fixes https://github.com/openwrt/telephony/issues/686
and pulls in Quectel support (alternative to https://github.com/openwrt/telephony/pull/682).

Signed-off-by: Deomid "rojer" Ryabkov <rojer@rojer.me>
2021-09-29 11:07:04 +01:00
Jiri Slachta
bbdf6706cf
Merge pull request #689 from micmac1/yate-no-parallel
yate: disable parallel builds
2021-09-23 19:13:12 +02:00
Sebastian Kemper
ec400c16c3 yate: disable parallel builds
Sporadic build failures are visible on the build bots.

libyate.so: undefined reference to `TelEngine::ClientLogic::initStaticData()'
libyate.so: undefined reference to `TelEngine::DefaultLogic::DefaultLogic(char const*, int)'
collect2: error: ld returned 1 exit status

Turning off parallel builds should (hopefully) work around this.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-09-22 18:29:41 +02:00
Sebastian Kemper
ec6ba744b0 asterisk-chan-lantiq: update for DTMF fix
Bump to last commit. Includes fix for DTMF causing call release when
using Asterisk 18 (see [1]).

[1] https://github.com/openwrt/telephony/issues/631

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-09-12 00:11:59 +02:00
Jiri Slachta
12ff4b096d
Merge pull request #673 from micmac1/ast-macro
asterisk: update AST_EXT_TOOL_CHECK for OpenWrt
2021-09-07 23:26:15 +02:00
micmac1
7b3a4c574b
Merge pull request #679 from micmac1/rtpe9lts
rtpengine: bump to LTS version 9.5.1.3
2021-08-30 10:40:44 +02:00
Sebastian Kemper
d39dc81287 rtpengine: bump to LTS version 9.5.1.3
This

 - updates the dependencies
 - makes rtpengine use spandsp3 (it supports this version now)
 - fixes /etc/modules.d/ipt-rtpengine (needs user and group ids instead
   of names)
 - adds user as well when kmod is installed so that abovementioned user
   and group ids are available
 - adds /etc/modules.d/ipt-rtpengine to conffiles
 - removes 01-cflags.patch since upstream fixed the flag handling
 - removes 200-openssl-deprecated.patch as it was integrated upstream

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-08-29 12:34:46 +02:00
micmac1
bc7b1bcc54
Merge pull request #677 from micmac1/fs-no-bashisms
freeswitch: remove "+=" operator for portability
2021-08-28 19:19:15 +02:00
Sebastian Kemper
7392aea053 freeswitch: remove "+=" operator for portability
POSIX shells don't support "+=" operators. This commit replaces it with
something portable.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-08-27 23:38:19 +02:00
micmac1
e2ba088d6f
Merge pull request #675 from micmac1/gsm-ext-intl
gsmlib: disable NLS
2021-08-23 21:20:17 +02:00
Sebastian Kemper
b86cf0cdc6 gsmlib: disable NLS
It's not wanted, so add "--disable-nls" to override user selecting
CONFIG_BUILD_NLS.

This also updates 01-update-autotools.patch to make these disappear:

ERROR: Use of AM_GNU_GETTEXT without [external] argument is no longer supported.

Makefile.am:21: warning: 'intl' should not be in SUBDIRS when AM_GNU_GETTEXT([external]) is used

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-08-22 16:44:53 +02:00
Sebastian Kemper
79a0acfe56 asterisk: update AST_EXT_TOOL_CHECK for OpenWrt
Issue #672 shows that the current macro has some pitfalls, at least when
running within OpenWrt's buildroot.

The macro is used to detect these tools:

  1. xml2-config
  2. mysql_config
  3. neon-config
  4. net-snmp-config
  5. sdl-config (we're not using SDL)

The macro also adds configure arguments that allow to specify a path
like so:

  --with-mysqlclient=PATH

Macro problems:

  1. If no PATH is specified, it adds "/bin" to the search path.
     Obviously this is a bad thing when cross-compiling.
  2. If a PATH is specified, it adds it to the start of every include
     and library path it encounters. These paths are then broken.

This commit makes problem 1 go away by making the addition of
"${$1_DIR}/bin" to the PATH dependent on there being a PATH handed to
the macro. An alternative would be to remove the PATH addition
altogether, but then the macro wouldn't behave as expected.

It also removes the path filtering of the include and lib dirs to
address problem 2.

Closes #672

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-08-20 23:29:31 +02:00
micmac1
2feac1069f
Merge pull request #671 from micmac1/fs-stop
freeswitch: set stop level
2021-08-19 21:25:39 +02:00
Sebastian Kemper
0b942dad3f freeswitch: set stop level
This sets STOP to 10 to allow for a graceful shutdown. Users may
additionally need to set "term_timeout" in /etc/config/freeswitch to a
sensible value.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-08-17 18:11:53 +02:00
micmac1
6f004e7dee
Merge pull request #654 from neheb/g
freeswitch: fix compilation with GCC11
2021-08-04 19:07:39 +02:00
Jiri Slachta
e0f93da595
Merge pull request #664 from micmac1/bsipvid
baresip: allow avcodec build by default
2021-08-04 12:58:22 +02:00
Jiri Slachta
a7bbc46a02
Merge pull request #666 from robho/yate_6.4.0
yate: bump to 6.4.0
2021-08-04 12:57:04 +02:00
Jiri Slachta
49e5506a22
Merge pull request #663 from micmac1/ast1851
asterisk: bump to 18.5.1
2021-08-04 12:56:39 +02:00
Rosen Penev
213538cdc8 freeswitch: fix compilation with GCC11
GCC 11 is more strict with declarations.

Also backport patch fixing mod_gsmopen compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-08-04 01:45:54 -07:00
micmac1
3891a2ed06
Merge pull request #665 from micmac1/sofi4
sofia-sip: bump to 1.13.4
2021-08-03 20:48:41 +02:00
Robert Högberg
7c35652d3a yate: bump to 6.4.0
Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
2021-08-03 20:34:31 +02:00
Sebastian Kemper
75d4a30a06 sofia-sip: bump to 1.13.4
Fixes some issues, for instance a segfault during shutdown when
sofia-sip wasn't fully loaded, see [1]. The segfault was reproducible
by simply calling "freeswitch -help".

The added patch is to address a library versioning regression, patch is
from upstream.

[1] https://github.com/freeswitch/sofia-sip/issues/58

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-08-03 18:14:01 +02:00
Sebastian Kemper
db67f9b405 baresip: allow avcodec build by default
ffmpeg hasn't been failing for a while now it seems. And on the forum a
topic was raised regarding the unavailability of the video modules (see
[1]).

[1] https://forum.openwrt.org/t/cant-download-baresip-mod-avcodec-and-baresip-mod-avformat-no-video-with-v4l2-codec-in-baresip-to-baresip-video-call/101037

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-07-31 11:49:03 +02:00
Sebastian Kemper
b621ed3f81 asterisk: bump to 18.5.1
Update deps of asterisk-res-pjproject. It depends on res_sorcery_config,
which is part of asterisk-res-sorcery.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-07-31 11:28:46 +02:00
Sebastian Kemper
95611304d9 pjproject: sync patches with asterisk 18.5.1
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-07-31 11:24:10 +02:00
Jiri Slachta
492c89974b
Merge pull request #662 from micmac1/kam-sed
kamailio: replace patch with sed script
2021-07-24 11:36:45 +02:00
Sebastian Kemper
f25b4a8635 kamailio: replace patch with sed script
On the build bots the patch patches clashes with Build/Prepare. This
commit removes it in favor of a simple sed script. The resulting change
is identical.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-07-23 17:16:36 +02:00
micmac1
02e43af132
Merge pull request #659 from neheb/gsmm
gsmlib: set C++ standard to 11
2021-07-22 11:58:49 +02:00
Jiri Slachta
27673cd5e3
Merge pull request #657 from micmac1/kam-arm
kamailio: prevent arm -march overrides
2021-07-22 09:36:34 +02:00
Rosen Penev
04ee9bc528 gsmlib: set C++ standard to 11
throw() was removed in C++17, which GCC11 defaults to.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-07-21 17:37:23 -07:00
Jiri Slachta
9e00d5ff6d
Merge pull request #658 from dangowrt/asterisk-18.5.0
asterisk: update to version 18.5.0 and backport patch
2021-07-21 20:21:49 +02:00
Daniel Golle
20e8c3b2d9 asterisk: update to version 18.5.0 and backport patch
Update to upstream version 18.5.0 and backport commit[1] completing the
announcements in Dial command to behave like it is stated in the
documenation[2].

[1]: 1e5a2cfe30
[2]: https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Application_Dial

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-07-21 14:53:21 +01:00
Sebastian Kemper
d6ddedbe50 kamailio: prevent arm -march overrides
src/Makefile.defs adds "-march=..." to target flags for ARM targets.
This can clash with the OpenWrt target flags in
CONFIG_TARGET_OPTIMIZATION. If for example the latter is set to
"-mcpu=cortex-a9" the following warning is issued:

cc1: warning: switch '-mcpu=cortex-a9' conflicts with '-march=armv5t' switch

This commit removes these flags. The addition is unwanted when
cross-compiling.

An issue was raised for this recently, see [1].

[1] https://github.com/openwrt/packages/issues/16135

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-07-15 22:15:31 +02:00
micmac1
9bcff2c04c
Merge pull request #653 from neheb/d
dahdi-tools: fix compilation with musl 1.2.x
2021-07-13 21:00:37 +02:00
Rosen Penev
972350e2ea dahdi-tools: fix compilation with musl 1.2.x
Missing header.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-07-08 17:16:56 -07:00
Jiri Slachta
20abe8c354
Merge pull request #649 from robho/yate_increase_sip_msg_size
yate: increase max acceptable size of incoming SIP messages
2021-06-11 14:58:19 +02:00
Robert Högberg
621352af15 yate: increase max acceptable size of incoming SIP messages
Some SIP UAs support lots of features and codecs which results in
large SIP messages. YATE, with its default configuration, truncates
and fails to parse received SIP messages which are larger than 1500
bytes. Let's increase the default max message size for OpenWrt users
to make it easier to use yate out-of-the-box.

The new max size of 8192 bytes has been arbitrarily chosen.

I've seen the SIP UA baresip produce messages larger than 1500 bytes
with its default configuration when authentication is used.

Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
2021-06-08 10:30:36 +02:00
Jiri Slachta
e27d3ea4eb
Merge pull request #648 from robho/yate_6.3.0
yate: bump to 6.3.0 and enable speex codec
2021-06-08 07:45:04 +02:00
Robert Högberg
da7fcbd600 yate: bump to 6.3.0 and enable speex codec
New yate modules in this release:
yate-mod-ilbcwebrtc
yate-mod-speexcodec
yate-mod-wiresniff

Some patches were removed:
110-no-libnsl.patch - not needed
120-create-thread-key-on-access.patch - not needed
150-video-codecs-mapping.patch - already applied upstream

Some additional changes:
* An upstream fix (r6470) is cherry-picked to avoid crashing when YATE
  receives an invalid SIP message.

* Build directory changed to include package version.

* Set PKG_BUILD_PARALLEL to allow parallelized build of yate.

* Speed up build if yate-mod-ilbccodec or yate-mod-sqlitedb is
  disabled (disable ilbc and sqlite in configure step).

* Removing umbrella package yate-collection-basic. It isn't built and
  hasn't been built for years and I think the modules it wants to
  install are a bit strange and probably not useful to most
  users. From the name yate-collection-basic I would expect to get
  some basic functionality, but why would I then need
  yate-mod-dumbchan, yate-mod-rmanager and yate-mod-tonegen? What is
  the use case? I think it's better that users themselves install the
  packages needed for their use case, especially in OpenWrt where
  flash space usually is limited and you don't want to install more
  packages than what you really need.

Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
2021-06-07 12:46:45 +02:00
micmac1
2f37c73705
Merge pull request #644 from micmac1/fs1106-nua-mem-leak
sofia-sip: add upstream fix for memory leak
2021-05-27 22:02:37 +02:00
Sebastian Kemper
5585fb0917 sofia-sip: add upstream fix for memory leak
Upstream provided a patch for a memory leak in Sofia SIP (see [1] for
more information).

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

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-05-27 20:17:24 +02:00
Jiri Slachta
2071d9fad2
Merge pull request #643 from jslachta/asterisk.18.4.0
asterisk: update to 18.4.0
2021-05-12 21:14:31 +02:00
Jiri Slachta
ec3a124bfc asterisk: update to 18.4.0
Patches updated/refreshed:

100-build-reproducibly.patch
130-eventfd.patch
140-use-default-lua.patch

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2021-05-12 19:02:33 +02:00
Jiri Slachta
6b78ba4b3b
Merge pull request #642 from micmac1/kam550
kamailio: update to version 5.5.0
2021-05-08 21:46:52 +02:00
Sebastian Kemper
62a6a0c2a4 kamailio: update to version 5.5.0
Added new module lrkproxy. Module "userblacklist" was renamed upstream
to "userblocklist".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-05-08 17:04:33 +02:00
micmac1
1e2c2bcb5f
Merge pull request #641 from micmac1/pcapsipv6
pcapsipdump: update to svn revision r157
2021-05-05 19:07:59 +02:00
Sebastian Kemper
3cdc38c909 pcapsipdump: update to svn revision r157
Upstream implemented or updated IPv6 support.

This commit also updates the package title and fixes some
spelling/grammar in the package's description.

PKG_MIRRIR_HASH removed from Makefile as per suggestion in [1] (svn
checkouts aren't reproducible).

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

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-05-01 11:57:33 +02:00
Jiri Slachta
4ca2b1d5bf
Merge pull request #639 from dhewg/bcg729
bcg729: update to v1.1.1
2021-04-19 13:42:33 +02:00
Andre Heider
4e34b4b0a5 bcg729: update to v1.1.1
The removed patch has been merged upstream.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2021-04-19 08:47:47 +02:00
micmac1
41a4c15eee
Merge pull request #637 from micmac1/rtpe-lts-8533
rtpengine: bump to 8.5.3.3
2021-04-18 11:57:32 +02:00
Sebastian Kemper
b193d9e4cd rtpengine: bump to 8.5.3.3
Contains upstream fix for G.729 recording with bcg729.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-04-15 12:07:58 +02:00
micmac1
cfd264f224
Merge pull request #634 from micmac1/fs-modmake-patch
freeswitch: fix 003-modmake-fix.patch
2021-04-08 22:01:38 +02:00
Sebastian Kemper
34e26f180a freeswitch: fix 003-modmake-fix.patch
Somehow this white space change slipped in unintentionally.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-04-07 20:50:53 +02:00
micmac1
cda90c0df7
Merge pull request #630 from micmac1/fs-1106
freeswitch: update to 1.10.6
2021-03-27 08:44:39 +01:00
Sebastian Kemper
601188d0ff freeswitch: rework init & hotplug
This adds a term_timeout uci option which can be used to change the
default timeout that procd uses while waiting for freeswitch to exit
once the TERM signal is sent. freeswitch may take a bit longer to exit,
so adding this option is likely appreciated. By default procd's default
is used, though.

Logging is updated in init script and hotplug script. The used facility
is changed from user to daemon, for instance.

An issue was fixed in the parsing of the ntpq output. In case a positive
offset was printed the parsing failed. Apparently ntpq is now adding a
'+', so this is now accounted for.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-03-26 22:22:20 +01:00
Sebastian Kemper
a34590f057 freeswitch: update to 1.10.6
- patches which are now upstream were removed
- some patches were refreshed
- 003-modmake-fix.patch was amended a bit because of upstream commit
  91f12b5 (it changed tests/unit/Makefile.am so that it doesn't
  redefine AM_CFLAGS and AM_CPPFLAGS, which results in duplicated flags)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-03-26 22:15:45 +01:00
Jiri Slachta
04d365ebaf
Merge pull request #625 from micmac1/rem-circci
CI: remove .circleci folder
2021-03-14 19:42:30 +01:00
Jiri Slachta
a075f58db6
Merge pull request #626 from micmac1/ast1822
asterisk: bump to 18.2.2
2021-03-14 19:42:11 +01:00
Sebastian Kemper
d6fe18bcdc asterisk: update to 18.2.2
Patches removed because uclibc was dropped:

001-disable-semaphores-on-uclibc-otherwise-allow.patch
002-configure-fix-detection-of-re-entrant-resolver-funct.patch

Patches updated/refreshed:

100-build-reproducibly.patch
140-use-default-lua.patch

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-03-14 18:14:44 +01:00
Sebastian Kemper
5a916dc351 pjproject: sync patches with asterisk 18.2.2
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-03-14 18:14:30 +01:00
micmac1
fc2602ce61
Merge pull request #624 from micmac1/sng148
sngrep: bump to 1.4.8
2021-03-14 10:38:44 +01:00
Sebastian Kemper
3d7ce779fa CI: remove .circleci folder
This CI has been removed from the hooks.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-03-13 10:57:26 +01:00
Sebastian Kemper
f1760b3f5c sngrep: bump to 1.4.8
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-03-13 10:52:30 +01:00
Paul Spooren
36467b50b0 CI: add GitHub testing of Pull Requests
Perform formal checks and see if packages compile on multiple
architectures.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-03-12 14:15:31 -10:00
micmac1
c6e238e23e
Merge pull request #623 from micmac1/fr-uc
freeswitch updates
2021-03-12 19:37:40 +01:00
Sebastian Kemper
539d7629f9 spandsp3: bump to 2020-10-19
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-03-12 18:01:50 +01:00
Sebastian Kemper
9779a57e56 sofia-sip: bump to 1.13.3
Upstream now provides a release tarball. Use that instead of a git
checkout.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-03-12 17:59:20 +01:00
Sebastian Kemper
0a7d9e2bf8 libks: bump to 1.7.0
Drops 05-openssl-deprecated.patch as included upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-03-12 17:57:08 +01:00
Sebastian Kemper
22f617a32e freeswitch-mod-bcg729: use PKG_SOURCE_DATE
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-03-12 17:54:43 +01:00
Sebastian Kemper
4d8e02f4af freeswitch: clean up after uclibc* removal
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-03-09 21:44:30 +01:00
Jiri Slachta
967c9df8b2
Merge pull request #619 from neheb/cxx
treewide: remove uClibc++ support
2021-03-09 17:33:20 +01:00
Jiri Slachta
f84419ed34
Merge pull request #621 from micmac1/pjp-ast-5
pjproject: add fix for AST-2021-005 + brush up our Makefile
2021-03-09 17:30:37 +01:00
Sebastian Kemper
6d6dd129aa pjproject: drop autoreconf, run make dep
Neither configure.ac nor configure.in exists, so autoreconf is a no-op.
This commit drops it.

Also, run "make dep" as advertised by the README and the configure
script.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-03-07 12:24:06 +01:00
Sebastian Kemper
f7fe759fe2 pjproject: add patch for AST-2021-005
https://downloads.asterisk.org/pub/security/AST-2021-005.html
https://issues.asterisk.org/jira/browse/ASTERISK-29196

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-03-07 12:21:42 +01:00
Rosen Penev
13fd0a5ab9 treewide: remove uClibc++ support
This is in preparation for removing the whole thing from base.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-03-06 14:45:47 -08:00
micmac1
a5d0393940
Merge pull request #615 from micmac1/dah-li-symvers
dahdi-linux: fix Module.symvers handling
2021-02-26 19:19:26 +01:00
micmac1
62328778d5
Merge pull request #614 from micmac1/rpte-symvers
rtpengine: fix Module.symvers handling
2021-02-26 19:18:49 +01:00
Jiri Slachta
26245e81b1
Merge pull request #602 from neheb/a
asterisk: fix compilation with 1.2.x
2021-02-24 23:37:23 +01:00
Rosen Penev
90281b85eb
asterisk: fix compilation with 1.2.x
Needs _DECLS and __P definitions.

Refreshed other patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-02-22 22:54:46 -08:00
Sebastian Kemper
89a23c4340 dahdi-linux: fix Module.symvers handling
This sets PKG_EXTMOD_SUBDIRS so kernel.mk can find the DAHDI
Module.symvers file.

Also, this puts KERNEL_MAKE_FLAGS into the make flags. This way
Module.symvers files of other modules are made available, plus there is
no need anymore to specify ARCH and CROSS_COMPILE, as KERNEL_MAKE_FLAGS
already takes care of that.

TARGET_CONFIGURE_OPTS is dropped because this seems out of place
(configure vs. compile).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-02-20 12:09:33 +01:00
Sebastian Kemper
38e16beb65 rtpengine: fix Module.symvers handling
This sets PKG_EXTMOD_SUBDIRS so kernel.mk can find the rtpengine
Module.symvers file.

Also, this puts KERNEL_MAKE_FLAGS into the make flags used to compile
the kernel module. This way Module.symvers files of other modules are
made available, plus there is no need anymore to specify ARCH and
CROSS_COMPILE, as KERNEL_MAKE_FLAGS already takes care of that.

While updating make flags this also adds PKG_JOBS for completeness'
sake.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-02-20 11:45:51 +01:00
Sebastian Kemper
b6c45fc0d0 rtpengine: build in BUILD_DIR
rtpengine is not primarily about kernel modules. It's an application
(which also offers a kernel module). So build it in BUILD_DIR instead of
KERNEL_BUILD_DIR.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-02-20 11:42:34 +01:00
micmac1
a419384ef2
Merge pull request #612 from micmac1/glib-rtpen-bump
rtpengine: update to 8.5.3.2
2021-02-14 22:07:58 +01:00
Sebastian Kemper
78624e5c5c rtpengine: update to 8.5.3.2
02-pcap.patch no longer needed, it's included in upstream release.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-02-14 10:29:52 +01:00
micmac1
611bb9c4e7
Merge pull request #610 from lipnitsk/master
dahdi-linux: patch to compile with linux >= 5.6
2021-02-01 20:14:21 +01:00
Ilya Lipnitskiy
ea67943314 dahdi-linux: patch to compile with linux >= 5.6
Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-01 11:07:49 -08:00
Jiri Slachta
3fa0c89afd
Merge pull request #609 from BKPepe/asterisk-uriparser-disable
asterisk: disable uriparser
2021-01-27 14:49:34 +01:00
Josef Schlehofer
ba73572d3e
asterisk: disable uriparser
Uriparser is a compliant URI parsing and handling library for RFC 3986.
For now, this is not included in OpenWrt feeds, but in Turris OS
uriparser is used as dependency for Updater-ng.

When Asterisk finds in build system there is uriparser or anything else mentioned in configure,
it tries to enable it by default. This applies to every package in
OpenWrt and because of that new packages which are added to OpenWrt tries to disable almost
everything by default. Because if someone adds library, some packages
are not compiled or tested.

Fixes:
Package asterisk is missing dependencies for the following libraries:
liburiparser.so.1

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2021-01-27 11:04:29 +01:00
micmac1
f929face41
Merge pull request #607 from micmac1/rtpe-up
rtpengine: bump to 8.5.3.1
2021-01-25 22:32:22 +01:00
micmac1
da8e877450
Merge pull request #608 from guidosarducci/master-fix-uid-error
siproxd: fix UID variable conflict in init
2021-01-25 22:28:59 +01:00
Tony Ambardar
442a19214b siproxd: fix UID variable conflict in init
Variable 'UID' is set readonly in some calling contexts, yielding errors
during e.g. ImageBuilder usage:

  Enabling rpcd
  ./etc/init.d/siproxd: line 14: UID: readonly variable
  Enabling siproxd
  Enabling sysctl

Rename UID and GID variables as SIPROXD_UID and SIPROXD_GID.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2021-01-24 00:27:05 -08:00
Sebastian Kemper
71bf69c27d rtpengine: bump to 8.5.3.1
In other news:

 - removes "mr" from version
 - refreshes patches/02-pcap.patch

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-01-23 12:05:22 +01:00
Jiri Slachta
4d2bb84647
Merge pull request #606 from micmac1/aster-sup
asterisk: revert commit + add missing dep
2021-01-15 21:45:59 +01:00
Sebastian Kemper
6e8eaf2602 asterisk: add dependency to asterisk-chan-rtp
This commit makes asterisk-chan-rtp depend on
asterisk-res-rtp-multicast. Without the res-rtp-multicast module
chan-rtp cannot be loaded:

OpenWrt*CLI> module load chan_rtp.so
Unable to load module chan_rtp.so
Command 'module load chan_rtp.so' failed.
[Jan  9 08:51:01] ERROR[16337]: loader.c:281 module_load_error: Error loading module 'chan_rtp.so': Error relocating /usr/lib/asterisk/modules/chan_rtp.so: ast_multicast_rtp_create_options: symbol not found

This issue was mentioned in the OpenWrt forum ([1]).

[1] https://forum.openwrt.org/t/asterisk-makes-a-problem-with-loading/84816

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-01-15 20:00:09 +01:00
Sebastian Kemper
b619c417db Revert "asterisk: link in libdl when linking to liblua"
This reverts commit 150b85ab35.

OpenWrt upstream updated the lua package so that liblua now is linked
to libdl.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-01-15 19:51:11 +01:00
micmac1
1000b51246
Merge pull request #605 from neheb/r
rtpengine: fix compilation with newer pcap
2021-01-15 19:20:14 +01:00
Rosen Penev
63508ca6d8
rtpengine: fix compilation with newer pcap
Backport upstream patch fixing this issue.

Remove uClibc-ng patch as it's no longer in the tree.

Refresh patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-01-05 15:35:59 -08:00
Jiri Slachta
655badbc10
Merge pull request #604 from micmac1/ast-lua
asterisk: link in libdl when linking to liblua
2021-01-03 20:17:00 +01:00
Sebastian Kemper
150b85ab35 asterisk: link in libdl when linking to liblua
Currently building for archs target against glibc fails:

checking for mandatory modules:  CAP GSM ILBC LIBEDIT LIBXML2 LUA PJPROJECT SQLITE3 SRTP ZLIB... fail

configure: ***
configure: *** The LUA installation appears to be missing or broken.

Checking config.log reveals:

/home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/toolchain-arc_archs_gcc-8.4.0_glibc/bin/../lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/target-arc_archs_glibc/usr/lib/liblua.so: undefined reference to `dlopen'
/home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/toolchain-arc_archs_gcc-8.4.0_glibc/bin/../lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/target-arc_archs_glibc/usr/lib/liblua.so: undefined reference to `dlclose'
/home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/toolchain-arc_archs_gcc-8.4.0_glibc/bin/../lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/target-arc_archs_glibc/usr/lib/liblua.so: undefined reference to `dlerror'
/home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/toolchain-arc_archs_gcc-8.4.0_glibc/bin/../lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/sk/tmp/sdk/openwrt-sdk-archs38-generic_gcc-8.4.0_glibc.Linux-x86_64/staging_dir/target-arc_archs_glibc/usr/lib/liblua.so: undefined reference to `dlsym'

This commit adds "-ldl" to lua linker flags so compilation against glibc
works. This has no ill effect on musl where libdl is just an empty
library archive.

This is not something that should be sent upstream, as they maybe
support non-Linux platforms as well.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-01-03 18:39:07 +01:00
micmac1
9994df7ffd
Merge pull request #599 from micmac1/dahto-fix-patch
dahdi-tools: remove broken patch, disable unused features
2021-01-01 23:05:15 +01:00
micmac1
87085e580c
Merge pull request #603 from neheb/f
freeswitch: fix compilation with musl 1.2.0
2021-01-01 23:03:01 +01:00
Rosen Penev
03415d1b87
freeswitch: fix compilation with CentOS 7
Fix patch 230 as it's a patch of a patch with fuzz and wrong offsets.
It seems something on CentOS 7 doesn't like fuzz.

The AC_TRY_RUN section was removed as upstream added a check whether or
not cross compilation is being done, making it no/op.

Refresh other patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-01-01 13:58:27 -08:00
Sebastian Kemper
951a4a3dae dahdi-tools: remove broken patch, disable unused
The patch "010-fix-non-glibc-builds.patch" is broken. The test for
HAVE_EXECINFO_H must happen after including "<autoconfig.h>".

Instead of fixing the patch this commit removes it. In lieu,
CONFIGURES_ARGS are added to the Makefile. These disable the building of
some tools that are not packaged anyway. Like this, "xpp/xtalk/debug.c"
is avoided, hence the patch becomes irrelevant.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-12-31 16:17:28 +01:00
Jiri Slachta
6dd174d3f0
Merge pull request #596 from micmac1/ast-AST03-04
asterisk: micro version bump to 18.1.1
2020-12-27 21:33:50 +01:00
Sebastian Kemper
e538fc3f90 asterisk: add res_timing_timerfd to base package
This is a response to [1] and [2]. In short, since upstream commit
"channel.c: Resolve issue with receiving SIP INFO packets for DTMF" a
segmentation fault occurs during DTMF when no timing module is loaded.

This commit adds the timerfd timing module to the asterisk base package.
Other possibilities would have been res_timing_pthread and
res_timing_dahdi, but timerfd is the obvious choice because it's
efficient and OpenWrt offers the required kernel support (see [3] for
more details).

Note: even without any timing module the segmentation fault should not
occur according to upstream. Upstream is still working on that. But in
general it makes sense to have a timing module available (loaded) and
the module is tiny anyway.

[1] https://github.com/openwrt/telephony/issues/597
[2] https://issues.asterisk.org/jira/browse/ASTERISK-28800
[3] https://wiki.asterisk.org/wiki/display/AST/Timing+Interfaces

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-12-27 16:35:30 +01:00
micmac1
033edefff7
Merge pull request #580 from neheb/frees
freeswitch: fix compilation with musl 1.2.0
2020-12-26 12:24:35 +01:00
micmac1
87b94aa79d
Merge pull request #577 from micmac1/dah-310
dahdi: bump and cleanups
2020-12-26 11:48:17 +01:00
Sebastian Kemper
4a8dffba95 asterisk: micro version bump to 18.1.1
This addresses CVE-2020-35652 as described in:

https://downloads.asterisk.org/pub/security/AST-2020-003.html
https://downloads.asterisk.org/pub/security/AST-2020-004.html

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-12-23 18:16:30 +01:00
Jiri Slachta
c5a95a1a85
Merge pull request #593 from micmac1/kam-up542
kamailio: minor bump + drop 5.x suffix
2020-12-23 18:01:13 +01:00
Jiri Slachta
7a6aa455e6
Merge pull request #595 from dkgroot/master
asterisk-chan-sccp: update to v4.3.3 release
2020-12-23 17:44:57 +01:00
Diederik de Groot
6c6aa1a28f
asterisk-chan-sccp: Update to v4.3.3 release
update PKG_MIRROR_HASH

Signed-off-by: Diederik de Groot <dkgroot@talon.nl>
2020-12-20 10:37:45 +01:00
micmac1
5b234845f9
Merge pull request #594 from micmac1/rtpe8527
rtpengine: minor bump to mr8.5.2.7
2020-12-17 19:53:52 +01:00
Sebastian Kemper
d996d84a0b rtpengine: minor bump to mr8.5.2.7
05-support-kernels-greater-equal-5.9.9.patch removed as included in tar
ball.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-12-13 16:34:47 +01:00
Sebastian Kemper
a0ac804663 kamailio: minor bump + drop 5.x suffix
Bumps kamailio to version 5.4.2 and removes the suffix, as there is only
one kamailio version at a time anyway.

Also:

 - Replaces a few $(PKG_NAME) uses with simply "kamailio"
 - Drops the use of variable PKG_VARIANT (was not set anyway)
 - Drops 160-openssl-deprecated.patch (upstream first accepted the
   patch, then dropped it again after crashes were reported, see [1])

[1] https://github.com/kamailio/kamailio/issues/2466

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-12-12 23:55:36 +01:00
Jiri Slachta
9cc7913dcc
Merge pull request #592 from micmac1/kam-build-fixes
kamailio-5.x: build fixes
2020-12-07 09:34:48 +01:00
Sebastian Kemper
060e779993 kamailio-5.x: fix build for new MIPS 4kec target
Recently support for target rtl838x was added to OpenWrt. It uses 4kec,
which is MIPS32. The Kamailio build system doesn't detect this and
treats it as MIPS I, adding -march=r3000 to the flags, which clashes
with -mips32r2.

mips-openwrt-linux-musl-gcc -mfp32 -march=r3000 -ftree-vectorize -fno-strict-overflow -pthread -DKSR_PTHREAD_MUTEX_SHARED -Wall -Os -pipe -mno-branch-likely -mips32r2 -mtune=4kec -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -I/builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/lib/libiconv-stub/include -I/builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/lib/libintl-stub/include -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/kamailio5-5.4.0=kamailio5-5.4.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DVERSION_NODATE=1 -I/builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_4kec_gcc-8.4.0_musl/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_4kec_gcc-8.4.0_musl/include/fortify -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_4kec_gcc-8.4.0_musl/include -I/builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/lib/libiconv-stub/include -I/builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/lib/libintl-stub/include   -DNAME='"kamailio"' -DVERSION='"5.4.0"' -DARCH='"mips"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"mips-openwrt-linux-musl-gcc 8.4.0"' -D__CPU_mips -D__OS_linux -DVERSIONVAL=5004000 -DCFG_DIR='"/etc/kamailio"' -DSHARE_DIR='"/usr/share/kamailio/"' -DRUN_DIR='"/var/run/kamailio/"' -DPKG_MALLOC -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DMEM_JOIN_FREE -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DUSE_SCTP -DMIPS_HAS_LLSC -DNOSMP -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_IP_MREQN -DUSE_RAW_SOCKS -DUSE_PTHREAD_MUTEX -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT  -DMODS_DIR='"/usr/lib/kamailio/modules"' -c main.c -o main.o -MMD -MP
cc1: error: '-mips32r2' conflicts with the other architecture options, which specify a mips1 processor
Assembler messages:
Error: -mips32r2 conflicts with the other architecture options, which imply -mips1
Makefile.rules💯 recipe for target 'main.o' failed
make[5]: *** [main.o] Error 1

This commit fixes this by forcing ARCH to mips2 for 4kec CPUs as well
(Kamailio only differentiates between mips, mips2 and mips64).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-12-05 12:50:24 +01:00
Sebastian Kemper
eea98c6533 kamailio-5.x: fix erlang build
The Erlang module build checks for libs and includes using the erl tool.
This is a hostpkg tool providing paths into the staging/hostpkg.
Of course this fails:

arc-openwrt-linux-uclibc-gcc -shared  -Wl,-O2 -Wl,-E  -L/builder/shared-workdir/build/sdk/staging_dir/toolchain-arc_arc700_gcc-8.4.0_uClibc/usr/lib -L/builder/shared-workdir/build/sdk/staging_dir/toolchain-arc_arc700_gcc-8.4.0_uClibc/lib -L/builder/shared-workdir/build/sdk/staging_dir/target-arc_arc700_uClibc/usr/lib/libiconv-stub/lib -Wl,-rpath-link=/builder/shared-workdir/build/sdk/staging_dir/target-arc_arc700_uClibc/usr/lib/libiconv-stub/lib -L/builder/shared-workdir/build/sdk/staging_dir/target-arc_arc700_uClibc/usr/lib/libintl-stub/lib -Wl,-rpath-link=/builder/shared-workdir/build/sdk/staging_dir/target-arc_arc700_uClibc/usr/lib/libintl-stub/lib -znow -zrelro -pthread -rdynamic "-ldl" -Wl,-Bsymbolic-functions handle_emsg.o pv_xbuff.o cnode.o erl_api.o epmd.o erl_helpers.o pv_ref.o pv_pid.o pv_atom.o worker.o handle_rpc.o pv_list.o pv_tuple.o erlang_mod.o  -L/builder/shared-workdir/build/sdk/staging_dir/hostpkg/lib/erlang/lib/erl_interface-4.0/lib -lei -lpthread   -o erlang.so
/builder/shared-workdir/build/sdk/staging_dir/toolchain-arc_arc700_gcc-8.4.0_uClibc/bin/../lib/gcc/arc-openwrt-linux-uclibc/8.4.0/../../../../arc-openwrt-linux-uclibc/bin/ld: /builder/shared-workdir/build/sdk/staging_dir/hostpkg/lib/erlang/lib/erl_interface-4.0/lib/libei.a: error adding symbols: file format not recognized
collect2: error: ld returned 1 exit status
../../Makefile.rules:191: recipe for target 'erlang.so' failed
make[6]: *** [erlang.so] Error 1

This patch prevents this by relying on the standard paths, where Erlang
resides in OpenWrt.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-12-05 12:37:04 +01:00
Jiri Slachta
de86a47df7
Merge pull request #578 from micmac1/osip512
libosip2: minor version bump
2020-11-29 23:38:30 +01:00
Jiri Slachta
e7019d3b68
Merge pull request #586 from micmac1/ast18
asterisk: add Asterisk 18 LTS
2020-11-29 08:03:23 +01:00
Jiri Slachta
302e905c55
Merge pull request #582 from neheb/miax
miax: fix compilation errors under uClibc-ng and musl
2020-11-23 22:02:10 +01:00
Jiri Slachta
c8931b6886
Merge pull request #579 from micmac1/srtp-clean-bump
libsrtp(2): cleanup and bump
2020-11-23 21:49:52 +01:00
micmac1
7290d3c4f4
Merge pull request #591 from micmac1/rtpe-kern2
rtpengine: bump to 8.5.2.3 + add build fix
2020-11-23 19:14:12 +01:00
Sebastian Kemper
04ad4d7cb6 rtpengine: bump to 8.5.2.3 + add build fix
Patch from upstream fixes builds on recent kernels.

Closes #590

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-11-23 18:39:32 +01:00
Sebastian Kemper
b5638d84f1 asterisk: bump to 18.1.0
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-11-19 18:44:10 +01:00
Sebastian Kemper
c70eb7d12c asterisk-chan-lantiq: update for Asterisk 18 LTS
Also use PKG_SOURCE_DATE now to proper things up. And use INSTALL_DATA
for the configuration file.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-11-01 11:59:03 +01:00
Sebastian Kemper
8961ee1084 asterisk-chan-sccp: update for Asterisk 18 LTS
- Bump commit as upstream recently added some bits to support Asterisk 18.
- Switch to INSTALL_DATA for configuration file.
- Remove VARIANT-related bits as we only have one Asterisk version.
- Remove dep on app_voicemail as chan-sccp has no hard dependency on it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-11-01 11:58:05 +01:00
Sebastian Kemper
fee0cc861b asterisk-chan-dongle: update for Asterisk 18 LTS
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-11-01 11:57:29 +01:00
Sebastian Kemper
87e982a3a5 asterisk-g72x: update for Asterisk 18 LTS
Removes VARIANT-related bits as we only have one Asterisk version.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-11-01 11:56:45 +01:00
Sebastian Kemper
af20cf00a6 asterisk-opus: update for Asterisk 18 LTS
Removes VARIANT-related bits as we only have one Asterisk version.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-11-01 11:56:04 +01:00
Sebastian Kemper
b936fade67 asterisk: upgrade to Asterisk 18 LTS
- Bump to new LTS release.
- Move to folder asterisk and remove AST_MAJOR_VERSION variable, as we
  only have one version anyway.
- Add new modules.
- Rename voicemail to app-voicemail.
- Remove deps of voicemail on res-adsi and res-smdi as they are
  optional.
- Use INSTALL_DATA for headers.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-11-01 09:37:46 +01:00
Jiri Slachta
3eea28d8ab
Merge pull request #576 from micmac1/bsip-1.0.0
re+baresip: bump to 1.0.0
2020-10-30 01:00:07 +01:00
Jiri Slachta
909f292c82
Merge pull request #558 from neheb/kama
kamailio-5.x: fix compilation without deprecated OpenSSL APIs
2020-10-30 00:58:47 +01:00
micmac1
6238b6e324
Merge pull request #585 from micmac1/rtpe8.5.2
rtpengine: bump to 8.5.2.1 LTS
2020-10-25 09:35:04 +01:00
Sebastian Kemper
da55a3690f rtpengine: bump to 8.5.2.1 LTS
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-10-24 12:15:27 +02:00
Daniel Golle
5d8774365a
Merge pull request #581 from neheb/pri
libpri: remove Werror
2020-10-17 14:18:30 +01:00
micmac1
c24d8bedcb
Merge pull request #584 from micmac1/sipp361
sipp: bump to 3.6.1
2020-10-17 14:07:18 +02:00
Sebastian Kemper
96b87978a4 sipp: bump to 3.6.1
Upstream dropped autotools support, so this converts the build to use
cmake. Adds a simple include fix as well as a fix for older c++
compilers (the latter is a patch from upstream).

Support for pcaps is now also compiled in, to follow what upstream
considers a "common" build.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-10-12 09:53:35 +02:00
Rosen Penev
cff514032b
freeswitch: fix compilation with musl 1.2.0
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-10-11 18:53:57 -07:00
Rosen Penev
94df06b550
miax: fix compilation errors under uClibc-ng and musl
usleep is deprecated. So are bcopy and bzero.

Added extra needed headers.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-10-09 02:34:21 -07:00
Rosen Penev
7a9cc85b22
libpri: remove Werror
Fixes compilation under musl 1.2.x where time_t is 64-bit.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-10-09 02:31:31 -07:00
Sebastian Kemper
734b0d76e5 restund: remove postinst script
There are no secrets in /etc/restund.conf. Remove the postinstall script
and install the file with regular permissions.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-10-04 15:44:44 +02:00
Sebastian Kemper
4da7d848df baresip: use FILE_MODES instead of postinst
We can now set permissions directly thanks to OpenWrt having added
fakeroot support.. This also changes the permissions of /etc/baresip so
that baresip can write to this directory. For instance it wants to write
the file /etc/baresip/current_contact for which it needs the appropriate
permissions (baresip is started by user baresip).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-10-04 15:29:01 +02:00
Sebastian Kemper
a85ce8450a libsrtp2: move folder, bump to 2.3.0
Bump to upstream release 2.3.0. Move folder and change PKG_NAME so that
we don't have to deal with how github names the tar.gz archive.

Also, don't install the libsrtp2.so symlink anymore on target, as it is
not required and only used in staging.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-10-03 19:00:01 +02:00
Sebastian Kemper
a16e2d69db libsrtp: remove
Nothing in this repo nor in packages depends on libsrtp anymore. This
removes it from the tree.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-10-03 18:54:32 +02:00
Sebastian Kemper
8512b7395a siproxd: rev bump
Increases revision due to SONAME bump of libosip2.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-10-03 18:52:36 +02:00
Sebastian Kemper
a216aba1f5 libosip2: bump to 5.1.2
This also removes two configure args that are no longer available.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-10-03 18:51:03 +02:00
Sebastian Kemper
69d744a85f dahdi-tools: bump to 3.1.0
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-10-03 18:48:17 +02:00
Sebastian Kemper
8eea873217 dahdi-linux: clean up deps, remove unused var
The kernel versions are no longer supported by OpenWrt. And the variable
is never used.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-10-03 18:47:00 +02:00
Sebastian Kemper
667774af23 baresip: bump to 1.0.0
- remove 010-openssl-deprecated.patch as upstream seems to have fixed
  the issue
- upstream closed down the server http://www.creytiv.com/ so this
  changes URLs
- dtmfio module removed upstream
- always set DESTDIR so that PREFIX is /usr instead of /usr/local
- update 002-fix-rem-include.patch and remove LIBREM_PATH usage
  altogether as it only adds broken include paths which aren't useful in
  the end anyway

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-10-03 10:51:29 +02:00
Sebastian Kemper
3907f7f2e4 re: bump to 1.0.0
- remove 010-openssl-deprecated.patch as it does not apply anymore and
  upstream seems to have fixed the issue
- upstream closed down the server http://www.creytiv.com/ so this
  changes URLs

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-10-03 10:32:36 +02:00
Jiri Slachta
e80afb1545
Merge pull request #575 from guidosarducci/master-add-siproxd-max-clients
siproxd: add max clients configuration and default
2020-09-23 11:31:04 +02:00
Tony Ambardar
37c411269b siproxd: add max clients configuration and default
Add a configuration option SIPROXD_MAX_CLIENTS used for compile-time sizing
of the maximum supported proxy clients. Set this to a default value of 32,
which is more suitable for a small network or CPE router and uses much
less memory than the upstream value of 512 (e.g. RSS of 2 MB vs 17 MB).

Drop the following patch in favour of the new config option:

  * 005-reduce-rtpproxy-urlmap-size.patch

Also fix an incorrect configure option, and silence many warnings due to
unused VCS 'ident' variables in the sources.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2020-09-22 22:21:12 -07:00
micmac1
13060e85c0
Merge pull request #572 from micmac1/span3xml2
spandsp3: prevent host include search paths
2020-09-20 20:19:17 +02:00
Sebastian Kemper
6abadea9a0 spandsp3: prevent host include search paths
Note the host include path for libxml2 below. This shouldn't cause an
issue because libxml2 is never used. But better safe than sorry as the
configure script probes other host include paths as well.

/bin/sh ../libtool  --tag=CC   --mode=compile ccache_cc -DHAVE_CONFIG_H -I.  -I.. -I/openwrt/staging_dir/target-mips_24kc_musl/usr/include -I/openwrt/staging_dir/toolchain-mips_24kc_gcc-10.2.0_musl/usr/include -I/openwrt/staging_dir/toolchain-mips_24kc_gcc-10.2.0_musl/include/fortify -I/openwrt/staging_dir/toolchain-mips_24kc_gcc-10.2.0_musl/include  -I/usr/include/libxml2 -DNDEBUG -Wunused-but-set-variable -std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -DHAVE_VISIBILITY=1  -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 -fmacro-prefix-map=/openwrt/build_dir/target-mips_24kc_musl/spandsp3-2020-08-14-6ec23e5a=spandsp3-2020-08-14-6ec23e5a -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -MT dds_float.lo -MD -MP -MF .deps/dds_float.Tpo -c -o dds_float.lo dds_float.c

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-09-20 13:41:17 +02:00
Jiri Slachta
7d53cdccdf
Merge pull request #566 from dhewg/ast
asterisk-16.x: bump to 16.13.0
2020-09-17 20:16:40 +02:00
micmac1
41812fc6d4
Merge pull request #571 from micmac1/fs_rm_spandsp_patch
freeswitch: remove leftover patch
2020-09-12 10:36:54 +02:00
Sebastian Kemper
ee37dc867a freeswitch: remove leftover patch
This patch was used in 1.10.4 but now it's not used anymore because the
external spandsp3 package is used. Drop the file.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-09-12 10:29:41 +02:00
micmac1
29de904c00
Merge pull request #569 from micmac1/fs_cleanups
freeswitch: cleanups
2020-09-08 23:03:56 +02:00
Sebastian Kemper
e8d5a49f05 freeswitch: revisit build setup
1. Upstream fixed the parallel build issue in
   90ea0b7a1fdd7d8c5adaac87d74ed1c3c74086d0, so no need to force it off
   anymore.

2. The same sed script for uncommenting modules in modules.conf is used
   multiple times. This commit puts the script into a define that can be
   reused.

3. Some ifdefs removed. They only clutter up the Makefile. The sed
   script can run a few extra times, it does not matter.

4. Add a few extra dependencies that came to light.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-09-08 19:35:35 +02:00
Sebastian Kemper
787ea81583 freeswitch: add mod_rayo gcc 10 upstream fix
This removes the current workaround and replaces it with upstream fix.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-09-08 19:26:44 +02:00
micmac1
f354ee4e30
Merge pull request #568 from micmac1/rtpe-bump
rtpengine: bump to 8.5.1.2, disable parallel build
2020-09-08 12:25:19 +02:00
Sebastian Kemper
cd500b425d rtpengine: bump to 8.5.1.2, disable parallel build
Minor version bump. This also partially reverts
7e7ab06ccd by disabling parallel builds,
as there are sporadic build failures again

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-09-07 11:23:13 +02:00
Jiri Slachta
cf378bd959
Merge pull request #567 from guidosarducci/master-update-siproxd-0.8.3
siproxd: update to version 0.8.3, improve logging and memory usage
2020-09-06 21:58:44 +02:00
micmac1
60c39f1283
Merge pull request #564 from micmac1/fs1105
freeswitch + sofia-sip: version bumps
2020-09-06 11:53:29 +02:00
micmac1
44e91cd20b
Merge pull request #555 from neheb/ks
libks: fix compilation without deprecated OpenSSL APIs
2020-09-06 11:47:31 +02:00
Tony Ambardar
3fb223fa88 siproxd: update to version 0.8.3, improve logging and memory usage
This release includes bug fixes and improvements accumulated over the last
4 years of development snapshots [1].

Bump upstream version, build new plugins 'stats' and 'blacklist', and add
an 'sqlite3' package dependency for siproxd-mod-blacklist.

Disable procd capturing stderr to syslog, since siproxd in 'foreground'
mode writes both to syslog and stderr, duplicating log messages.

Include a patch to drastically reduce memory usage (RSS from 17MB to 5MB
on ipq40xx platform):

  * 005-reduce-rtpproxy-urlmap-size.patch

Drop the following patches now included upstream:

  * 010-syslog-msg.patch
  * 020-gcc10.patch
  * 100-musl-compat.patch

[1] http://siproxd.sourceforge.net/index.php?op=changelog.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2020-09-04 22:38:33 -07:00
Andre Heider
31ec72bc66 asterisk-16.x: bump to 16.13.0
Signed-off-by: Andre Heider <a.heider@gmail.com>
2020-09-04 17:09:31 +02:00
Andre Heider
a71a6666d2 pjproject: bump to version 2.10
Sync with asterisk v16.13.0:
* update to v2.10
* update config_site.h settings
* sync patches

Signed-off-by: Andre Heider <a.heider@gmail.com>
2020-09-04 17:09:31 +02:00
Sebastian Kemper
1dcfd2becf freeswitch: version bump to 1.10.5
This now uses the external spandsp3 package.

Patches:

 - 390-t38-reinvite-488-fix.patch removed (finally upstreamed)
 - 340-mod-spandsp-fix-typo.patch and 350-gsmopen-spandsp-fixup.patch
   added (both accepted into upstream master already)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-09-03 19:50:28 +02:00
Sebastian Kemper
38addaa2c7 sofia-sip: version bump
Includes fix that buildroot submitted upstream.

This introduces a variable to make following upstream versions a bit
easier.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-09-03 19:45:13 +02:00
micmac1
062878a672
Merge pull request #563 from micmac1/spandsp3
spandsp3: new package
2020-09-03 19:41:03 +02:00
micmac1
5eb2c8af2e
Merge pull request #562 from micmac1/fs-misc
freeswitch: small fixes
2020-09-01 19:20:13 +02:00
Sebastian Kemper
2bcd4e23c6 spandsp3: new package
This commit adds an updated spandsp library. This is not a drop-in
replacement for the "old" spandsp library. Applications that want to use
it need to be updated a bit, according to upstream info [1].

In an effort to not cause any problems for OpenWrt, this package
installs the library and headers in the staging directory into
non-standard paths:

Library: $(STAGING_DIR/usr/lib/spandsp3/lib
Headers: $(STAGING_DIR/usr/lib/spandsp3/include

This way they are hidden aways from all normal users (like asterisk,
baresip etc.) and won't interfere.

To use the new spandsp library users can look for the spandsp3
pkg-config file (the regular spandsp installs spandsp.pc, this package
installs spandsp3.pc). This should be enough. The first such user will
likely be the freeswitch package, once it gets updated to 1.10.5.

[1] https://github.com/freeswitch/spandsp/issues/5

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-08-19 22:07:29 +02:00
Sebastian Kemper
5b9b5db1b7 freeswitch: make pkg-config file usable
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-08-15 12:44:08 +02:00
Sebastian Kemper
adc6a81a0f freeswitch: fix shadow dep
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-08-15 12:29:43 +02:00
micmac1
061140e8ec
Merge pull request #559 from micmac1/fs1104
freeswitch: bump to 1.10.4
2020-08-10 22:58:07 +02:00
micmac1
4b8938911d
Merge pull request #560 from neheb/rtpe
rtpengine: fix compilation without deprecated OpenSSL APIs
2020-08-08 16:22:58 +02:00
Sebastian Kemper
984100dc61 freeswitch: bump to 1.10.4
Upstream split out spandsp as well. But their spandsp "fork" may not be
a drop-in replacement for the regular spandsp. For now we keep it built
into freeswitch via patch.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-08-07 21:27:39 +02:00
Rosen Penev
a66e3cd1e9
rtpengine: fix compilation without deprecated OpenSSL APIs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-07 12:22:42 -07:00
micmac1
a973ea2bb1
Merge pull request #553 from micmac1/dah-to-gcc10
dahdi-tools: add -fcommon workaround for gcc10
2020-08-07 21:06:53 +02:00
micmac1
86158aead4
Merge pull request #554 from micmac1/rtpengine-lts
rtpengine: update to LTS version
2020-08-07 21:06:17 +02:00
Sebastian Kemper
27447dad3a sofia-sip: new package
FreeSWITCH 1.10.4 split out the sofia-sip library. So here's it's added
as a separate package.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-08-07 20:57:50 +02:00
Rosen Penev
74f5e1086f
kamailio-5.x: fix compilation without deprecated OpenSSL APIs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-06 14:30:42 -07:00
Jiri Slachta
df492faca9
Merge pull request #557 from neheb/bare
baresip: fix compilation without deprecated OpenSSL APIs
2020-08-06 16:21:24 +02:00
Jiri Slachta
c3d59228ba
Merge pull request #556 from neheb/re
re: fix compilation without deprecated OpenSSL APIs
2020-08-06 16:19:15 +02:00
Jiri Slachta
a5d92c0e35
Merge pull request #549 from micmac1/kam54
kamailio-5.x: bump to 5.4.0
2020-08-06 16:18:13 +02:00
Rosen Penev
6f252c0ba2
baresip: fix compilation without deprecated OpenSSL APIs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-05 14:32:25 -07:00
Rosen Penev
9e5c3877ed
re: fix compilation without deprecated OpenSSL APIs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-05 14:31:20 -07:00
Rosen Penev
69e7f4748d
libks: fix compilation without deprecated OpenSSL APIs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-05 14:29:35 -07:00
Sebastian Kemper
7e7ab06ccd rtpengine: update to LTS version
Upstreamed patch removed. Build workaround removed as fixed upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-08-02 13:41:11 +02:00
micmac1
c23f919731
Merge pull request #552 from micmac1/fs-jpeg
freeswitch: update libjpeg deps
2020-08-02 12:43:14 +02:00
micmac1
fefcfe4c4a
Merge pull request #551 from neheb/patch-1
rtpengine: add nls.mk
2020-08-02 12:42:45 +02:00
Sebastian Kemper
82b795dcc0 dahdi-tools: add -fcommon workaround for gcc10
This works around the build failure with gcc-10 until there is a patch
for dahdi-tools that is reviewed and acknowledged by upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-08-02 12:28:34 +02:00
Sebastian Kemper
0e055c4657 freeswitch: update libjpeg deps
libjpeg was replaced by libjpeg-turbo in packages repo.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-08-02 11:55:36 +02:00
Rosen Penev
97326dad46
rtpengine: add nls.mk
Needed for the glib2 update in the packages feed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-01 12:41:43 -07:00
Sebastian Kemper
e6497a87d4 kamailio-5.x: bump to 5.4.0
- package two new modules: dlgs and pv_headers
- upstream actually provides three more new modules, but two are missing
  dependencies in OpenWrt and one is related to systemd
- use INSTALL_DATA instead of INSTALL_CONF for kamailio configuration
  files (not talking about /etc/config/kamailio) as they're default
  configuration
- refresh 050-fix-kamailio-utils.patch
- drop upstreamed 150-python3-cross-compile.patch
- libsrutils is no longer packaged as upstream moved it into the core

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-07-29 20:25:04 +02:00
micmac1
267a6ee37a
Merge pull request #548 from micmac1/fs-gcc10
freeswitch: mod-rayo not compiling with gcc-10
2020-07-28 18:13:24 +02:00
micmac1
a305a2b114
Merge pull request #547 from neheb/six
sixproxd: fix compilation with GCC 10
2020-07-28 18:13:00 +02:00
Jiri Slachta
0b16b3aca0
Merge pull request #546 from neheb/srt
libsrtp2: fix compilation with GCC 10
2020-07-28 09:00:48 +02:00
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
Rosen Penev
f5627507d5
libsrtp2: fix compilation with GCC 10
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-19 14:54:24 -07:00
micmac1
70b11b0192
Merge pull request #544 from micmac1/tel-deps
sipgrep/freeswitch: small amendments
2020-07-18 16:06:37 +02: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
Jiri Slachta
5523d283ac
Merge pull request #540 from micmac1/dongle-iconv
asterisk-chan-dongle: fix iconv lib detection
2020-06-16 16:35:16 +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
Jiri Slachta
2fdf4b3a24
Merge pull request #537 from micmac1/dongle-up
asterisk-chan-dongle: bump + cleanup
2020-06-09 20:07:55 +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
micmac1
fbc8250bb3
Merge pull request #533 from micmac1/rtpe-parallel
rtpengine: build fix and patch improvement
2020-05-22 10:50:48 +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
micmac1
c7cef81e63
Merge pull request #532 from micmac1/rtpecfl
rtpengine: prevent picking up host system flags
2020-05-18 20:05:23 +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
80d0fbd405 pjproject: add two patches from Asterisk 16.10.0
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-14 21:40:05 +02:00
micmac1
fffc4678c8
Merge pull request #530 from micmac1/fs1103-no-sofia-tests
freeswitch-stable: disable sofia-sip tests
2020-05-13 18:38:24 +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
micmac1
2bf1a88392
Merge pull request #529 from micmac1/fs1103
freeswitch-stable: bump to 1.10.3 (also up libks + signalwire-c)
2020-05-12 20:26:47 +02:00
Sebastian Kemper
3c203fe568 signalwire-client-c: bump to 1.3.0
Use regular releases from now on.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-12 19:32:17 +02:00
Sebastian Kemper
b67ac87e16 libks: bump to 1.6.0
Use regular releases from now on.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-12 19:30:26 +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
Jiri Slachta
b2980d1464
Merge pull request #524 from micmac1/master-dahlin
dahdi-linux: add patch to fix 32bit targets
2020-04-29 08:59:57 +02:00
Jiri Slachta
e9a8c36407
Merge pull request #525 from micmac1/master-kam-funroll
kamailio-5.x: remove "-funroll-loops"
2020-04-27 18:43:30 +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
86dd09fcbe dahdi-linux: add patch to fix 32bit targets
On some 32 bit targets dahdi-linux currently fails to build.

Examples:

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

or

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

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

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

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

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-04-24 20:59:31 +02:00
Jiri Slachta
3e8a75a622
Merge pull request #519 from micmac1/master-kam-build-and-py
kamailio-5.x: update build setup and add Python 3 module
2020-04-23 08:28:23 +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
16a3e1c7a2
Merge pull request #523 from micmac1/master-ci2
circleci: fetch packages repo
2020-04-22 18:20:51 +02:00
Sebastian Kemper
342575e2a4 circleci: fetch packages repo
Currently CI doesn't work, because the dependencies from the packages
repo are not available.

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

This commit adds the packages repo.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-04-22 18:08:37 +02:00
Jiri Slachta
70da8a1a88
Merge pull request #522 from micmac1/master-ci
circleci: allow dots in subject line
2020-04-22 13:40:15 +02:00
Sebastian Kemper
dee56d5d27 circleci: allow dots in subject line
We like to use "kamailio-5.x:" and "asterisk-16.x:" in commit message
subject lines. So relax the regex for it to allow the dots.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-04-22 13:06:24 +02:00
Jiri Slachta
bf49bc560b
Merge pull request #507 from BKPepe/circle_ci
build: Add CircleCI
2020-04-13 13:05:53 +02:00
Jiri Slachta
bbd6f65217
Merge pull request #518 from jslachta/kamailio-5.3.3
kamailio-5.x: update to 5.3.3
2020-04-09 18:06:47 +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
micmac1
1e6c85677f
Merge pull request #514 from micmac1/fs-rem-python
freeswitch-stable: remove python support
2020-04-04 11:35:00 +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
micmac1
06ec029b2f
Merge pull request #511 from hnyman/frsw-opencv
Thanks!
2020-03-21 21:08:17 +01: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
micmac1
c5d27d5484
Merge pull request #510 from micmac1/fs-revert-pg-commit
freeswitch-stable: revert libpq pc file workaround
2020-03-21 10:16:25 +01: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
Daniel Golle
e684654b38
Merge pull request #509 from micmac1/dahdi-linux-5.4
dahdi-linux: bump to version 3.1.0
2020-03-19 18:25:25 +00:00
Sebastian Kemper
416d1f6c24 dahdi-linux: bump to version 3.1.0
This commit provides compatibility with kernel 5.4.

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

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

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-03-19 18:39:22 +01:00
Josef Schlehofer
019232528e
build: Add CircleCI
This adds CircleCI as Continous Integration. It will provide compile
test against ath79 target and together with it, it checks if the commit
starts with the package name and it checks if the Signed-off-by matches
the author of the commit.

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

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

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2020-03-08 00:32:56 +01:00
micmac1
2d17fc0295
Merge pull request #504 from micmac1/pg-fs
freeswitch-stable: use pg_config for now
2020-03-07 10:01:53 +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
Jiri Slachta
59ecaa5d05
Merge pull request #503 from micmac1/ast-aslr-pie
asterisk-16.x: fix compile with PKG_ASLR_PIE
2020-01-12 00:01:24 +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
micmac1
8f1b6518db
Merge pull request #500 from micmac1/fs-1102
freeswitch-stable: bump to 1.10.2
2020-01-01 15:23:34 +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
micmac1
fd39e991bb
Merge pull request #497 from micmac1/fix-weak-md
freeswitch-stable: fix weak md in gentls_cert
2019-12-20 10:09:34 +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
micmac1
e076a61dcc
Merge pull request #468 from micmac1/sigwa
freeswitch-stable: add mod_signalwire and dependencies
2019-12-17 18:56:19 +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
8087789e67 signalwire-client-c: new package
signalwire-client-c is a dependency of mod-signalwire.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-17 18:49:39 +01:00
Sebastian Kemper
03e2d08245 libks: new package
libks is a dependency of signalwire-client-c.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-17 18:49:39 +01:00
micmac1
b2cb60201b
Merge pull request #495 from micmac1/sngrep-ssl
sngrep: update to snapshot + options
2019-12-03 13:47:01 +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
micmac1
7245bca9df
Merge pull request #492 from micmac1/fs-vpx-cve
freeswitch-stable: patch CVEs in included libvpx
2019-11-29 21:15:03 +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
micmac1
53d89aa902
Merge pull request #486 from micmac1/fs_misc
freeswitch-stable: small misc fixes
2019-11-05 23:34:21 +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
Jiri Slachta
4ed639f655
Merge pull request #485 from micmac1/pj-pc
pjproject: fix pkg-config file
2019-11-04 21:18:21 +01:00
Sebastian Kemper
93e08d1ad9 pjproject: fix pkg-config file
The .pc file uses hard-coded paths:

prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib
includedir=/usr/include

It also pushes "-I/usr/include" into CFLAGS. This commit amends all of
that.

Resolve: #483

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-11-04 20:25:15 +01:00
Jiri Slachta
72817e148c
Merge pull request #482 from micmac1/ast-no-xml-hacks
asterisk-16.x: remove libxml2 hacks
2019-10-29 11:21:02 +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
Jiri Slachta
e11c31d97a
Merge pull request #481 from micmac1/kam-rem-unavailable
kamailio-5.x: remove rtp_media_server package
2019-10-25 20:35:10 +02: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
771a0bc5f5
Merge pull request #479 from micmac1/pj-patch-sync
pjproject: sync patches with Asterisk 16.6.1
2019-10-24 23:26:12 +02:00
Sebastian Kemper
5cc8a67196 pjproject: sync patches with Asterisk 16.6.1
Quote from Asterisk commit e6cc1f5083bbb85a76280e4bbada7be265b0a106:

"Issues in pjproject 2.9 caused us to revert some of their changes as a
work around. This introduced another issue where pjproject wouldn't
build with older gcc versions such as that found on CentOS 6. This
commit replaces the reverts with the official fixes for the original
issues and allows pjproject to be built on CentOS 6 again."

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-24 23:22:27 +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
40a4cf904c
Merge pull request #476 from jslachta/baresip-vp8-vp9
baresip: add VP8 and VP9 module
2019-10-24 07:07: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
ec7d9d339f
Merge pull request #466 from micmac1/libosip2-up-abi
libosip2: bump to 5.1.0
2019-10-16 15:47:06 +02:00
Jiri Slachta
2cf7ee50a7
Merge pull request #471 from micmac1/pj29
pjproject: bump to version 2.9
2019-10-16 15:46:22 +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
0ca5bbc688 rem: allow parallel build
Adds "PKG_BUILD_PARALLEL:=1".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-12 21:20:53 +02:00
Sebastian Kemper
a9fbe4ff4f re: bump to 0.6.1
Also adds "PKG_BUILD_PARALLEL:=1".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-12 21:19:37 +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
9ea4a8b49b pjproject: bump to version 2.9
Version bump as preparation for Asterisk update.

In other news:

- upgrades ULRs to https
- adds new configure switch --disable-darwin-ssl (doesn't apply to
  OpenWrt, but disable it explicitly anyway)
- use INSTALL_DATA for pkg-config file
- patch naming changed to be in line with Asterisk's patch naming,
  making maintenance easier
- drops some patches, adds some new ones from Asterisk (mainly reverts
  of some pjproject commits which turned out to cause memory leaks)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-11 18:06:20 +02:00
Jiri Slachta
966a017393
Merge pull request #470 from micmac1/mas-pcapsipd-strlcpy
pcapsipdump: fix missing libbsd depend
2019-10-09 20:49:58 +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
Jiri Slachta
7fe27b54da
Merge pull request #469 from micmac1/master-sipdump-up
pcapsipdump: update to trunk snapshot
2019-10-07 23:09:14 +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
4ff6d20fdf libosip2: bump to 5.1.0
Version bump.

- add ABI_VERSION as per OpenWrt package policies [1]
- don't package version-less symlink also as per [1]
- add --disable-silent-rules to keep build verbose
- remove leftover whitespace
- drop patch now included in tarball

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

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-05 17:06:39 +02:00
micmac1
ed971a2146
Merge pull request #465 from micmac1/sipgrep-up
sipgrep: update snapshot
2019-10-05 16:00:52 +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
f6f18cf61c
Merge pull request #458 from micmac1/bcg729-pkg-config
bcg729: add pkg-config file
2019-10-02 22:21:15 +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
micmac1
22350c8827
Merge pull request #460 from micmac1/fs-remove-comment
net/freeswitch-stable: remove old warning
2019-10-02 21:05:14 +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
ba72495f4d bcg729: add pkg-config file
Patch from upstream.

With the .pc file available we can drop a hack in rtpproxy's Makefile.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-02 20:48:37 +02:00
Jiri Slachta
d9625b5baa
Merge pull request #455 from micmac1/AST-2019-004
asterisk-16.x: add patch for AST-2019-004
2019-09-20 18:18:20 +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
micmac1
9167e30d40
Merge pull request #451 from micmac1/fs1.10-cleanup2
freeswitch-stable: use qstrip
2019-08-31 19:56:14 +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
micmac1
f542d22f06
Merge pull request #450 from micmac1/fs1.10-cleanup
freeswitch-stable: some small cleanups
2019-08-31 19:30:28 +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
micmac1
0674d978a3
Merge pull request #449 from micmac1/fs1.10.1
freeswitch-stable: bump to 1.10.1
2019-08-20 23:05:20 +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
micmac1
1c45c14780
Merge pull request #448 from micmac1/fs1.10.fixes
freeswitch-stable: a fix and a new utility
2019-08-18 12:12:50 +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
micmac1
e0a946d107
Merge pull request #447 from micmac1/fs-1.10
freeswitch-stable: upgrade to version 1.10.0
2019-08-16 20:48:41 +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
Jiri Slachta
a8dcf01af6
Merge pull request #446 from micmac1/lantiq-header-4.19
asterisk-16.x-chan-lantiq: update snapshot
2019-08-11 19:52:01 +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
Jiri Slachta
038dc388e3
Merge pull request #444 from dkgroot/master
<net/asterisk-chan-sccp>: Update to v4.3.2-epsilon
2019-07-31 21:43:12 +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
Jiri Slachta
803a6bb02f
Merge pull request #443 from micmac1/ast16luadep
asterisk-16.x: upgrade pbx-lua dep to liblua5.3
2019-07-19 22:44:08 +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
f93dc88106
Merge pull request #439 from jslachta/asterisk-13-removal
(master) asterisk-13.x: move package to abandoned packages
2019-07-14 20:25:46 +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
Jiri Slachta
f900204c89
Merge pull request #438 from micmac1/ast13-AST-2019-002-and-003
asterisk-1{3,6}.x: fix AST-2019-002 & AST-2019-003
2019-07-12 22:14:00 +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
micmac1
dd767d46f9
Merge pull request #434 from micmac1/fs-187
freeswitch-stable: bump to 1.8.7
2019-07-07 18:12:10 +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
Jiri Slachta
5e29826408
Merge pull request #433 from micmac1/baresip-dep
baresip: fix recursive dependency
2019-06-27 09:33:53 +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
Jiri Slachta
9ff5788839
Merge pull request #431 from micmac1/ast-remove-chan-phone
Asterisk: remove chan-phone
2019-06-24 22:31:32 +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
7ab0ead1da
Merge pull request #430 from micmac1/dahdi-linux-3
dahdi-linux: bump to 3.0.0
2019-06-19 12:29:00 +02:00
Sebastian Kemper
183ad6c145 dahdi-linux: bump to 3.0.0
This commit goes back from using a git checkout to using a regular
upstream tarball. Version bumped to 3.0.0 which works with kernels
equal to or greater than 4.15. Patches refreshed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-06-18 20:10:39 +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
micmac1
fdd274e1df
Merge pull request #428 from micmac1/fs-186
freeswitch-stable: bump to 1.8.6
2019-06-10 15:18:12 +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
micmac1
470eb8e532
Merge pull request #426 from micmac1/fs-init-awk
freeswitch-stable: init script update
2019-05-12 14:07:37 +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
Jiri Slachta
3e73624f2c
Merge pull request #425 from micmac1/sccp-gcc8
asterisk-chan-sccp: fix gcc8 compiles
2019-05-08 20:55:03 +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
Jiri Slachta
0dd32f9d51
Merge pull request #424 from micmac1/16lantiq
asterisk-16.x-chan-lantiq: add compile fix
2019-05-05 10:37:24 +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
Jiri Slachta
57ca21a495
Merge pull request #412 from dhewg/pull/asterisk16
Asterisk 16 additions
2019-05-02 11:59:30 +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
Andre Heider
a7280b6114 pjproject: add patches from asterisk's bundled pjproject
"check whether UPDATE is supported on outgoing calls", commit 5de36abd:

In ASTERISK-27095 an issue had been fixed because of which chan_pjsip was not
trying to send UPDATE messages when connected_line_method was set to invite.
However this only solved the issue for incoming INVITES. For outgoing INVITES
(important when transferring calls) the options variable needs to be updated
at a different place.

"Add patch for double free issue in timer heap", commit 9c11399b:

Fixed #2172: Avoid double reference counter decrements in
timer in the scenario of race condition between
pj_timer_heap_cancel() and pj_timer_heap_poll().

"Add timer patch from pjproject r5934", commit d4cd2a97.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2019-05-02 10:50:59 +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
Jiri Slachta
1f86f7e1e1
Merge pull request #420 from micmac1/baresip-062
baresip: update and a bit of polishing
2019-04-30 18:42:54 +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
micmac1
10439bc6ca
Merge pull request #419 from micmac1/fs-av-only-on-x86_64
freeswitch-stable: disable mod_av on i386
2019-04-21 12:35:52 +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
micmac1
b92b93d1e9
Merge pull request #418 from micmac1/fs-gcc8
freeswitch-stable: fix gcc8 warnings
2019-04-14 19:51: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
Jiri Slachta
25a2e71be0
Merge pull request #416 from micmac1/kamhi
kamailio-5.x: update hiredis patch
2019-04-14 19:11:59 +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
Jiri Slachta
867b79bf75
Merge pull request #414 from micmac1/AST-2019-001
asterisk-15.x: add patch for AST-2019-001
2019-04-09 19:16:42 +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
micmac1
9a8f3b3726
Merge pull request #409 from micmac1/fs-185
freeswitch-stable: fix compile, bump version
2019-02-15 21:55:19 +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
Jiri Slachta
6c2b619462
Merge pull request #408 from micmac1/dahdi-tools-execinfo2
dahdi-tools: rework patch
2019-01-27 16:51:41 +01:00
Sebastian Kemper
9b4f78d799 dahdi-tools: rework patch
Currently builds for ARC are failing, causing follow-up breakage. It
seems that uclibc defines __GLIBC__ on the build bots.

This commit adds a test for execinfo.h to the configure script. The
result of the test is then used in xpp/xtalk/debug.c.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-01-27 16:00:56 +01:00
Jiri Slachta
f4fb577f9b
Merge pull request #407 from micmac1/kam52
kamailio-5.x: bump to 5.2.1
2019-01-21 06:59:23 +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
94b5f50026
Merge pull request #399 from micmac1/srtp2
libsrtp2: update to 2.2.0
2019-01-05 09:47:09 +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
52288b27b1
Merge pull request #398 from micmac1/dtools
dahdi-tools: version bump
2019-01-05 09:40:56 +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
micmac1
8431d7d044
Merge pull request #405 from micmac1/fs184
freeswitch-stable: bump to version 1.8.4
2018-12-30 14:54:56 +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
micmac1
ad8742723e
Merge pull request #404 from micmac1/sngrep
sngrep: update to 1.4.6
2018-12-30 12:17:05 +01:00
Sebastian Kemper
032e2bd36e dahdi-tools: add PKG_BUILD_PARALLEL & PKG_INSTALL
Cleans up the install sections while replacing PKG_BUILD_DIR with
PKG_INSTALL_DIR, too.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-29 11:44:58 +01:00
Sebastian Kemper
aad0887281 dahdi-tools: use default Build/Compile template
Add two patches to fix general compile issues. The first masks out some
glibc specific extensions if using a different libc.

The second fixes a compile issue with newer compilers.

Like this it's possible to easily add more executables to the packages
should the need (or wish) arise. This also gets rid of the following
warnings:

cc1: note: someone does not honour COPTS correctly, passed 2 times

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-29 11:36:53 +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
f4239da2a9 rem: update to 0.6.0
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:09:52 +01:00
Sebastian Kemper
dfd9ed688d rem: 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:08:54 +01:00
Sebastian Kemper
2e2e59938e re: update to 0.6.0
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:08:03 +01:00
Sebastian Kemper
0c3107e968 re: 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:06:42 +01:00
Sebastian Kemper
0358d4b5c2 libsrtp2: update to 2.2.0
Upstream fixed dependency on libpcap. The lib does not link to it
anymore as it does not need it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:02:02 +01:00
Sebastian Kemper
2f77859b3b dahdi-tools: update to 3.0.0
Version bump. New version does not have too many changes, but upstream
cleaned up the autoconf files. As a result autoreconf is now needed to
get the configure script.

This commit adds a configure switch to get the make output as verbose as
in the past.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 18:07:03 +01:00
Sebastian Kemper
31e95d12c1 dahdi-tools: 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 18:03:41 +01:00
micmac1
7f21b1d426
Merge pull request #397 from micmac1/fs-183-2
freeswitch-stable: bump to 1.8.3
2018-12-22 23:03:54 +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
Jiri Slachta
cf4cc85442
Merge pull request #396 from dhewg/pull/asterisk
asterisk updates
2018-12-17 07:29:03 +01:00
Andre Heider
48af9ec67b pjproject: update to 2.8
Update to the current release, see [0].

Get rid of the dropped --without-oss configure switch.

Add an upstream patch to fix building without SRTP support[1],
and refresh the rest.

[0] https://trac.pjsip.org/repos/milestone/release-2.8
[1] https://trac.pjsip.org/repos/changeset/5891/

Signed-off-by: Andre Heider <a.heider@gmail.com>
2018-12-16 12:14:51 +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
Jiri Slachta
be5fa604ad
Merge pull request #395 from guidosarducci/master-update-procd-wiki
siproxd: add wiki link and fix debug log capture
2018-12-09 08:58:03 +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
Jiri Slachta
d3666a4ca5
Merge pull request #394 from micmac1/kama-hot
rtpproxy & kamailio: fix hotplug script file names
2018-12-02 21:54:54 +01: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
Jiri Slachta
f4691b2c29
Merge pull request #391 from micmac1/ast15-AST-2018-010-15
(master) asterisk-15.x: add patch for AST-2018-010
2018-11-15 15:55:53 +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
micmac1
d0a14b89b6
Merge pull request #390 from micmac1/fs-init
freeswitch-stable: init/hotplug updates
2018-11-12 22:47:05 +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
Jiri Slachta
f1c9fea67c
Merge pull request #383 from micmac1/kam-awk-and-mips-tweak-master
kamailio-5.x: fix awk issue and some tweaks
2018-10-13 16:02:14 +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
Jiri Slachta
2cd85061bb
Merge pull request #379 from robho/yate_internal_regexps
yate: Revert to internal regex implementation
2018-10-09 08:19:31 +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
Andre Heider
ef17798ecf pjproject: update config_site.h
Sync asterisk settings, see [0].

[0] https://github.com/asterisk/asterisk/blob/master/third-party/pjproject/patches/config_site.h

Signed-off-by: Andre Heider <a.heider@gmail.com>
2018-10-08 12:12:17 +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
micmac1
cef38a1293
Merge pull request #376 from micmac1/fs-1.8.2-master
freeswitch-stable: bump to 1.8.2
2018-09-27 22:52:06 +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
Jiri Slachta
d862d911b0
Merge pull request #373 from micmac1/master-AST-2018-009
(Master) Fix for AST-2018-009
2018-09-21 16:46:56 +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
micmac1
f14a417ae3
Merge pull request #368 from micmac1/fs-cpe
freeswitch-stable: add PKG_CPE_ID
2018-08-26 20:13:55 +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
micmac1
de2ac6fbc7
Merge pull request #367 from micmac1/fs-uci
freeswitch-stable: replace init config defaults with UCI
2018-08-26 12:52:07 +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
micmac1
4d83344fee
Merge pull request #365 from micmac1/fs-perl-master
freeswitch-stable: fix perl setup
2018-08-16 22:19:45 +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
micmac1
8f6cce7af8
Merge pull request #358 from micmac1/fs-1.8-sigkill
freeswitch-stable: add SIGKILL to init script
2018-08-05 15:07: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
micmac1
5a918f3df3
Merge pull request #357 from micmac1/fs-1.8-fs_cli
freeswitch-stable: fix garbled output in fs_cli
2018-08-03 18:52:00 +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
micmac1
70e0535e59
Merge pull request #356 from cotequeiroz/freeswitch-stable_memory-leak
freeswitch-stable: fix memory leak in mod_event_multicast
2018-08-01 22:47:37 +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
micmac1
c31caa1541
Merge pull request #355 from micmac1/fs-1.8-mods
freeswitch-stable: add new modules
2018-08-01 15:55:36 +02: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
micmac1
aa966ce4eb
Merge pull request #354 from micmac1/fs-1.8
freeswitch-stable: bump to 1.8.1
2018-08-01 13:35:40 +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
micmac1
c479fe35e4
Merge pull request #350 from micmac1/fs-nls3
freeswitch-stable: fix gsmopen inbuf handling
2018-07-16 23:27:31 +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
micmac1
46dddeb3f1
Merge pull request #349 from micmac1/fs-nls2
freeswitch-stable: fix sed script
2018-07-15 23:34:43 +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
micmac1
208b918f24
Merge pull request #348 from micmac1/fs-nls
freeswitch-stable: fix iconv related issues
2018-07-15 16:58:44 +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
Jiri Slachta
7407084406
Merge pull request #343 from micmac1/AST-master
(for master) asterik: fix AST-2018-007 and AST-2018-008
2018-06-28 10:43:45 +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
micmac1
c7cb1e30c2
Merge pull request #339 from micmac1/fs-pcre
freeswitch-stable: fix incompatible pointer type
2018-06-21 21:14:14 +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
Jiri Slachta
02928ab9c8
Merge pull request #332 from guidosarducci/siproxd-procd-cleanup
siproxd: switch to procd, restructure/cleanup code, bugfix
2018-05-27 07:32:45 +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
Jiri Slachta
1b7fc3f889
Merge pull request #330 from micmac1/master
asterisk: remove sounds cache
2018-05-24 06:51:06 +02: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
295 changed files with 14048 additions and 10334 deletions

View file

@ -1,20 +1,16 @@
Please make sure that the issue subject starts with `<package-name>: ` so that it's easily identifiable.
Please make sure that the issue subject starts with `<package-name>: `
This repo here is ONLY for packages maintained in this repo. For base packages residing in the same repo as the build system and maintained by core devs, please consider opening tickets there for more timely responses
Also make sure that the package is maintained in this repository and not in base which should be submitted at https://bugs.openwrt.org or in the LuCI repository which should be submitted at https://github.com/openwrt/luci/issues.
- OpenWrt: https://dev.openwrt.org/newticket
- LEDE: https://bugs.lede-project.org/
- Most LuCI packages: https://github.com/openwrt/luci/issues
Issues related to releases below 18.06 and forks are not supported or maintained and will be closed.
Thanks for your contribution
Please remove this text (before ---) and fill the following template
-------------------------------
# Issue template (remove lines from top till here)
Maintainer: @<github-user> (find it by checking history of the package Makefile)
Environment: (put here arch, model, OpenWRT/LEDE version)
Maintainer: @\<github-user> (find it by checking history of the package Makefile)
Environment: (put here arch, model, OpenWrt version)
Description:
```
Formating code blocks by wrapping them with pairs of ```
Format code blocks by wrapping them with pairs of ```
```

View file

@ -1,16 +1,5 @@
Please double check that your commits:
- all start with "<package name>: "
- all contain signed-off-by
- are linked to your github account (you see your logo in front of them)
Please also read https://github.com/openwrt/packages/blob/master/CONTRIBUTING.md
Thanks for your contribution
Please remove this text (before ---) and fill the following template
-------------------------------
Maintainer: me / @<github-user>
Compile tested: (put here arch, model, OpenWRT/LEDE version)
Run tested: (put here arch, model, OpenWRT/LEDE version, tests done)
Maintainer: me / @\<github-user> (find it by checking history of the package Makefile)
Compile tested: (put here arch, model, OpenWrt version)
Run tested: (put here arch, model, OpenWrt version, tests done)
Description:

6
.github/workflows/Dockerfile vendored Normal file
View file

@ -0,0 +1,6 @@
ARG ARCH=x86-64
FROM openwrt/rootfs:$ARCH
ADD entrypoint.sh /entrypoint.sh
CMD ["/entrypoint.sh"]

View file

@ -0,0 +1,91 @@
name: Check autorelease deprecation
on:
pull_request_target:
types: [opened, synchronize, converted_to_draft, ready_for_review, edited]
jobs:
build:
name: Check autorelease deprecation
runs-on: ubuntu-latest
strategy:
fail-fast: false
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Determine branch name
run: |
BRANCH="${GITHUB_BASE_REF#refs/heads/}"
echo "Building for $BRANCH"
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
- name: Determine changed packages
run: |
RET=0
# only detect packages with changes
PKG_ROOTS=$(find . -name Makefile | \
grep -v ".*/src/Makefile" | \
sed -e 's@./\(.*\)/Makefile@\1/@')
CHANGES=$(git diff --diff-filter=d --name-only origin/$BRANCH...)
for ROOT in $PKG_ROOTS; do
for CHANGE in $CHANGES; do
if [[ "$CHANGE" == "$ROOT"* ]]; then
if grep -q '$(AUTORELEASE)' "$ROOT/Makefile"; then
CONTAINS_AUTORELEASE+="$ROOT"
fi
break
fi
done
done
if [ -n "$CONTAINS_AUTORELEASE" ]; then
RET=1
cat > "$GITHUB_WORKSPACE/pr_comment.md" << EOF
Please do no longer set *PKG_RELEASE* to *AUTORELEASE* as the
feature is deprecated. Please use an integer instead. Below is a
list of affected packages including correct *PKG_RELEASE*:
EOF
fi
for ROOT in $CONTAINS_AUTORELEASE; do
echo -n " - ${ROOT}Makefile: PKG_RELEASE:=" >> "$GITHUB_WORKSPACE/pr_comment.md"
last_bump="$(git log --pretty=format:'%h %s' "$ROOT" |
grep --max-count=1 -e ': [uU]pdate to ' -e ': [bB]ump to ' |
cut -f 1 -d ' ')"
if [ -n "$last_bump" ]; then
echo -n $(($(git rev-list --count "$last_bump..HEAD" "$ROOT") + 2)) >> "$GITHUB_WORKSPACE/pr_comment.md"
else
echo -n $(($(git rev-list --count HEAD "$ROOT") + 2)) >> "$GITHUB_WORKSPACE/pr_comment.md"
fi
echo >> "$GITHUB_WORKSPACE/pr_comment.md"
done
exit $RET
- name: Find Comment
uses: peter-evans/find-comment@v2
if: ${{ failure() }}
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
- name: Create or update comment
uses: peter-evans/create-or-update-comment@v2
if: ${{ failure() }}
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body-file: 'pr_comment.md'
edit-mode: replace

26
.github/workflows/ci_helpers.sh vendored Normal file
View file

@ -0,0 +1,26 @@
#!/bin/sh
color_out() {
printf "\e[0;$1m$PKG_NAME: %s\e[0;0m\n" "$2"
}
success() {
color_out 32 "$1"
}
info() {
color_out 36 "$1"
}
err() {
color_out 31 "$1"
}
warn() {
color_out 33 "$1"
}
err_die() {
err "$1"
exit 1
}

43
.github/workflows/entrypoint.sh vendored Executable file
View file

@ -0,0 +1,43 @@
#!/bin/sh
# not enabling `errtrace` and `pipefail` since those are bash specific
set -o errexit # failing commands causes script to fail
set -o nounset # undefined variables causes script to fail
mkdir -p /var/lock/
opkg update
[ -n "${CI_HELPER:=''}" ] || CI_HELPER="/ci/.github/workflows/ci_helpers.sh"
for PKG in /ci/*.ipk; do
tar -xzOf "$PKG" ./control.tar.gz | tar xzf - ./control
# package name including variant
PKG_NAME=$(sed -ne 's#^Package: \(.*\)$#\1#p' ./control)
# package version without release
PKG_VERSION=$(sed -ne 's#^Version: \(.*\)-[0-9]*$#\1#p' ./control)
# package source contianing test.sh script
PKG_SOURCE=$(sed -ne 's#^Source: .*/\(.*\)$#\1#p' ./control)
echo "Testing package $PKG_NAME in version $PKG_VERSION from $PKG_SOURCE"
opkg install "$PKG"
export PKG_NAME PKG_VERSION CI_HELPER
TEST_SCRIPT=$(find /ci/ -name "$PKG_SOURCE" -type d)/test.sh
if [ -f "$TEST_SCRIPT" ]; then
echo "Use package specific test.sh"
if sh "$TEST_SCRIPT" "$PKG_NAME" "$PKG_VERSION"; then
echo "Test successful"
else
echo "Test failed"
exit 1
fi
else
echo "No test.sh script available"
fi
opkg remove "$PKG_NAME" --force-removal-of-dependent-packages --force-remove
done

63
.github/workflows/formal.yml vendored Normal file
View file

@ -0,0 +1,63 @@
name: Test Formalities
on:
pull_request:
jobs:
build:
name: Test Formalities
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Determine branch name
run: |
BRANCH="${GITHUB_BASE_REF#refs/heads/}"
echo "Building for $BRANCH"
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
- name: Test formalities
run: |
source .github/workflows/ci_helpers.sh
RET=0
for commit in $(git rev-list HEAD ^origin/$BRANCH); do
info "=== Checking commit '$commit'"
if git show --format='%P' -s $commit | grep -qF ' '; then
err "Pull request should not include merge commits"
RET=1
fi
author="$(git show -s --format=%aN $commit)"
if echo $author | grep -q '\S\+\s\+\S\+'; then
success "Author name ($author) seems ok"
else
err "Author name ($author) need to be your real name 'firstname lastname'"
RET=1
fi
subject="$(git show -s --format=%s $commit)"
if echo "$subject" | grep -q -e '^[0-9A-Za-z,+/_-]\+: ' -e '^Revert '; then
success "Commit subject line seems ok ($subject)"
else
err "Commit subject line MUST start with '<package name>: ' ($subject)"
RET=1
fi
body="$(git show -s --format=%b $commit)"
sob="$(git show -s --format='Signed-off-by: %aN <%aE>' $commit)"
if echo "$body" | grep -qF "$sob"; then
success "Signed-off-by match author"
else
err "Signed-off-by is missing or doesn't match author (should be '$sob')"
RET=1
fi
done
exit $RET

View file

@ -0,0 +1,164 @@
name: Test Build
on:
pull_request:
jobs:
build:
name: Test ${{ matrix.arch }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- arch: arm_cortex-a9_vfpv3-d16
target: mvebu-cortexa9
runtime_test: false
- arch: mips_24kc
target: ath79-generic
runtime_test: false
- arch: mipsel_24kc
target: mt7621
runtime_test: false
- arch: powerpc_464fp
target: apm821xx-nand
runtime_test: false
- arch: powerpc_8548
target: mpc85xx-p1010
runtime_test: false
- arch: aarch64_cortex-a53
target: mvebu-cortexa53
runtime_test: true
- arch: arm_cortex-a15_neon-vfpv4
target: armvirt-32
runtime_test: true
- arch: i386_pentium-mmx
target: x86-geode
runtime_test: true
- arch: x86_64
target: x86-64
runtime_test: true
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Determine branch name
run: |
BRANCH="${GITHUB_BASE_REF#refs/heads/}"
echo "Building for $BRANCH"
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
- name: Determine changed packages
run: |
# only detect packages with changes
PKG_ROOTS=$(find . -name Makefile | \
grep -v ".*/src/Makefile" | \
sed -e 's@./\(.*\)/Makefile@\1/@')
CHANGES=$(git diff --diff-filter=d --name-only origin/$BRANCH...)
for ROOT in $PKG_ROOTS; do
for CHANGE in $CHANGES; do
if [[ "$CHANGE" == "$ROOT"* ]]; then
PACKAGES+=$(echo "$ROOT" | sed -e 's@.*/\(.*\)/@\1 @')
break
fi
done
done
# fallback to test packages if nothing explicitly changes this is
# should run if other mechanics in packages.git changed
PACKAGES="${PACKAGES:-vim attendedsysupgrade-common bmon}"
echo "Building $PACKAGES"
echo "PACKAGES=$PACKAGES" >> $GITHUB_ENV
- name: Build
uses: openwrt/gh-action-sdk@v5
env:
ARCH: ${{ matrix.arch }}-${{ env.BRANCH }}
FEEDNAME: packages_ci
- name: Move created packages to project dir
run: cp bin/packages/${{ matrix.arch }}/packages_ci/*.ipk . || true
- name: Collect metadata
run: |
MERGE_ID=$(git rev-parse --short HEAD)
echo "MERGE_ID=$MERGE_ID" >> $GITHUB_ENV
echo "BASE_ID=$(git rev-parse --short HEAD^1)" >> $GITHUB_ENV
echo "HEAD_ID=$(git rev-parse --short HEAD^2)" >> $GITHUB_ENV
PRNUMBER=${GITHUB_REF_NAME%/merge}
echo "PRNUMBER=$PRNUMBER" >> $GITHUB_ENV
echo "ARCHIVE_NAME=${{matrix.arch}}-PR$PRNUMBER-$MERGE_ID" >> $GITHUB_ENV
- name: Generate metadata
run: |
cat << _EOF_ > PKG-INFO
Metadata-Version: 2.1
Name: ${{env.ARCHIVE_NAME}}
Version: $BRANCH
Author: $GITHUB_ACTOR
Home-page: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/pull/$PRNUMBER
Download-URL: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
Summary: $PACKAGES
Platform: ${{ matrix.arch }}
Packages for OpenWrt $BRANCH running on ${{matrix.arch}}, built from PR $PRNUMBER
at commit $HEAD_ID, against $BRANCH at commit $BASE_ID, with merge SHA $MERGE_ID.
Modified packages:
_EOF_
for p in $PACKAGES
do
echo " "$p >> PKG-INFO
done
echo >> PKG-INFO
echo Full file listing: >> PKG-INFO
ls -al *.ipk >> PKG-INFO || true
cat PKG-INFO
- name: Store packages
uses: actions/upload-artifact@v3
with:
name: ${{env.ARCHIVE_NAME}}-packages
path: |
*.ipk
PKG-INFO
- name: Store logs
uses: actions/upload-artifact@v3
with:
name: ${{env.ARCHIVE_NAME}}-logs
path: |
logs/
PKG-INFO
- name: Remove logs
run: sudo rm -rf logs/ || true
- name: Register QEMU
if: ${{ matrix.runtime_test }}
run: |
sudo docker run --rm --privileged aptman/qus -s -- -p
- name: Build Docker container
if: ${{ matrix.runtime_test }}
run: |
docker build -t test-container --build-arg ARCH .github/workflows/
env:
ARCH: ${{ matrix.arch }}-${{ env.BRANCH }}
- name: Test via Docker container
if: ${{ matrix.runtime_test }}
run: |
docker run --rm -v $GITHUB_WORKSPACE:/ci test-container

View file

@ -8,18 +8,19 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=bcg729
PKG_VERSION:=1.0.4
PKG_RELEASE:=3
PKG_VERSION:=1.1.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://www.linphone.org/releases/sources/bcg729
PKG_HASH:=1a0fbf1ff91470037e83fa67976f940ebb601e4cc525859c754f4e7ffc24c307
PKG_SOURCE_URL_FILE:=$(PKG_VERSION).tar.gz
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_URL_FILE)
PKG_SOURCE_URL:=https://github.com/BelledonneCommunications/$(PKG_NAME)/archive
PKG_HASH:=68599a850535d1b182932b3f86558ac8a76d4b899a548183b062956c5fdc916d
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
CMAKE_INSTALL:=1
PKG_LICENSE:=GPL-2.0+
PKG_LICENSE_FILES:=COPYING
PKG_LICENSE:=GPL-3.0-or-later
PKG_LICENSE_FILES:=LICENSE.txt
PKG_MAINTAINER:=Alex Samorukov <samm@os2.kiev.ua>
include $(INCLUDE_DIR)/package.mk
@ -51,11 +52,14 @@ CMAKE_OPTIONS += \
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/bcg729
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/bcg729/*.h $(1)/usr/include/bcg729
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libbcg729.so* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/cmake/Bcg729
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/Bcg729/cmake/*.cmake $(1)/usr/lib/cmake/Bcg729
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/bcg729/*.h \
$(1)/usr/include/bcg729
$(INSTALL_DIR) $(1)/usr/lib/{cmake/Bcg729,pkgconfig}
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libbcg729.so* $(1)/usr/lib
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lib$(PKG_NAME).pc \
$(1)/usr/lib/pkgconfig
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/Bcg729/cmake/*.cmake \
$(1)/usr/lib/cmake/Bcg729
endef
define Package/bcg729/install

View file

@ -9,25 +9,21 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=dahdi-linux
PKG_VERSION:=2.11.1-20180111
PKG_RELEASE:=2
PKG_RELEASE:=1
#PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
#PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/dahdi-linux/releases
#PKG_HASH:=f59f382365118205e77d2874f1c0e1546e936247bcc45f07a43bc21778bee9df
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/asterisk/dahdi-linux.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=26597a5cac2930c191ae540c03c7406745c03e36
PKG_MIRROR_HASH:=0eaad3c3ed63efa61e6b807bd70e9b5287271f5dd63af9f41c026a5f979b81d3
PKG_SOURCE_URL:=https://github.com/asterisk/dahdi-linux.git
PKG_SOURCE_DATE=2023-09-21
PKG_SOURCE_VERSION:=1bb9088f2baff8c4e3fec536044cc48072cf9905
PKG_MIRROR_HASH:=b32eb405d64c981f64922840f616cf362636ccc93506986c0b92bd4dcca5ab30
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Vittorio Gambaletta <openwrt@vittgam.net>
DAHDI_MODULES_EXTRA:=
# With below variable set, $(PKG_SYMVERS_DIR)/dahdi-linux.symvers gets
# generated from drivers/dahdi/Module.symvers.
PKG_EXTMOD_SUBDIRS:=drivers/dahdi
include $(INCLUDE_DIR)/package.mk
@ -95,12 +91,9 @@ define Build/Prepare
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
ARCH="$(LINUX_KARCH)" \
$(TARGET_CONFIGURE_OPTS) \
CROSS_COMPILE="$(TARGET_CROSS)" \
KSRC="$(LINUX_DIR)" \
MODULES_EXTRA="$(DAHDI_MODULES_EXTRA)"
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
$(KERNEL_MAKE_FLAGS) \
KSRC="$(LINUX_DIR)"
endef
define Build/InstallDev

View file

@ -1,6 +1,6 @@
--- a/drivers/dahdi/Kbuild
+++ b/drivers/dahdi/Kbuild
@@ -61,9 +61,8 @@ obj-m += $(DAHDI_MODULES_EXTRA)
@@ -64,9 +64,8 @@ obj-m += $(DAHDI_MODULES_EXTRA)
# If you want to build OSLEC, include the code in the standard location:
# drivers/staging/echo . The DAHDI OSLEC echo canceller will be built as
# well:
@ -10,4 +10,4 @@
-obj-m += ../staging/echo/echo.o
endif
CFLAGS_MODULE += -I$(DAHDI_INCLUDE) -I$(src)
CFLAGS_MODULE += -I$(DAHDI_INCLUDE) -I$(src) -Wno-format-truncation

View file

@ -1,19 +1,19 @@
--- a/drivers/dahdi/Kbuild
+++ b/drivers/dahdi/Kbuild
@@ -13,6 +13,7 @@ obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCT
@@ -12,6 +12,7 @@ obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCT
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTC4XXP) += wctc4xxp/
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTDM24XXP) += wctdm24xxp/
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTE12XP) += wcte12xp/
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTE13XP) += wcte13xp.o
+obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_HFCS) += hfcs/
wcte13xp-objs := wcte13xp-base.o wcxb_spi.o wcxb.o wcxb_flash.o
CFLAGS_wcte13xp-base.o += -I$(src)/oct612x -I$(src)/oct612x/include -I$(src)/oct612x/octdeviceapi -I$(src)/oct612x/octdeviceapi/oct6100api
ifndef HOTPLUG_FIRMWARE
ifneq (,$(filter y m,$(CONFIG_FW_LOADER)))
--- a/drivers/dahdi/Kconfig
+++ b/drivers/dahdi/Kconfig
@@ -291,4 +291,14 @@ config DAHDI_WCTE11XP
@@ -235,4 +235,14 @@ config DAHDI_DYNAMIC_LOC
If unsure, say Y.
+config DAHDI_HFCS
+ tristate "Support for various HFC-S PCI BRI adapters"
+ depends on DAHDI && PCI
@ -1716,7 +1716,7 @@
+ hfc_proc_dahdi_hfcs_dir = proc_mkdir(hfc_DRIVER_NAME, proc_root_driver);
+#endif
+
+ ret = dahdi_pci_module(&hfc_driver);
+ ret = pci_register_driver(&hfc_driver);
+ return ret;
+}
+

View file

@ -0,0 +1,138 @@
--- a/drivers/dahdi/xpp/xbus-core.c
+++ b/drivers/dahdi/xpp/xbus-core.c
@@ -25,6 +25,7 @@
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/mutex.h>
+#include <linux/math64.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
@@ -1768,11 +1769,13 @@ out:
static void xbus_fill_proc_queue(struct seq_file *sfile, struct xframe_queue *q)
{
+ s32 rem;
+ s64 lag_sec = div_s64_rem(q->worst_lag_usec, 1000, &rem);
seq_printf(sfile,
- "%-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%lld ms\n",
+ "%-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%ld ms\n",
q->name, q->steady_state_count, q->count, q->max_count,
- q->worst_count, q->overflows, q->worst_lag_usec / 1000,
- q->worst_lag_usec % 1000);
+ q->worst_count, q->overflows, lag_sec,
+ rem);
xframe_queue_clearstats(q);
}
--- a/drivers/dahdi/xpp/xbus-pcm.c
+++ b/drivers/dahdi/xpp/xbus-pcm.c
@@ -22,6 +22,7 @@
#include <linux/version.h>
#include <linux/kernel.h>
#include <linux/module.h>
+#include <linux/math64.h>
#include "xbus-pcm.h"
#include "xbus-core.h"
#include "xpp_dahdi.h"
@@ -129,7 +130,7 @@ static int xpp_ticker_step(struct xpp_ti
usec = ktime_us_delta(ticker->last_sample,
ticker->first_sample);
ticker->first_sample = ticker->last_sample;
- ticker->tick_period = usec / ticker->cycle;
+ ticker->tick_period = div_s64(usec, ticker->cycle);
cycled = 1;
}
ticker->count++;
@@ -497,7 +498,7 @@ static void send_drift(xbus_t *xbus, int
XBUS_DBG(SYNC, xbus,
"%sDRIFT adjust %s (%d) (last update %lld seconds ago)\n",
(disable_pll_sync) ? "Fake " : "", msg, drift,
- msec_delta / MSEC_PER_SEC);
+ div_s64(msec_delta, MSEC_PER_SEC));
if (!disable_pll_sync)
CALL_PROTO(GLOBAL, SYNC_SOURCE, xbus, NULL, SYNC_MODE_PLL,
drift);
--- a/drivers/dahdi/xpp/xbus-sysfs.c
+++ b/drivers/dahdi/xpp/xbus-sysfs.c
@@ -23,6 +23,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/errno.h>
+#include <linux/math64.h>
#include <linux/proc_fs.h>
#ifdef PROTOCOL_DEBUG
#include <linux/ctype.h>
@@ -249,11 +250,9 @@ static DEVICE_ATTR_READER(driftinfo_show
/*
* Calculate lost ticks time
*/
- seconds = ktime_ms_delta(now, di->last_lost_tick) / 1000;
- minutes = seconds / 60;
- seconds = seconds % 60;
- hours = minutes / 60;
- minutes = minutes % 60;
+ seconds = div_s64(ktime_ms_delta(now, di->last_lost_tick), 1000);
+ minutes = div_s64_rem(seconds, 60, &seconds);
+ hours = div_s64_rem(minutes, 60, &minutes);
len += snprintf(buf + len, PAGE_SIZE - len,
"%-15s: %8d (was %d:%02d:%02d ago)\n", "lost_ticks",
di->lost_ticks, hours, minutes, seconds);
--- a/drivers/dahdi/xpp/xframe_queue.c
+++ b/drivers/dahdi/xpp/xframe_queue.c
@@ -1,3 +1,4 @@
+#include <linux/math64.h>
#include "xframe_queue.h"
#include "xbus-core.h"
#include "dahdi_debug.h"
@@ -40,10 +41,11 @@ static void __xframe_dump_queue(struct x
THIS_MODULE->name, q->name);
list_for_each_entry_reverse(xframe, &q->head, frame_list) {
xpacket_t *pack = (xpacket_t *)&xframe->packets[0];
- s64 usec = ktime_us_delta(now, xframe->kt_queued);
+ s32 rem;
+ s64 sec = div_s64_rem(ktime_us_delta(now, xframe->kt_queued), 1000, &rem);
- snprintf(prefix, ARRAY_SIZE(prefix), " %3d> %5lld.%03lld msec",
- i++, usec / 1000, usec % 1000);
+ snprintf(prefix, ARRAY_SIZE(prefix), " %3d> %5lld.%03ld msec",
+ i++, sec, rem);
dump_packet(prefix, pack, 1);
}
}
@@ -60,11 +62,13 @@ static bool __xframe_enqueue(struct xfra
if (q->count >= q->max_count) {
q->overflows++;
if ((overflow_cnt++ % 1000) < 5) {
- NOTICE("Overflow of %-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%lld ms\n",
+ s32 rem;
+ s64 lag_sec = div_s64_rem(q->worst_lag_usec, 1000, &rem);
+ NOTICE("Overflow of %-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%ld ms\n",
q->name, q->steady_state_count, q->count,
q->max_count, q->worst_count, q->overflows,
- q->worst_lag_usec / 1000,
- q->worst_lag_usec % 1000);
+ lag_sec,
+ rem);
__xframe_dump_queue(q);
}
ret = 0;
--- a/drivers/dahdi/xpp/xpp_usb.c
+++ b/drivers/dahdi/xpp/xpp_usb.c
@@ -27,6 +27,7 @@
#include <linux/interrupt.h>
#include <linux/delay.h> /* for udelay */
#include <linux/seq_file.h>
+#include <linux/math64.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
#include <asm/uaccess.h>
#else
@@ -891,7 +892,7 @@ static void xpp_send_callback(struct urb
usec = 0; /* System clock jumped */
if (usec > xusb->max_tx_delay)
xusb->max_tx_delay = usec;
- i = usec / USEC_BUCKET;
+ i = div_s64(usec, USEC_BUCKET);
if (i >= NUM_BUCKETS)
i = NUM_BUCKETS - 1;
xusb->usb_tx_delay[i]++;

View file

@ -0,0 +1,131 @@
From f9bc391e1cd830c830b3b4fb5fd46a59b41de373 Mon Sep 17 00:00:00 2001
From: Christian Marangi <ansuelsmth@gmail.com>
Date: Fri, 12 May 2023 20:18:13 +0200
Subject: [PATCH 1/6] dahdi: use fallthrough where needed
Use fallthrough instead of comment to fix compilation warning.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
drivers/dahdi/dahdi-base.c | 14 +++++++-------
drivers/dahdi/wcaxx-base.c | 2 ++
drivers/dahdi/wctdm24xxp/base.c | 2 ++
drivers/dahdi/xpp/card_global.c | 2 +-
4 files changed, 12 insertions(+), 8 deletions(-)
--- a/drivers/dahdi/dahdi-base.c
+++ b/drivers/dahdi/dahdi-base.c
@@ -7930,7 +7930,7 @@ static inline void __dahdi_process_getau
memset(getlin, 0, DAHDI_CHUNKSIZE * sizeof(short));
txb[0] = DAHDI_LIN2X(0, ms);
memset(txb + 1, txb[0], DAHDI_CHUNKSIZE - 1);
- /* fallthrough */
+ fallthrough;
case DAHDI_CONF_CONF: /* Normal conference mode */
if (is_pseudo_chan(ms)) /* if pseudo-channel */
{
@@ -7954,7 +7954,7 @@ static inline void __dahdi_process_getau
memset(txb + 1, txb[0], DAHDI_CHUNKSIZE - 1);
break;
}
- /* fall through */
+ fallthrough;
case DAHDI_CONF_CONFMON: /* Conference monitor mode */
if (ms->confmode & DAHDI_CONF_LISTENER) {
/* Subtract out last sample written to conf */
@@ -8493,7 +8493,7 @@ static void __dahdi_hooksig_pvt(struct d
break;
}
#endif
- /* fallthrough */
+ fallthrough;
case DAHDI_SIG_FXSGS: /* FXS Groundstart */
if (rxsig == DAHDI_RXSIG_ONHOOK) {
chan->ringdebtimer = RING_DEBOUNCE_TIME;
@@ -8512,7 +8512,7 @@ static void __dahdi_hooksig_pvt(struct d
chan->gotgs = 1;
}
}
- /* fallthrough */
+ fallthrough;
case DAHDI_SIG_FXOLS: /* FXO Loopstart */
case DAHDI_SIG_FXOKS: /* FXO Kewlstart */
switch(rxsig) {
@@ -8612,7 +8612,7 @@ void dahdi_rbsbits(struct dahdi_chan *ch
__dahdi_hooksig_pvt(chan, DAHDI_RXSIG_START);
break;
}
- /* Fall through */
+ fallthrough;
case DAHDI_SIG_EM_E1:
case DAHDI_SIG_FXOLS: /* FXO Loopstart */
case DAHDI_SIG_FXOKS: /* FXO Kewlstart */
@@ -8630,7 +8630,7 @@ void dahdi_rbsbits(struct dahdi_chan *ch
break;
case DAHDI_SIG_FXSKS: /* FXS Kewlstart */
case DAHDI_SIG_FXSGS: /* FXS Groundstart */
- /* Fall through */
+ fallthrough;
case DAHDI_SIG_FXSLS:
if (!(cursig & DAHDI_BBIT)) {
/* Check for ringing first */
@@ -9059,7 +9059,7 @@ static inline void __dahdi_process_putau
memcpy(ss->putlin, putlin, DAHDI_CHUNKSIZE * sizeof(short));
break;
}
- /* fall through */
+ fallthrough;
case DAHDI_CONF_CONFANN: /* Conference with announce */
if (ms->confmode & DAHDI_CONF_TALKER) {
/* Store temp value */
--- a/drivers/dahdi/wcaxx-base.c
+++ b/drivers/dahdi/wcaxx-base.c
@@ -1456,7 +1456,7 @@ wcaxx_check_battery_lost(struct wcaxx *w
break;
case BATTERY_UNKNOWN:
mod_hooksig(wc, mod, DAHDI_RXSIG_ONHOOK);
- /* fallthrough */
+ fallthrough;
case BATTERY_PRESENT:
fxo->battery_state = BATTERY_DEBOUNCING_LOST;
fxo->battdebounce_timer = wc->framecount + battdebounce;
@@ -1567,7 +1567,7 @@ wcaxx_check_battery_present(struct wcaxx
break;
case BATTERY_UNKNOWN:
mod_hooksig(wc, mod, DAHDI_RXSIG_OFFHOOK);
- /* fallthrough */
+ fallthrough;
case BATTERY_LOST:
fxo->battery_state = BATTERY_DEBOUNCING_PRESENT;
fxo->battdebounce_timer = wc->framecount + battdebounce;
--- a/drivers/dahdi/wctdm24xxp/base.c
+++ b/drivers/dahdi/wctdm24xxp/base.c
@@ -1964,7 +1964,7 @@ wctdm_check_battery_lost(struct wctdm *w
break;
case BATTERY_UNKNOWN:
mod_hooksig(wc, mod, DAHDI_RXSIG_ONHOOK);
- /* fallthrough */
+ fallthrough;
case BATTERY_PRESENT:
fxo->battery_state = BATTERY_DEBOUNCING_LOST;
fxo->battdebounce_timer = wc->framecount + battdebounce;
@@ -2074,7 +2074,7 @@ wctdm_check_battery_present(struct wctdm
break;
case BATTERY_UNKNOWN:
mod_hooksig(wc, mod, DAHDI_RXSIG_OFFHOOK);
- /* fallthrough */
+ fallthrough;
case BATTERY_LOST:
fxo->battery_state = BATTERY_DEBOUNCING_PRESENT;
fxo->battdebounce_timer = wc->framecount + battdebounce;
--- a/drivers/dahdi/xpp/card_global.c
+++ b/drivers/dahdi/xpp/card_global.c
@@ -148,7 +148,7 @@ static int execute_chip_command(xpd_t *x
XPD_NOTICE(xpd,
"'I' is deprecated in register commands. "
"Use 'S' instead.\n");
- /* fall through */
+ fallthrough;
case 'S':
do_subreg = 1;
num_args += 2; /* register + subreg */

View file

@ -0,0 +1,60 @@
From eea6daaa4cae1ddcd8e32c8b9e4273ba3244838c Mon Sep 17 00:00:00 2001
From: Christian Marangi <ansuelsmth@gmail.com>
Date: Fri, 12 May 2023 20:19:04 +0200
Subject: [PATCH 2/6] dahdi: fix always true compilation warning
Fix always true compilation warning on statically allocated array. Check
content of the array instead.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
drivers/dahdi/dahdi-base.c | 6 +++---
drivers/dahdi/dahdi_dynamic_ethmf.c | 2 +-
drivers/dahdi/xpp/xbus-core.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
--- a/drivers/dahdi/dahdi-base.c
+++ b/drivers/dahdi/dahdi-base.c
@@ -928,9 +928,9 @@ static int dahdi_seq_show(struct seq_fil
if (!s)
return -ENODEV;
- if (s->name)
+ if (*(s->name))
seq_printf(sfile, "Span %d: %s ", s->spanno, s->name);
- if (s->desc)
+ if (*(s->desc))
seq_printf(sfile, "\"%s\"", s->desc);
else
seq_printf(sfile, "\"\"");
@@ -969,7 +969,7 @@ static int dahdi_seq_show(struct seq_fil
for (x = 0; x < s->channels; x++) {
struct dahdi_chan *chan = s->chans[x];
- if (chan->name)
+ if (*(chan->name))
seq_printf(sfile, "\t%4d %s ", chan->channo,
chan->name);
--- a/drivers/dahdi/dahdi_dynamic_ethmf.c
+++ b/drivers/dahdi/dahdi_dynamic_ethmf.c
@@ -535,7 +535,7 @@ static void ztdethmf_destroy(struct dahd
kfree(z->msgbuf);
kfree(z);
} else {
- if (z && z->span && z->span->name) {
+ if (z && z->span && *(z->span->name)) {
printk(KERN_ERR "Cannot find interface for %s\n",
z->span->name);
}
--- a/drivers/dahdi/xpp/xbus-core.c
+++ b/drivers/dahdi/xpp/xbus-core.c
@@ -120,7 +120,7 @@ int xbus_check_unique(xbus_t *xbus)
{
if (!xbus)
return -ENOENT;
- if (xbus->label && *(xbus->label)) {
+ if (*(xbus->label)) {
xbus_t *xbus_old;
XBUS_DBG(DEVICES, xbus, "Checking LABEL='%s'\n", xbus->label);

View file

@ -0,0 +1,28 @@
From d0699f781e96df6c1fd10551c92fa27695b297da Mon Sep 17 00:00:00 2001
From: Christian Marangi <ansuelsmth@gmail.com>
Date: Fri, 12 May 2023 20:19:45 +0200
Subject: [PATCH 3/6] dahdi-sysfs-chan: fix bug if clause does not guard
Fix bug if clause does not guard by a typo by missing the if clause and
not correctly removing the device.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
drivers/dahdi/dahdi-sysfs-chan.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/drivers/dahdi/dahdi-sysfs-chan.c
+++ b/drivers/dahdi/dahdi-sysfs-chan.c
@@ -381,10 +381,11 @@ static void fixed_devfiles_remove(void)
return;
for (i = 0; i < ARRAY_SIZE(fixed_minors); i++) {
void *d = fixed_minors[i].dev;
- if (d && !IS_ERR(d))
+ if (d && !IS_ERR(d)) {
dahdi_dbg(DEVICES, "Removing fixed device file %s\n",
fixed_minors[i].name);
DEL_DAHDI_DEV(fixed_minors[i].minor);
+ }
}
}

View file

@ -0,0 +1,38 @@
From 88cfe20bcd0be443fc7613fd287147d1c54b5f7f Mon Sep 17 00:00:00 2001
From: Christian Marangi <ansuelsmth@gmail.com>
Date: Fri, 12 May 2023 20:21:39 +0200
Subject: [PATCH 5/6] dahdi: skip checking on releasing
Skip checking on releasing since xb is statically allocated and always
present.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
drivers/dahdi/wcte13xp-base.c | 3 +--
drivers/dahdi/wcte43x-base.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
--- a/drivers/dahdi/wcte13xp-base.c
+++ b/drivers/dahdi/wcte13xp-base.c
@@ -2707,8 +2707,7 @@ static int __devinit te13xp_init_one(str
return 0;
fail_exit:
- if (&wc->xb)
- wcxb_release(&wc->xb);
+ wcxb_release(&wc->xb);
free_wc(wc);
return res;
--- a/drivers/dahdi/wcte43x-base.c
+++ b/drivers/dahdi/wcte43x-base.c
@@ -3521,8 +3521,7 @@ static int __devinit t43x_init_one(struc
return 0;
fail_exit:
- if (&wc->xb)
- wcxb_release(&wc->xb);
+ wcxb_release(&wc->xb);
if (debug)
dev_info(&wc->xb.pdev->dev, "***At fail_exit in init_one***\n");

View file

@ -0,0 +1,44 @@
From 14a9e676d635b1c2be1bab4114cc76c1793892d0 Mon Sep 17 00:00:00 2001
From: Christian Marangi <ansuelsmth@gmail.com>
Date: Fri, 12 May 2023 20:22:31 +0200
Subject: [PATCH 6/6] dahdi: xpp: fix wrong printf to %d
Fix wrong printf that should be %d with int variables.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
drivers/dahdi/xpp/xbus-core.c | 2 +-
drivers/dahdi/xpp/xframe_queue.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
--- a/drivers/dahdi/xpp/xbus-core.c
+++ b/drivers/dahdi/xpp/xbus-core.c
@@ -1772,7 +1772,7 @@ static void xbus_fill_proc_queue(struct
s32 rem;
s64 lag_sec = div_s64_rem(q->worst_lag_usec, 1000, &rem);
seq_printf(sfile,
- "%-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%ld ms\n",
+ "%-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%d ms\n",
q->name, q->steady_state_count, q->count, q->max_count,
q->worst_count, q->overflows, lag_sec,
rem);
--- a/drivers/dahdi/xpp/xframe_queue.c
+++ b/drivers/dahdi/xpp/xframe_queue.c
@@ -44,7 +44,7 @@ static void __xframe_dump_queue(struct x
s32 rem;
s64 sec = div_s64_rem(ktime_us_delta(now, xframe->kt_queued), 1000, &rem);
- snprintf(prefix, ARRAY_SIZE(prefix), " %3d> %5lld.%03ld msec",
+ snprintf(prefix, ARRAY_SIZE(prefix), " %3d> %5lld.%03d msec",
i++, sec, rem);
dump_packet(prefix, pack, 1);
}
@@ -64,7 +64,7 @@ static bool __xframe_enqueue(struct xfra
if ((overflow_cnt++ % 1000) < 5) {
s32 rem;
s64 lag_sec = div_s64_rem(q->worst_lag_usec, 1000, &rem);
- NOTICE("Overflow of %-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%ld ms\n",
+ NOTICE("Overflow of %-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%d ms\n",
q->name, q->steady_state_count, q->count,
q->max_count, q->worst_count, q->overflows,
lag_sec,

View file

@ -1,5 +1,5 @@
#
# Copyright (C) 2014 - 2018 OpenWrt.org
# Copyright (C) 2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -8,17 +8,23 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=dahdi-tools
PKG_VERSION:=2.11.1
PKG_VERSION:=3.1.0
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/dahdi-tools/releases
PKG_HASH:=53ffeb333f3e44b0c88e5b17475cdbf87d3f652eb81a6422de76250c061e2909
PKG_HASH:=ea852ebd274ee1cc90ff5e4ac84261b0b787b1a74e8b76ad659bc9ec4f77e67e
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Vittorio Gambaletta <openwrt@vittgam.net>
PKG_BUILD_PARALLEL:=1
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/dahdi-cfg/Default
@ -46,41 +52,44 @@ define Package/dahdi-tools-libtonezone
TITLE:=DAHDI tonezone library
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
HOSTCC="$(HOSTCC)" \
CROSS_COMPILE="$(TARGET_CROSS)" \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS)" \
dahdi_cfg dahdi_monitor dahdi_scan dahdi_speed dahdi_test fxotune
endef
CONFIGURE_ARGS += \
--disable-silent-rules \
--with-perllib="" \
--without-libusb \
--without-libusbx \
--without-newt \
--without-pcap \
--without-ppp \
--without-selinux \
--without-usb
# https://issues.asterisk.org/jira/browse/DAHTOOL-85
TARGET_CFLAGS+=-fcommon
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/.libs/*.so* $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/.libs/*.a $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtonezone.{a,so*} \
$(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/include/dahdi
$(INSTALL_DATA) $(PKG_BUILD_DIR)/tonezone.h $(1)/usr/include/dahdi/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/dahdi/tonezone.h \
$(1)/usr/include/dahdi/
endef
define Package/dahdi-cfg/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/dahdi_cfg $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dahdi_scan $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/fxotune $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{dahdi_cfg,dahdi_scan,fxotune} \
$(1)/usr/sbin/
endef
define Package/dahdi-monitor/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dahdi_monitor $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dahdi_speed $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dahdi_test $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{dahdi_monitor,dahdi_speed,dahdi_test} \
$(1)/usr/sbin/
endef
define Package/dahdi-tools-libtonezone/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/.libs/libtonezone.so* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtonezone.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,dahdi-cfg))

View file

@ -0,0 +1,11 @@
--- a/xpp/echo_loader.c
+++ b/xpp/echo_loader.c
@@ -564,7 +564,7 @@ UINT32 Oct6100UserDriverReadBurstApi(tPO
return cOCT6100_ERR_OK;
}
-inline int get_ver(struct astribank *astribank)
+static inline int get_ver(struct astribank *astribank)
{
return spi_send(astribank, 0, 0, 1, 1);
}

View file

@ -0,0 +1,10 @@
--- a/xpp/hexfile.h
+++ b/xpp/hexfile.h
@@ -26,6 +26,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
+#include <sys/cdefs.h>
#include <sys/param.h>
#include <syslog.h>
#define PACKED __attribute__((packed))

12
libs/freetdm/Config.in Normal file
View file

@ -0,0 +1,12 @@
menu "Configuration"
depends on PACKAGE_freetdm
config FREETDM_WITH_DEBUG
bool "Compile with debug information"
default n
help
Enable extra debug codepaths, like asserts and extra output. If you
want to get meaningful backtraces see
https://wiki.openwrt.org/doc/devel/debugging for starting points.
endmenu

154
libs/freetdm/Makefile Normal file
View file

@ -0,0 +1,154 @@
#
# Copyright (C) 2021 Sebastian Kemper <sebastian_ml@gmx.net>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=freetdm
PKG_RELEASE:=2
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/freeswitch/freetdm.git
PKG_SOURCE_DATE:=2021-08-30
PKG_SOURCE_VERSION:=8918ee1c3637cad0f9d41a402d26d3aa076fc202
PKG_MIRROR_HASH:=c910ff0fb62c8a174f6e0bbd749783da1ecd71634d4dcde48b118909f4981943
PKG_FIXUP:=autoreconf
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
PKG_LICENSE:= \
BSD-2-Clause \
BSD-3-Clause \
BSD-4-Clause \
GPL-2.0+ \
MIT/X11 (BSD like) \
MPL-1.1
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_DEPENDS:=freeswitch
FS_EXAMPLES_DIR:=/usr/share/freeswitch/examples
FS_LIB_DIR:=/usr/lib
FS_MOD_DIR:=$(FS_LIB_DIR)/freeswitch/mod
FS_PKGCONFIG_DIR:=$(FS_LIB_DIR)/pkgconfig
PKG_CONFIG_DEPENDS:= \
CONFIG_FREETDM_WITH_DEBUG \
CONFIG_LIBC \
CONFIG_PACKAGE_libfreetdm-ftmod-libpri \
CONFIG_PACKAGE_libfreetdm-ftmod-pritap \
include $(INCLUDE_DIR)/package.mk
define Package/libfreetdm/install/ftmod
$(INSTALL_DIR) $(1)$(FS_MOD_DIR)
$(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_MOD_DIR)/ftmod_$(2).so \
$(1)$(FS_MOD_DIR)
endef
define Package/freetdm/config
source "$(SOURCE)/Config.in"
endef
define Package/libfreetdm/Default
SECTION:=libs
CATEGORY:=Libraries
SUBMENU:=Telephony
URL:=https://www.freeswitch.org
endef
define Package/libfreetdm
$(call Package/libfreetdm/Default)
DEPENDS:=
TITLE:=TDM signaling and media API
MENU:=1
endef
define Package/libfreetdm/description
Provides a unified interface to hardware TDM cards and SS7 stacks.
endef
define Package/libfreetdm/install
$(INSTALL_DIR) $(1)$(FS_LIB_DIR)
$(CP) $(PKG_INSTALL_DIR)$(FS_LIB_DIR)/libfreetdm.so.* \
$(1)$(FS_LIB_DIR)
endef
define Package/freeswitch-mod-freetdm
$(call Package/libfreetdm/Default)
SECTION:=net
CATEGORY:=Network
SUBMENU:=Telephony
DEPENDS:=freeswitch +libfreetdm
TITLE:=FreeTDM endpoint module
endef
define Package/freeswitch-mod-freetdm/description
This module is the glue between FreeSWITCH and FreeTDM.
endef
define Package/freeswitch-mod-freetdm/install
$(INSTALL_DIR) $(1)$(FS_MOD_DIR)
$(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_MOD_DIR)/mod_freetdm.so \
$(1)$(FS_MOD_DIR)
ifeq ($(CONFIG_FS_WITH_MODCONF),y)
$(INSTALL_DIR) \
$(1)$(FS_EXAMPLES_DIR)/mod_freetdm/freeswitch/autoload_configs
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/*.conf \
$(1)$(FS_EXAMPLES_DIR)/mod_freetdm
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/etc/freeswitch/autoload_configs/freetdm.conf.xml \
$(1)$(FS_EXAMPLES_DIR)/mod_freetdm/freeswitch/autoload_configs
endif
endef
define Package/libfreetdm/FTModule
define Package/libfreetdm-ftmod-$(subst _,-,$(1))
$(call Package/libfreetdm/Default)
DEPENDS:=libfreetdm \
$(patsubst +%,+PACKAGE_libfreetdm-ftmod-$(subst _,-,$(1)):%,$(4))
TITLE:=$(2) FreeTDM module
endef
define Package/libfreetdm-ftmod-$(subst _,-,$(1))/description
$(subst \n,$(newline),$(3))
endef
define Package/libfreetdm-ftmod-$(subst _,-,$(1))/install
$(call Package/libfreetdm/install/ftmod,$$(1),$(1))
endef
$$(eval $$(call BuildPackage,libfreetdm-ftmod-$(subst _,-,$(1))))
endef
CONFIGURE_ARGS+= \
--srcdir=$(PKG_BUILD_DIR) \
--disable-dependency-tracking \
--disable-static \
--with-modinstdir=$(FS_MOD_DIR) \
$(call autoconf_bool,CONFIG_FREETDM_WITH_DEBUG,debug) \
$(if $(CONFIG_PACKAGE_libfreetdm-ftmod-libpri),--with-libpri="$(STAGING_DIR)/usr",--without-libpri) \
$(if $(CONFIG_PACKAGE_libfreetdm-ftmod-pritap),--with-pritap,--without-pritap)
$(eval $(call BuildPackage,libfreetdm))
$(eval $(call BuildPackage,freeswitch-mod-freetdm))
################################
# FreeTDM modules
# Params:
# 1 - Package subname
# 2 - Package title
# 3 - Module description
# 4 - Module dependencies
################################
$(eval $(call Package/libfreetdm/FTModule,analog,Analog,Offers generic FXO/FXS support for any type of card supported by FreeTDM.,))
$(eval $(call Package/libfreetdm/FTModule,analog_em,Analog EM,Offers generic E&M signaling for any type of card supported by FreeTDM.,))
$(eval $(call Package/libfreetdm/FTModule,libpri,LibPRI,Offers support for PRI lines using the open source libpri stack for any\ntype of card supported by FreeTDM. Supports both PRI and BRI signalling.,+libpri @!aarch64))
$(eval $(call Package/libfreetdm/FTModule,pritap,PRI tapping,This module is used to tap PRI lines.,+libfreetdm-ftmod-libpri))
$(eval $(call Package/libfreetdm/FTModule,skel,Skeleton,ftmod_skel is an example module.,))
$(eval $(call Package/libfreetdm/FTModule,zt,DAHDI I/O,This module supports the DAHDI interface. The DAHDI interface is used by\nseveral hardware vendors.,))

View file

@ -1,5 +1,5 @@
--- a/libs/freetdm/configure.ac
+++ b/libs/freetdm/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -88,7 +88,7 @@ AC_ARG_ENABLE([enable_64],
case "${ax_cv_c_compiler_vendor}" in

View file

@ -1,5 +1,5 @@
--- a/libs/freetdm/mod_freetdm/Makefile.in
+++ b/libs/freetdm/mod_freetdm/Makefile.in
--- a/mod_freetdm/Makefile.in
+++ b/mod_freetdm/Makefile.in
@@ -1,4 +1,4 @@
-FT_CFLAGS=@CFLAGS@ @COMP_VENDOR_CFLAGS@ @DEFS@
+FT_CFLAGS=@COMP_VENDOR_CFLAGS@ @DEFS@

View file

@ -0,0 +1,10 @@
--- a/Makefile.am
+++ b/Makefile.am
@@ -284,6 +284,7 @@ dox doxygen:
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(prefix)
$(mkinstalldirs) $(DESTDIR)@confdir@
+ $(mkinstalldirs) $(DESTDIR)@fsconfdir@/autoload_configs
@[ -f "$(DESTDIR)@confdir@/freetdm.conf" ] || ( cp conf/*.conf $(DESTDIR)@confdir@)
@[ -f "$(DESTDIR)@fsconfdir@/autoload_configs/freetdm.conf.xml" ] || ( cp -f conf/freetdm.conf.xml $(DESTDIR)@fsconfdir@/autoload_configs)
@echo FreeTDM Installed

View file

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=gsmlib
PKG_VERSION:=1.10-20140304
PKG_RELEASE:=2
PKG_RELEASE:=5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/vbouchaud/gsmlib.git
@ -31,7 +31,6 @@ PKG_LICENSE:=LGPL-2.1+
PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)/Default
@ -44,7 +43,7 @@ $(call Package/$(PKG_NAME)/Default)
SECTION:=libs
CATEGORY:=Libraries
TITLE:=GSM mobile phone access lib
DEPENDS:=$(CXX_DEPENDS)
DEPENDS:=+libstdcpp
endef
define Package/gsm-utils
@ -63,6 +62,10 @@ define Package/gsm-utils/description
Some simple command line programs to access GSM mobile phones via GSM modems.
endef
CONFIGURE_ARGS += --disable-nls
TARGET_CXXFLAGS += -std=c++11
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/$(PKG_NAME)
$(INSTALL_DATA) \

View file

@ -19,6 +19,15 @@ Description: Update autotools-related stuff.
dnl comment out this line to get extensive debugging output and asserts
dnl CXXFLAGS="-DNDEBUG $CXXFLAGS"
@@ -108,7 +111,7 @@ AC_SUBST(GSM_VERSION)
dnl national language support (NLS)
LINGUAS="de"
ALL_LINGUAS=$LINGUAS
-AM_GNU_GETTEXT
+AM_GNU_GETTEXT([external])
dnl AM_GLIB_GNU_GETTEXT
dnl set locale dir (FIXME there must be a better way)
--- /dev/null
+++ b/po/Makevars
@@ -0,0 +1,5 @@
@ -29,7 +38,7 @@ Description: Update autotools-related stuff.
+
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,6 +11,8 @@
@@ -11,14 +11,12 @@
# * Created: 21.5.1999
# *************************************************************************
@ -38,3 +47,11 @@ Description: Update autotools-related stuff.
SUBDIRS_ = po gsmlib apps tests doc scripts win32 ext
EXTRA_DIST = gsmlib.spec
-if COMPILE_INTL
-SUBDIRS = intl $(SUBDIRS_) # po - make automake happy
-else
SUBDIRS = $(SUBDIRS_) # po intl - make automake happy
-endif
all:

View file

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libctb
PKG_VERSION:=0.16
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://iftools.com/download/ctb/$(PKG_VERSION)
@ -23,7 +23,6 @@ PKG_LICENSE:=LGPL
PKG_LICENSE_FILES:=build/COPYING
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
@ -32,7 +31,7 @@ define Package/$(PKG_NAME)
CATEGORY:=Libraries
TITLE:=Communications toolbox - ctb
URL:=https://iftools.com/opensource/ctb.en.php
DEPENDS:=$(CXX_DEPENDS)
DEPENDS:=+libstdcpp
endef
define Package/$(PKG_NAME)/description

66
libs/libks/Makefile Normal file
View file

@ -0,0 +1,66 @@
#
# Copyright (C) 2019 Sebastian Kemper <sebastian_ml@gmx.net>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libks
PKG_VERSION:=2.0.2
PKG_RELEASE:=1
PKG_SOURCE:=libks-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/signalwire/libks/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=af94f9fcdb2022b8f09187309ac2d372a5a4cc639af77cd4375f2d5c88b4fd63
PKG_BUILD_PARALLEL:=1
CMAKE_INSTALL:=1
PKG_LICENSE:= \
BSD-1-Clause \
BSD-3-Clause \
ISC \
MIT \
PUBLICDOMAIN \
twofish
PKG_LICENSE_FILES:=copyright
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/libks
SUBMENU:=Telephony
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Foundational support for SignalWire C products
URL:=https://github.com/signalwire/libks
ABI_VERSION:=2
DEPENDS:=+libatomic +libopenssl +libuuid
endef
# Otherwise OpenWrt's CPPFLAGS are ignored
TARGET_CFLAGS += $(TARGET_CPPFLAGS)
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/libks2/libks/cmake
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/libks2/libks/*.h \
$(1)/usr/include/libks2/libks
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/libks2/libks/cmake/* \
$(1)/usr/include/libks2/libks/cmake
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libks2.so* $(1)/usr/lib
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libks2.pc \
$(1)/usr/lib/pkgconfig
endef
define Package/libks/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libks2.so.$(ABI_VERSION)* $(1)/usr/lib
endef
$(eval $(call BuildPackage,libks))

View file

@ -0,0 +1,15 @@
--- a/cmake/FindLibM.cmake
+++ b/cmake/FindLibM.cmake
@@ -8,11 +8,7 @@
# A user may set ``LIBM_ROOT`` to a math library installation root to tell this
# module where to look.
-find_path(LIBM_INCLUDE_DIRS
- NAMES math.h
- PATHS /usr/include /usr/local/include /usr/local/bic/include
- NO_DEFAULT_PATH
-)
+find_path(LIBM_INCLUDE_DIRS math.h)
find_library(LIBM_LIBRARIES m)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LibM DEFAULT_MSG LIBM_LIBRARIES LIBM_INCLUDE_DIRS)

View file

@ -0,0 +1,11 @@
--- a/src/include/libks/ks_platform.h
+++ b/src/include/libks/ks_platform.h
@@ -93,7 +93,7 @@ KS_BEGIN_EXTERN_C
#include <sys/time.h>
#include <sys/select.h>
#include <netinet/tcp.h>
-#include <sys/signal.h>
+#include <signal.h>
#include <unistd.h>
#include <strings.h>
#include <stdint.h>

View file

@ -0,0 +1,24 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,10 @@ option(WITH_LIBBACKTRACE "Enables linkin
# Must include cotire before anything else for auto pch setup
#include(cmake/cotire.cmake)
+# Declare our project, libks2
+project(LibKS2 VERSION 2.0.2 LANGUAGES C CXX)
+message("LibKS2 Version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
+
# Load our common utility api and setup the platfomrm and build
include(cmake/ksutil.cmake)
ksutil_setup_platform()
@@ -39,10 +43,6 @@ if (KS_PLAT_WIN OR WITH_KS_TEST)
endif()
endif()
-# Declare our project, libks2
-project(LibKS2 VERSION 2.0.2 LANGUAGES C CXX)
-message("LibKS2 Version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
-
# Set package version
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})

View file

@ -0,0 +1,10 @@
--- a/cmake/ksutil.cmake
+++ b/cmake/ksutil.cmake
@@ -135,7 +135,6 @@ macro(ksutil_setup_platform)
set(KS_PLAT_LIN 1 CACHE INTERNAL "Platform definition" FORCE)
set(CMAKE_POSITION_INDEPENDENT_CODE YES)
- add_compile_options("$<$<CONFIG:Release>:-O2>")
add_compile_options("$<$<CONFIG:Release>:-g>")
add_compile_options("$<$<CONFIG:Debug>:-O0>")

View file

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=libosip2
PKG_VERSION:=5.0.0
PKG_RELEASE:=3
PKG_VERSION:=5.3.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/osip
PKG_HASH:=18a13c954f7297978e7bf1a0cdadde7c531e519d61a045dae304e054f3b2df03
PKG_HASH:=f4725916c22cf514969efb15c3c207233d64739383f7d42956038b78f6cae8c8
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
@ -30,6 +30,7 @@ define Package/libosip2
CATEGORY:=Libraries
TITLE:=GNU oSIP library
URL:=http://www.gnu.org/software/osip/
ABI_VERSION:=15
DEPENDS:=+librt
endef
@ -43,14 +44,13 @@ TARGET_CFLAGS += $(if $(CONFIG_arc),-U__arc__)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
--disable-debug \
--disable-silent-rules \
--disable-trace \
--disable-mpatrol \
--disable-gprof \
--disable-mt \
--enable-pthread \
--enable-semaphore \
--disable-sysv \
--disable-gperf \
--disable-test \
--disable-minisize
@ -68,7 +68,7 @@ endef
define Package/libosip2/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so.$(ABI_VERSION)* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libosip2))

View file

@ -1,31 +0,0 @@
From 1ae06daf3b2375c34af23083394a6f010be24a45 Mon Sep 17 00:00:00 2001
From: Aymeric Moizard <amoizard@gmail.com>
Date: Tue, 21 Feb 2017 17:16:26 +0100
Subject: * fix bug report: sr #109265: SIP message body length underflow in
libosip2-4.1.0 https://savannah.gnu.org/support/?109265 also applicable
to current latest version
---
src/osipparser2/osip_message_parse.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/osipparser2/osip_message_parse.c b/src/osipparser2/osip_message_parse.c
index 1628c60..aa35446 100644
--- a/src/osipparser2/osip_message_parse.c
+++ b/src/osipparser2/osip_message_parse.c
@@ -784,6 +784,12 @@ msg_osip_body_parse (osip_message_t * sip, const char *start_of_buf, const char
if ('\n' == start_of_body[0] || '\r' == start_of_body[0])
start_of_body++;
+ /* if message body is empty or contains a single CR/LF */
+ if (end_of_body <= start_of_body) {
+ osip_free (sep_boundary);
+ return OSIP_SYNTAXERROR;
+ }
+
body_len = end_of_body - start_of_body;
/* Skip CR before end boundary. */
--
cgit v1.0-41-gc330

View file

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libpri
PKG_VERSION:=1.6.0
PKG_RELEASE:=2
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/libpri/releases
@ -35,6 +35,10 @@ define Package/libpri/description
Lucent 5E Custom protocols on switches from Nortel and Lucent.
endef
MAKE_FLAGS += \
OSARCH=Linux \
LDCONFIG=ldconfig
define Build/Configure
endef

View file

@ -1,7 +1,5 @@
Index: libpri-1.4.15/pritest.c
===================================================================
--- libpri-1.4.15.orig/pritest.c
+++ libpri-1.4.15/pritest.c
--- a/pritest.c
+++ b/pritest.c
@@ -41,7 +41,7 @@
#include <sys/ioctl.h>
#include <stdlib.h>
@ -11,10 +9,8 @@ Index: libpri-1.4.15/pritest.c
#include <sys/select.h>
#include <sys/wait.h>
#include <sys/resource.h>
Index: libpri-1.4.15/testprilib.c
===================================================================
--- libpri-1.4.15.orig/testprilib.c
+++ libpri-1.4.15/testprilib.c
--- a/testprilib.c
+++ b/testprilib.c
@@ -41,7 +41,7 @@
#include <sys/ioctl.h>
#include <stdlib.h>

View file

@ -0,0 +1,11 @@
--- a/Makefile
+++ b/Makefile
@@ -68,7 +68,7 @@ DYNAMIC_OBJS= \
$(STATIC_OBJS)
CFLAGS ?= -g
CFLAGS += $(CPPFLAGS)
-CFLAGS += -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
+CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes
CFLAGS += -fPIC $(ALERTING) $(LIBPRI_OPT) $(COVERAGE_CFLAGS)
INSTALL_PREFIX=$(DESTDIR)
INSTALL_BASE=/usr

View file

@ -0,0 +1,39 @@
Upstream issue: https://issues.asterisk.org/jira/browse/PRI-188
From ec1d6589c6e4eb6550cb92d5e0f214f7b31e8d5f Mon Sep 17 00:00:00 2001
From: "Sergey V. Lobanov" <sergey@lobanov.in>
Date: Sun, 30 Jan 2022 13:25:17 +0300
Subject: [PATCH] Add an ability to build libpri on MacOS for Linux target
This patch allows to rededine ar and ranlib tool using AR and
RANLIB make flags.
Fixes: PRI-188
Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
---
Makefile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,8 @@
CC=gcc
GREP=grep
AWK=awk
+AR=ar
+RANLIB=ranlib
OSARCH=$(shell uname -s)
PROC?=$(shell uname -m)
@@ -193,8 +195,8 @@ MAKE_DEPS= -MD -MT $@ -MF .$(subst /,_,$
$(CC) $(CFLAGS) $(MAKE_DEPS) -c -o $@ $<
$(STATIC_LIBRARY): $(STATIC_OBJS)
- ar rcs $(STATIC_LIBRARY) $(STATIC_OBJS)
- ranlib $(STATIC_LIBRARY)
+ $(AR) rcs $(STATIC_LIBRARY) $(STATIC_OBJS)
+ $(RANLIB) $(STATIC_LIBRARY)
$(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS)
$(CC) $(SOFLAGS) -o $@ $(DYNAMIC_OBJS)

View file

@ -1,7 +1,6 @@
#
# Copyright (C) 2006-2018 OpenWrt.org
# Copyright (C) 2011 Victor Seva <linuxmaniac@torreviejawireless.org>
# Copyright (C) 2017 - 2018 Jiri Slachta <jiri@slachta.eu>
# Copyright (C) 2017 OpenWrt.org
# Copyright (C) 2017 Jiri Slachta <jiri@slachta.eu>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -9,17 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=libsrtp
PKG_VERSION:=1.6.0
PKG_VERSION:=2.4.2
PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/cisco/libsrtp.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=2b091a4fb21c9b06fc5d4b5763bdaec97542fcd7
PKG_MIRROR_HASH:=7ac6c3113fd7a966c9a9108c185d9425e75a8fdc600e4ccef158e68ee1988c89
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=libsrtp-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/cisco/libsrtp/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=3b1bcb14ebda572b04b9bdf07574a449c84cb924905414e4d94e62837d22b628
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE
@ -27,45 +21,42 @@ PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
include $(INCLUDE_DIR)/package.mk
CONFIGURE_ARGS += \
--disable-stdout \
--enable-syslog
CONFIGURE_ARGS+=--enable-openssl
define Package/libsrtp
define Package/libsrtp2
SUBMENU:=Telephony
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Secure Real-time Transport Protocol (SRTP) library
DEPENDS:=+libpcap
URL:=http://sourceforge.net/projects/srtp
TITLE:=Secure RTP (SRTP) library, v$(PKG_VERSION)
URL:=https://github.com/cisco/libsrtp
DEPENDS:=+libopenssl
ABI_VERSION:=1
endef
define Package/libsrtp/description
define Package/libsrtp2/description
Open-source implementation of the Secure Real-time Transport
Protocol (SRTP) originally authored by Cisco Systems, Inc.
It is available under a BSD-style license.
endef
define Build/Install
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) uninstall
$(call Build/Install/Default)
$(call Build/Install/Default,all shared_library install)
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/srtp $(1)/usr/include/
$(CP) $(PKG_INSTALL_DIR)/usr/include/srtp2 $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp.{a,so*} $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp2.{a,so*} $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libsrtp.pc $(1)/usr/lib/pkgconfig/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libsrtp2.pc $(1)/usr/lib/pkgconfig/
endef
define Package/libsrtp/install
define Package/libsrtp2/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libsrtp.so* \
$(PKG_INSTALL_DIR)/usr/lib/libsrtp2.so.$(ABI_VERSION)* \
$(1)/usr/lib/
endef
$(eval $(call BuildPackage,libsrtp))
$(eval $(call BuildPackage,libsrtp2))

View file

@ -1,54 +0,0 @@
--- a/test/srtp_driver.c
+++ b/test/srtp_driver.c
@@ -341,7 +341,7 @@ main (int argc, char *argv[]) {
if (do_codec_timing) {
srtp_policy_t policy;
int ignore;
- double mips = mips_estimate(1000000000, &ignore);
+ double mips_est = mips_estimate(1000000000, &ignore);
crypto_policy_set_rtp_default(&policy.rtp);
crypto_policy_set_rtcp_default(&policy.rtcp);
@@ -353,33 +353,33 @@ main (int argc, char *argv[]) {
policy.allow_repeat_tx = 0;
policy.next = NULL;
- printf("mips estimate: %e\n", mips);
+ printf("mips estimate: %e\n", mips_est);
printf("testing srtp processing time for voice codecs:\n");
printf("codec\t\tlength (octets)\t\tsrtp instructions/second\n");
printf("G.711\t\t%d\t\t\t%e\n", 80,
- (double) mips * (80 * 8) /
+ (double) mips_est * (80 * 8) /
srtp_bits_per_second(80, &policy) / .01 );
printf("G.711\t\t%d\t\t\t%e\n", 160,
- (double) mips * (160 * 8) /
+ (double) mips_est * (160 * 8) /
srtp_bits_per_second(160, &policy) / .02);
printf("G.726-32\t%d\t\t\t%e\n", 40,
- (double) mips * (40 * 8) /
+ (double) mips_est * (40 * 8) /
srtp_bits_per_second(40, &policy) / .01 );
printf("G.726-32\t%d\t\t\t%e\n", 80,
- (double) mips * (80 * 8) /
+ (double) mips_est * (80 * 8) /
srtp_bits_per_second(80, &policy) / .02);
printf("G.729\t\t%d\t\t\t%e\n", 10,
- (double) mips * (10 * 8) /
+ (double) mips_est * (10 * 8) /
srtp_bits_per_second(10, &policy) / .01 );
printf("G.729\t\t%d\t\t\t%e\n", 20,
- (double) mips * (20 * 8) /
+ (double) mips_est * (20 * 8) /
srtp_bits_per_second(20, &policy) / .02 );
printf("Wideband\t%d\t\t\t%e\n", 320,
- (double) mips * (320 * 8) /
+ (double) mips_est * (320 * 8) /
srtp_bits_per_second(320, &policy) / .01 );
printf("Wideband\t%d\t\t\t%e\n", 640,
- (double) mips * (640 * 8) /
+ (double) mips_est * (640 * 8) /
srtp_bits_per_second(640, &policy) / .02 );
}

View file

@ -1,27 +0,0 @@
--- a/test/srtp_driver.c
+++ b/test/srtp_driver.c
@@ -1198,7 +1198,6 @@ mips_estimate(int num_trials, int *ignor
* These packets were made with the default SRTP policy.
*/
-
err_status_t
srtp_validate() {
uint8_t srtp_plaintext_ref[28] = {
@@ -1207,14 +1206,14 @@ srtp_validate() {
0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab,
0xab, 0xab, 0xab, 0xab
};
- uint8_t srtp_plaintext[38] = {
+ uint8_t srtp_plaintext[38] __attribute__((aligned(4))) = {
0x80, 0x0f, 0x12, 0x34, 0xde, 0xca, 0xfb, 0xad,
0xca, 0xfe, 0xba, 0xbe, 0xab, 0xab, 0xab, 0xab,
0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab,
0xab, 0xab, 0xab, 0xab, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
- uint8_t srtp_ciphertext[38] = {
+ uint8_t srtp_ciphertext[38] __attribute__((aligned(4))) = {
0x80, 0x0f, 0x12, 0x34, 0xde, 0xca, 0xfb, 0xad,
0xca, 0xfe, 0xba, 0xbe, 0x4e, 0x55, 0xdc, 0x4c,
0xe7, 0x99, 0x78, 0xd8, 0x8c, 0xa4, 0xd2, 0x15,

View file

@ -1,94 +0,0 @@
Description: Update Doxyfile and header template
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2010-02-28
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -25,6 +25,7 @@ libsrtpdoc:
echo "*** Sorry, can't build doc outside source dir"; exit 1; \
fi
sed 's/LIBSRTPVERSION/$(version)/' header.template > header.tex
+ doxygen -u
doxygen
sed 's/\subsection/\section/' latex/index.tex > latex/index.tmp
mv latex/index.tmp latex/index.tex
@@ -38,7 +39,7 @@ cryptodoc: clean
cp latex/refman.pdf crypto.pdf
clean:
- rm -rf latex/ header.tex
+ rm -rf latex/ header.tex Doxyfile.bak
for a in * ; do \
if [ -f "$$a~" ] ; then rm -f $$a~; fi; \
done;
--- a/doc/header.template
+++ b/doc/header.template
@@ -6,28 +6,40 @@
%
\documentclass[letterpaper]{book}
\usepackage{makeidx}
-\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{float}
+\usepackage{listings}
+\usepackage{color}
+\usepackage{ifthen}
+\usepackage[table]{xcolor}
\usepackage{textcomp}
\usepackage{alltt}
-\usepackage{times}
-\usepackage{graphicx}
-\ifx\pdfoutput\undefined
-\usepackage[ps2pdf,
+\usepackage{ifpdf}
+\ifpdf
+\usepackage[pdftex,
pagebackref=true,
colorlinks=true,
- linkcolor=blue
+ linkcolor=blue,
+ unicode
]{hyperref}
\else
-\usepackage[pdftex,
+\usepackage[ps2pdf,
pagebackref=true,
colorlinks=true,
- linkcolor=blue
+ linkcolor=blue,
+ unicode
]{hyperref}
+\usepackage{pspicture}
\fi
+\usepackage[utf8]{inputenc}
+\usepackage{mathptmx}
+\usepackage[scaled=.90]{helvet}
+\usepackage{courier}
+\usepackage{sectsty}
+\usepackage[titles]{tocloft}
\usepackage{doxygen}
+\lstset{language=C++,inputencoding=utf8,basicstyle=\footnotesize,breaklines=true,breakatwhitespace=true,tabsize=3,numbers=left }
\makeindex
\setcounter{tocdepth}{1}
\renewcommand{\footrulewidth}{0.4pt}
@@ -59,7 +71,9 @@
\selectfont
+\renewcommand{\familydefault}{\sfdefault}
\begin{document}
+\hypersetup{pageanchor=false}
\begin{titlepage}
\vspace*{4cm}
%\begin{center}
@@ -107,9 +121,6 @@ This reference material in this documena
\clearemptydoublepage
\pagenumbering{roman}
\tableofcontents
-%\clearemptydoublepage
-
\clearemptydoublepage
\pagenumbering{arabic}
-
-
+\hypersetup{pageanchor=true}

View file

@ -1,11 +0,0 @@
--- a/Makefile.in
+++ b/Makefile.in
@@ -20,7 +20,7 @@ HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
.PHONY: all shared_library test build_table_apps
-all: test
+all: shared_library test
runtest: build_table_apps test
@echo "running libsrtp test applications..."

View file

@ -1,64 +0,0 @@
#
# Copyright (C) 2017 OpenWrt.org
# Copyright (C) 2017 Jiri Slachta <jiri@slachta.eu>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libsrtp2
PKG_VERSION:=2.1.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/cisco/libsrtp.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=93aba3e767502343c255fad8962dbf0ff29c4ca6
PKG_MIRROR_HASH:=e060592d99e0dff53ee6fbc5e8a9cb0f7fb8b1b874d4687292fb8c8e5f612a6b
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
include $(INCLUDE_DIR)/package.mk
define Package/libsrtp2
SUBMENU:=Telephony
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Secure RTP (SRTP) library, v$(PKG_VERSION)
URL:=http://sourceforge.net/projects/srtp
DEPENDS:=+libpcap
endef
define Package/libsrtp2/description
Open-source implementation of the Secure Real-time Transport
Protocol (SRTP) originally authored by Cisco Systems, Inc.
It is available under a BSD-style license.
endef
define Build/Install
$(call Build/Install/Default,all shared_library install)
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/srtp2 $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp2.{a,so*} $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libsrtp2.pc $(1)/usr/lib/pkgconfig/
endef
define Package/libsrtp2/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libsrtp2.so* \
$(1)/usr/lib/
endef
$(eval $(call BuildPackage,libsrtp2))

View file

@ -10,14 +10,16 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=pjproject
PKG_VERSION:=2.7.2
PKG_VERSION:=2.13.1
PKG_RELEASE:=2
PKG_CPE_ID:=cpe:/a:pjsip:pjsip
PKG_SOURCE:=pjproject-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://www.pjsip.org/release/$(PKG_VERSION)
PKG_HASH:=9c2c828abab7626edf18e04b041ef274bfaa86f99adf2c25ff56f1509e813772
# download "vX.Y.tar.gz" as "pjproject-vX.Y.tar.gz"
PKG_SOURCE_URL_FILE:=$(PKG_VERSION).tar.gz
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_URL_FILE)
PKG_SOURCE_URL:=https://github.com/pjsip/$(PKG_NAME)/archive/refs/tags
PKG_HASH:=32a5ab5bfbb9752cb6a46627e4c410e61939c8dbbd833ac858473cfbd9fb9d7d
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING
@ -27,15 +29,14 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_CONFIG_DEPENDS:=CONFIG_SOFT_FLOAT
include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
define Package/pjproject/Default
SECTION:=lib
CATEGORY:=Libraries
SUBMENU:=Telephony
URL:=http://www.pjsip.org
DEPENDS:=$(CXX_DEPENDS) +libopenssl +libuuid +libpthread
URL:=https://www.pjsip.org
DEPENDS:=+libstdcpp +libopenssl +libuuid +libpthread
endef
define Package/pjproject/install/lib
@ -59,7 +60,9 @@ endef
CONFIGURE_ARGS+= \
$(if $(CONFIG_SOFT_FLOAT),--disable-floating-point) \
--disable-android-mediacodec \
--disable-bcg729 \
--disable-darwin-ssl \
--disable-ext-sound \
--disable-ffmpeg \
--disable-g711-codec \
@ -69,22 +72,22 @@ CONFIGURE_ARGS+= \
--disable-ilbc-codec \
--disable-ipp \
--disable-l16-codec \
--disable-libsrtp \
--disable-libwebrtc \
--disable-libyuv \
--disable-opencore-amr \
--disable-openh264 \
--disable-opus \
--disable-oss \
--disable-resample \
--disable-sdl \
--disable-silk \
--disable-sound \
--disable-speex-aec \
--disable-speex-codec \
--disable-upnp \
--disable-v4l2 \
--disable-video \
--enable-shared \
--with-external-srtp="$(STAGING_DIR)/usr" \
--with-ssl="$(STAGING_DIR)/usr" \
--without-external-gsm \
--without-external-pa \
@ -93,7 +96,8 @@ CONFIGURE_ARGS+= \
TARGET_CFLAGS+=$(TARGET_CPPFLAGS)
define Build/Compile
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) EXCLUDE_APP=1 dep
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) EXCLUDE_APP=1
endef
PJPROJECT_LIBS:= \
@ -108,16 +112,16 @@ define Build/InstallDev
$(foreach m,$(PJPROJECT_LIBS),$(CP) $(PKG_INSTALL_DIR)/usr/lib/$(m)* $(1)/usr/lib;)
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(SED) 's|$(TARGET_CFLAGS)||g' $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpjproject.pc
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpjproject.pc $(1)/usr/lib/pkgconfig
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpjproject.pc \
$(1)/usr/lib/pkgconfig
endef
$(eval $(call PJSIPpackage,libpj,libpj,+librt))
$(eval $(call PJSIPpackage,libpjlib-util,libpjlib-util,+libpj +librt))
$(eval $(call PJSIPpackage,libpjmedia,libpjmedia*,+libpj +libpjlib-util +libpjnath +librt +libsrtp2))
$(eval $(call PJSIPpackage,libpjmedia,libpjmedia*,+libpj +libpjlib-util +libpjnath +librt))
$(eval $(call PJSIPpackage,libpjnath,libpjnath,+libpj +libpjlib-util +librt))
$(eval $(call PJSIPpackage,libpjsip-simple,libpjsip-simple,+libpj +libpjlib-util +libpjsip +librt))
$(eval $(call PJSIPpackage,libpjsip-ua,libpjsip-ua,+libpj +libpjlib-util +libpjmedia +libpjsip-simple +libpjsip +librt))
$(eval $(call PJSIPpackage,libpjsip,libpjsip,+libpj +libpjlib-util +librt +libsrtp2))
$(eval $(call PJSIPpackage,libpjsip,libpjsip,+libpj +libpjlib-util +librt))
$(eval $(call PJSIPpackage,libpjsua,libpjsua,+libpj +libpjlib-util +libpjmedia +libpjnath +libpjsip-simple +libpjsip-ua +libpjsip +librt))
$(eval $(call PJSIPpackage,libpjsua2,libpjsua2,+libpj +libpjlib-util +libpjmedia +libpjnath +libpjsip-simple +libpjsip-ua +libpjsip +librt +libpjsua))

View file

@ -1,6 +1,6 @@
--- /dev/null
+++ b/pjlib/include/pj/config_site.h
@@ -0,0 +1,92 @@
@@ -0,0 +1,91 @@
+/*
+ * Asterisk config_site.h
+ */
@ -8,37 +8,16 @@
+#include <sys/select.h>
+
+/*
+ * Since both pjproject and asterisk source files will include config_site.h,
+ * we need to make sure that only pjproject source files include asterisk_malloc_debug.h.
+ */
+
+/* #if defined(MALLOC_DEBUG) && !defined(_ASTERISK_ASTMM_H)
+ * #include "asterisk_malloc_debug.h"
+ * #endif
+ */
+
+/*
+ * Defining PJMEDIA_HAS_SRTP to 0 does NOT disable Asterisk's ability to use srtp.
+ * It only disables the pjmedia srtp transport which Asterisk doesn't use.
+ * The reason for the disable is that while Asterisk works fine with older libsrtp
+ * versions, newer versions of pjproject won't compile with them.
+ */
+
+/*
+ * This doesn't disable SRTP completely, so we have to keep using the external
+ * libsrtp, otherwise pjsip would just build the internal one.
+ */
+
+#define PJMEDIA_HAS_SRTP 0
+
+/*
+ * Defining PJMEDIA_HAS_WEBRTC_AEC to 0 does NOT disable Asterisk's ability to use
+ * webrtc. It only disables the pjmedia webrtc transport which Asterisk doesn't use.
+ */
+#define PJMEDIA_HAS_WEBRTC_AEC 0
+
+#define PJ_HAS_IPV6 1
+#define NDEBUG 1
+
+#define PJ_MAX_HOSTNAME (256)
+#define PJSIP_MAX_URL_SIZE (512)
+#ifdef PJ_HAS_LINUX_EPOLL
@ -79,17 +58,37 @@
+ Enabling it will result in SEGFAULTS when URIs containing escape sequences are encountered.
+*/
+#undef PJSIP_UNESCAPE_IN_PLACE
+#define PJSIP_MAX_PKT_LEN 6000
+#define PJSIP_MAX_PKT_LEN 65535
+
+#undef PJ_TODO
+#define PJ_TODO(x)
+
+/* Defaults too low for WebRTC */
+#define PJ_ICE_MAX_CAND 32
+#define PJ_ICE_MAX_CAND 64
+#define PJ_ICE_MAX_CHECKS (PJ_ICE_MAX_CAND * PJ_ICE_MAX_CAND)
+
+/* Increase limits to allow more formats */
+#define PJMEDIA_MAX_SDP_FMT 64
+#define PJMEDIA_MAX_SDP_BANDW 4
+#define PJMEDIA_MAX_SDP_ATTR (PJMEDIA_MAX_SDP_FMT*2 + 4)
+#define PJMEDIA_MAX_SDP_ATTR (PJMEDIA_MAX_SDP_FMT*3 + 4)
+#define PJMEDIA_MAX_SDP_MEDIA 16
+
+/*
+ * Turn off the periodic sending of CRLNCRLN. Default is on (90 seconds),
+ * which conflicts with the global section's keep_alive_interval option in
+ * pjsip.conf.
+ */
+#define PJSIP_TCP_KEEP_ALIVE_INTERVAL 0
+#define PJSIP_TLS_KEEP_ALIVE_INTERVAL 0
+
+#define PJSIP_TSX_UAS_CONTINUE_ON_TP_ERROR 0
+#define PJ_SSL_SOCK_OSSL_USE_THREAD_CB 0
+#define PJSIP_AUTH_ALLOW_MULTIPLE_AUTH_HEADER 1
+
+/*
+ * The default is 32 with 8 being used by pjproject itself.
+ * Since this value is used in invites, dialogs, transports
+ * and subscriptions as well as the global pjproject endpoint,
+ * we don't want to increase it too much.
+ */
+#define PJSIP_MAX_MODULE 38

View file

@ -0,0 +1,24 @@
--- a/libpjproject.pc.in
+++ b/libpjproject.pc.in
@@ -2,8 +2,8 @@
prefix=@PREFIX@
exec_prefix=${prefix}
-libdir=@LIBDIR@
-includedir=@INCLUDEDIR@
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
Name: libpjproject
Description: Multimedia communication library
--- a/build.mak.in
+++ b/build.mak.in
@@ -352,6 +352,6 @@ export PJ_LIBXX_FILES := $(APP_LIBXX_FIL
export PJ_INSTALL_DIR := @prefix@
export PJ_INSTALL_INC_DIR := @includedir@
export PJ_INSTALL_LIB_DIR := @libdir@
-export PJ_INSTALL_CFLAGS := -I$(PJ_INSTALL_INC_DIR) -DPJ_AUTOCONF=1 @ac_cflags@
+export PJ_INSTALL_CFLAGS := -DPJ_AUTOCONF=1 @ac_cflags@
export PJ_INSTALL_LDFLAGS_PRIVATE := $(APP_THIRD_PARTY_LIBS) $(APP_THIRD_PARTY_EXT) @LIBS@
-export PJ_INSTALL_LDFLAGS := -L$(PJ_INSTALL_LIB_DIR) $(filter-out $(PJ_INSTALL_LDFLAGS_PRIVATE),$(APP_LDXXLIBS))
+export PJ_INSTALL_LDFLAGS := $(filter-out $(PJ_INSTALL_LDFLAGS_PRIVATE),$(APP_LDXXLIBS))

View file

@ -0,0 +1,27 @@
From ac685b30c17be461b2bf5b46a772ed9742b8e985 Mon Sep 17 00:00:00 2001
From: Riza Sulistyo <trengginas@users.noreply.github.com>
Date: Thu, 9 Feb 2023 13:19:23 +0700
Subject: [PATCH] Make sure that NOTIFY tdata is set before sending it.
---
pjsip/src/pjsip-simple/evsub.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
--- a/pjsip/src/pjsip-simple/evsub.c
+++ b/pjsip/src/pjsip-simple/evsub.c
@@ -2224,9 +2224,12 @@ static void on_tsx_state_uas( pjsip_evsu
/* Send the pending NOTIFY sent by app from inside
* on_rx_refresh() callback.
*/
- pj_assert(sub->pending_notify);
- status = pjsip_evsub_send_request(sub, sub->pending_notify);
- sub->pending_notify = NULL;
+ //pj_assert(sub->pending_notify);
+ /* Make sure that pending_notify is set. */
+ if (sub->pending_notify) {
+ status = pjsip_evsub_send_request(sub, sub->pending_notify);
+ sub->pending_notify = NULL;
+ }
} else if (pjsip_method_cmp(&tsx->method, &pjsip_notify_method)==0) {

View file

@ -0,0 +1,26 @@
--- a/pjsip/src/pjsip/sip_transport.c
+++ b/pjsip/src/pjsip/sip_transport.c
@@ -2088,15 +2088,17 @@ PJ_DEF(pj_ssize_t) pjsip_tpmgr_receive_p
* which were sent to keep NAT bindings.
*/
if (tmp.slen) {
- PJ_LOG(1, (THIS_FILE,
- "Error processing %d bytes packet from %s %s:%d %.*s:\n"
- "%.*s\n"
- "-- end of packet.",
+ PJ_LOG(2, (THIS_FILE,
+ "Dropping %d bytes packet from %s %s:%d %.*s\n",
msg_fragment_size,
rdata->tp_info.transport->type_name,
- rdata->pkt_info.src_name,
+ rdata->pkt_info.src_name,
rdata->pkt_info.src_port,
- (int)tmp.slen, tmp.ptr,
+ (int)tmp.slen, tmp.ptr));
+ PJ_LOG(4, (THIS_FILE,
+ "Dropped packet:"
+ "%.*s\n"
+ "-- end of packet.",
(int)msg_fragment_size,
rdata->msg_info.msg_buf));
}

View file

@ -1,11 +0,0 @@
--- a/build/rules.mak
+++ b/build/rules.mak
@@ -13,7 +13,7 @@ SHLIB = $($(APP)_SHLIB)
SONAME = $($(APP)_SONAME)
ifeq ($(SHLIB_SUFFIX),so)
-SHLIB_OPT := -shared -Wl,-soname,$(SHLIB)
+SHLIB_OPT := -shared
else ifeq ($(SHLIB_SUFFIX),dylib)
SHLIB_OPT := -dynamiclib -undefined dynamic_lookup -flat_namespace
else ifeq ($(SHLIB_SUFFIX),dll)

View file

@ -1,20 +0,0 @@
--- pjproject-2.6/pjlib/src/pj/os_core_unix.c 2016-04-13 08:24:48.000000000 +0200
+++ pjproject-new/pjlib/src/pj/os_core_unix.c 2017-05-08 09:51:49.980905420 +0200
@@ -1123,7 +1123,7 @@ static pj_status_t init_mutex(pj_mutex_t
return PJ_RETURN_OS_ERROR(rc);
if (type == PJ_MUTEX_SIMPLE) {
-#if (defined(PJ_LINUX) && PJ_LINUX!=0) || \
+#if (defined(PJ_LINUX) && PJ_LINUX!=0 && defined(__GLIBC__)) || \
defined(PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE)
rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL);
#elif (defined(PJ_RTEMS) && PJ_RTEMS!=0) || \
@@ -1133,7 +1133,7 @@ static pj_status_t init_mutex(pj_mutex_t
rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL);
#endif
} else {
-#if (defined(PJ_LINUX) && PJ_LINUX!=0) || \
+#if (defined(PJ_LINUX) && PJ_LINUX!=0 && defined(__GLIBC__)) || \
defined(PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE)
rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
#elif (defined(PJ_RTEMS) && PJ_RTEMS!=0) || \

View file

@ -1,22 +0,0 @@
--- a/build.mak.in
+++ b/build.mak.in
@@ -293,7 +293,6 @@ export APP_LDLIBS := $(PJSUA_LIB_LDLIB)
$(PJLIB_LDLIB) \
@LIBS@
export APP_LDXXLIBS := $(PJSUA2_LIB_LDLIB) \
- -lstdc++ \
$(APP_LDLIBS)
# Here are the variabels to use if application is using the library
--- a/pjsip/build/Makefile
+++ b/pjsip/build/Makefile
@@ -152,8 +152,7 @@ export PJSUA2_LIB_LDFLAGS += $(PJSUA_LIB
$(PJNATH_LDLIB) \
$(PJLIB_UTIL_LDLIB) \
$(PJLIB_LDLIB) \
- $(_LDFLAGS) \
- -lstdc++
+ $(_LDFLAGS)
###############################################################################

View file

@ -1,5 +1,5 @@
#
# Copyright (C) 2010-2018 OpenWrt.org
# Copyright (C) 2010-2017 OpenWrt.org
# Copyright (C) 2010 Alfred E. Heggestad
#
# This is free software, licensed under the GNU General Public License v2.
@ -9,17 +9,18 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=re
PKG_VERSION:=0.5.8
PKG_VERSION:=2.0.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.creytiv.com/pub
PKG_HASH:=190fd652da167d8d6351b7a26fa0aef2ddab75fe5e8d5de77edf023988440e70
PKG_SOURCE_URL:=https://codeload.github.com/baresip/re/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=43aa439b96aff75fe5768b9f9d49dea97042e42e7647df47b345465763e2f7ed
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=docs/COPYING
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
@ -30,7 +31,8 @@ define Package/libre
CATEGORY:=Libraries
DEPENDS:=+libopenssl +zlib
TITLE:=Generic library for real-time communications with async IO support
URL:=http://www.creytiv.com
URL:=https://github.com/baresip/re
ABI_VERSION:=1
endef
# re.mk is used for this and all related packages (rem, restund and baresip).
@ -67,12 +69,12 @@ define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/re $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libre.{a,so} $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libre.{a,so*} $(1)/usr/lib
endef
define Package/libre/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libre.so $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libre.so.$(ABI_VERSION)* $(1)/usr/lib
endef
$(eval $(call BuildPackage,libre))

View file

@ -1,6 +1,6 @@
--- a/src/dns/res.c
+++ b/src/dns/res.c
@@ -25,7 +25,7 @@ int get_resolv_dns(char *domain, size_t
@@ -26,7 +26,7 @@ int get_resolv_dns(char *domain, size_t
uint32_t i;
int ret, err;
@ -9,7 +9,7 @@
ret = res_init();
state = _res;
#else
@@ -56,7 +56,7 @@ int get_resolv_dns(char *domain, size_t
@@ -76,7 +76,7 @@ int get_resolv_dns(char *domain, size_t
*n = i;
out:

View file

@ -1,10 +1,10 @@
--- a/mk/re.mk
+++ b/mk/re.mk
@@ -43,7 +43,6 @@
@@ -47,7 +47,6 @@
ifneq ($(RELEASE),)
CFLAGS += -DRELEASE
-OPT_SPEED=1
endif
ifneq ($(TRACE_ERR),)

View file

@ -1,6 +1,6 @@
--- a/mk/re.mk
+++ b/mk/re.mk
@@ -438,11 +438,6 @@ endif
@@ -412,11 +412,6 @@ endif
CFLAGS += -DARCH=\"$(ARCH)\"

View file

@ -1,5 +1,5 @@
#
# Copyright (C) 2010-2018 OpenWrt.org
# Copyright (C) 2010-2017 OpenWrt.org
# Copyright (C) 2010 Alfred E. Heggestad
#
# This is free software, licensed under the GNU General Public License v2.
@ -9,17 +9,18 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=rem
PKG_VERSION:=0.5.3
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.creytiv.com/pub
PKG_HASH:=9f98a79947d4709282a5791ac30f0eda03d5d34086f36df74bff4f8aac0e8050
PKG_SOURCE_URL:=https://codeload.github.com/baresip/rem/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=bcc91bb521fae183357fb422b00a3981477a22e99d3afe165c4ec50a6bbed9da
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=docs/COPYING
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
@ -30,7 +31,7 @@ define Package/librem
CATEGORY:=Libraries
DEPENDS:=+libre
TITLE:=Audio and video processing media library
URL:=http://www.creytiv.com
URL:=https://github.com/baresip/rem
endef
MAKE_FLAGS+= \

View file

@ -0,0 +1,69 @@
#
# Copyright (C) 2019 Sebastian Kemper <sebastian_ml@gmx.net>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=signalwire-client-c
PKG_VERSION:=2.0.0
PKG_RELEASE:=1
PKG_SOURCE:=signalwire-c-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/signalwire/signalwire-c/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=7916ad76b2c2c75ff616d19bf044894771b3f8602b80a6f74d8ba26206faef79
PKG_BUILD_DIR:=$(BUILD_DIR)/signalwire-c-$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1
CMAKE_INSTALL:=1
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=copyright
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/signalwire-client-c
SUBMENU:=Telephony
SECTION:=libs
CATEGORY:=Libraries
TITLE:=SignalWire C client library
URL:=https://github.com/signalwire/signalwire-c
ABI_VERSION:=2
DEPENDS:=+libatomic +libks +libopenssl
endef
# Otherwise OpenWrt's CPPFLAGS are ignored
TARGET_CFLAGS += $(TARGET_CPPFLAGS)
define Package/signalwire-client-c/install/headers
$(INSTALL_DIR) $(1)/usr/include/signalwire-client-c2/signalwire-client-c/$(2)
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/include/signalwire-client-c2/signalwire-client-c/$(2)/*.h \
$(1)/usr/include/signalwire-client-c2/signalwire-client-c/$(2)
endef
define Build/InstallDev
$(foreach s,./ JSON blade signalwire transport,$(call Package/signalwire-client-c/install/headers,$(1),$(s));)
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig \
$(1)/usr/include/signalwire-client-c2/signalwire-client-c/cmake
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/signalwire-client-c2/signalwire-client-c/cmake/* \
$(1)/usr/include/signalwire-client-c2/signalwire-client-c/cmake
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsignalwire_client2.so* $(1)/usr/lib
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/signalwire_client2.pc \
$(1)/usr/lib/pkgconfig
endef
define Package/signalwire-client-c/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsignalwire_client2.so.$(ABI_VERSION)* \
$(1)/usr/lib
endef
$(eval $(call BuildPackage,signalwire-client-c))

90
libs/sofia-sip/Makefile Normal file
View file

@ -0,0 +1,90 @@
#
# Copyright (C) 2020 Sebastian Kemper <sebastian_ml@gmx.net>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=sofia-sip
PKG_VERSION:=1.13.17
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/freeswitch/$(PKG_NAME)/tar.gz/v${PKG_VERSION}?
PKG_HASH:=daca3d961b6aa2974ad5d3be69ed011726c3e4d511b2a0d4cb6d878821a2de7a
# sofia-sip adds a version to include path
# need to update this when the version changes
VERSION_EQUIVALENT:=1.13
PKG_BUILD_PARALLEL:=1
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_LICENSE:=LGPL-2.1+
PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
define Package/sofia-sip/Default
SUBMENU:=Telephony
URL:=http://sofia-sip.sourceforge.net/index.html
endef
define Package/sofia-sip
$(call Package/sofia-sip/Default)
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Sofia-SIP open-source SIP User-Agent library
ABI_VERSION:=0
DEPENDS:= \
+libopenssl \
+zlib
endef
define Package/sofia-sip/description
Sofia-SIP is an open-source SIP User-Agent library, compliant with the
IETF RFC3261 specification (see the feature table). It can be used as a
building block for SIP client software for uses such as VoIP, IM, and
many other real-time and person-to-person communication services. The
primary target platform for Sofia-SIP is GNU/Linux. Sofia-SIP is based
on a SIP stack developed at the Nokia Research Center. Sofia-SIP is
licensed under the LGPL.
endef
CONFIGURE_ARGS+= \
--disable-stun \
--without-doxygen \
--without-glib
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/sofia-sip-$(VERSION_EQUIVALENT)/sofia-{sip,resolv} \
$(1)/usr/share/sofia-sip
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/include/sofia-sip-$(VERSION_EQUIVALENT)/sofia-sip/*.h{,.in} \
$(1)/usr/include/sofia-sip-$(VERSION_EQUIVALENT)/sofia-sip
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/include/sofia-sip-$(VERSION_EQUIVALENT)/sofia-resolv/*.h \
$(1)/usr/include/sofia-sip-$(VERSION_EQUIVALENT)/sofia-resolv
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsofia-sip-ua.{a,so*} $(1)/usr/lib
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sofia-sip-ua.pc \
$(1)/usr/lib/pkgconfig
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/sofia-sip/{msg_parser,tag_dll}.awk \
$(1)/usr/share/sofia-sip
endef
define Package/sofia-sip/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsofia-sip-ua.so.$(ABI_VERSION)* \
$(1)/usr/lib
endef
$(eval $(call BuildPackage,sofia-sip))

View file

@ -0,0 +1,11 @@
--- a/configure.ac
+++ b/configure.ac
@@ -247,7 +247,7 @@ SAC_OPENSSL
SAC_TPORT
dnl Check is used for testing
-PKG_CHECK_MODULES(CHECK, check >= 0.9.4, have_check="yes", have_check="no")
+PKG_CHECK_MODULES(CHECK, we_do_not_want_check >= 0.9.4, have_check="yes", have_check="no")
AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
if test x"$have_check" = "xyes"; then
AC_DEFINE([HAVE_CHECK], 1, [Define to 1 if check library is available])

74
libs/spandsp3/Makefile Normal file
View file

@ -0,0 +1,74 @@
#
# Copyright (C) 2020 Sebastian Kemper <sebastian_ml@gmx.net>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=spandsp3
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/freeswitch/spandsp.git
PKG_SOURCE_DATE=2023-06-16
PKG_SOURCE_VERSION:=0d2e6ac65e0e8f53d652665a743015a88bf048d4
PKG_RELEASE:=1
PKG_MIRROR_HASH:=2d25c0f73f15aab37af7f09cf84f379b3fafb7c4d4e867ed1643dd3b3f594920
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
PKG_FIXUP:=autoreconf
PKG_LICENSE:=LGPL-2.1-or-later GPL-2.0-or-later
PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:= \
Jiri Slachta <jiri@slachta.eu> \
Sebastian Kemper <sebastian_ml@gmx.net>
include $(INCLUDE_DIR)/package.mk
define Package/libspandsp3
SUBMENU:=Telephony
SECTION:=libs
CATEGORY:=Libraries
TITLE:=spandsp3 library
DEPENDS:=+libjpeg-turbo +libtiff
URL:=https://github.com/freeswitch/spandsp
ABI_VERSION:=3
endef
# Use fixed point math when soft float support is enabled for target devices.
ifeq ($(CONFIG_SOFT_FLOAT),y)
CONFIGURE_ARGS+= \
--enable-fixed-point
endif
define Build/InstallDev
$(INSTALL_DIR) \
$(1)/usr/lib/spandsp3/{include/spandsp/private,lib}
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp* \
$(1)/usr/lib/spandsp3/lib
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/spandsp.h \
$(1)/usr/lib/spandsp3/include
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/spandsp/*.h \
$(1)/usr/lib/spandsp3/include/spandsp
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/spandsp/private/*.h \
$(1)/usr/lib/spandsp3/include/spandsp/private
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/spandsp.pc \
$(1)/usr/lib/pkgconfig/spandsp3.pc
endef
define Package/libspandsp3/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp.so.$(ABI_VERSION)* \
$(1)/usr/lib
endef
$(eval $(call BuildPackage,libspandsp3))

View file

@ -0,0 +1,18 @@
--- a/spandsp.pc.in
+++ b/spandsp.pc.in
@@ -1,12 +1,12 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
+libdir=${exec_prefix}/lib/spandsp3/lib
+includedir=${prefix}/lib/spandsp3/include
Name: spandsp
Description: A DSP library for telephony.
Requires:
Version: @VERSION@
-Libs: -L${libdir} -lspandsp
+Libs: -L${libdir} -l:libspandsp.so.3
Libs.private: -ltiff -lm
Cflags: -I${includedir}

View file

@ -0,0 +1,20 @@
--- a/configure.ac
+++ b/configure.ac
@@ -231,6 +231,9 @@ then
AC_CHECK_HEADERS([X11/X.h])
fi
+# Note: the libxml2 checks below introduce host include paths into the
+# build, so we turn them off.
+if test -n "$enable_tests" ; then # OpenWrt doesn't build the tests
# Determine XML2 include path
AC_MSG_CHECKING(for libxml/xmlmemory.h)
@@ -259,6 +262,7 @@ fi
AC_CHECK_HEADERS([libxml/xmlmemory.h])
AC_CHECK_HEADERS([libxml/parser.h])
AC_CHECK_HEADERS([libxml/xinclude.h])
+fi # OpenWrt doesn't build the tests
AC_LANG([C++])
AC_CHECK_HEADERS([FL/Fl.H])

View file

@ -1,77 +0,0 @@
#
# Copyright (C) 2018 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=asterisk13-chan-lantiq
PKG_VERSION:=20180215
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/kochstefan/asterisk_channel_lantiq.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=f0d7ca7df8e5df802c5bcb79643e3bdc3956c190
PKG_MIRROR_HASH:=aaf5ce87a2e23b801318add79eaaa1b7c4a8aa497ca8e2a71ef5d452a7595a73
PKG_SOURCE_PROTO:=git
PKG_LICENSE:=GPL-2.0
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
PKG_FLAGS:=nonshared
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SUBMENU:=Telephony Lantiq
SECTION:=net
CATEGORY:=Network
TITLE:=Lantiq channel driver
URL:=https://github.com/kochstefan/asterisk_channel_lantiq
DEPENDS:=+asterisk13 +kmod-ltq-vmmc
endef
define Package/$(PKG_NAME)/description
An implementation of a Lantiq TAPI channel driver for Asterisk 13.
endef
define Package/$(PKG_NAME)/conffiles
/etc/asterisk/lantiq.conf
endef
define Build/Prepare
$(call Build/Prepare/Default)
$(INSTALL_DATA) ./files/default.exports \
$(PKG_BUILD_DIR)/src/channels/chan_lantiq.exports
endef
define Build/Compile
cd $(PKG_BUILD_DIR)/src/channels && \
$(TARGET_CC) -o chan_lantiq.o -c chan_lantiq.c -MD -MT chan_lantiq.o \
-MF .chan_lantiq.o.d -MP -pthread \
$(TARGET_CFLAGS) -DAST_MODULE_SELF_SYM=__internal_chan_lantiq_self \
-I$(STAGING_DIR)/usr/include/asterisk-13/include \
$(TARGET_CPPFLAGS) \
-Wall -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations $(FPIC) -DAST_MODULE=\"chan_lantiq\" && \
$(TARGET_CC) -o chan_lantiq.so -pthread $(TARGET_LDFLAGS) -shared \
-Wl,--version-script,chan_lantiq.exports,--warn-common \
chan_lantiq.o
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/etc/asterisk
$(INSTALL_CONF) \
$(PKG_BUILD_DIR)/src/configs/samples/lantiq.conf.sample \
$(1)/etc/asterisk/lantiq.conf
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
$(INSTALL_BIN) \
$(PKG_BUILD_DIR)/src/channels/chan_lantiq.so \
$(1)/usr/lib/asterisk/modules
endef
$(eval $(call BuildPackage,$(PKG_NAME)))

View file

@ -1,8 +0,0 @@
{
global:
/* See main/asterisk.exports.in for an explanation why this is
* needed. */
_IO_stdin_used;
local:
*;
};

View file

@ -1,11 +0,0 @@
menu "Advanced configuration"
depends on PACKAGE_asterisk13
config ASTERISK13_LOW_MEMORY
bool "Optimize Asterisk 13 for low memory usage"
default n
help
Warning: this feature is known to cause problems with some modules.
Disable it if you experience problems like segmentation faults.
endmenu

File diff suppressed because it is too large Load diff

View file

@ -1,4 +0,0 @@
## startup options for /etc/init.d/asterisk
ENABLE_ASTERISK="yes"
OPTIONS=""

View file

@ -1,33 +0,0 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2014 OpenWrt.org
START=99
APP=asterisk
OPTIONS=
DEST=
DEFAULT=$DEST/etc/default/$APP
BIN_FILE=$DEST/usr/sbin/$APP
PID_FILE=$DEST/var/run/$APP/$APP.pid
start() {
[ -f $DEFAULT ] && . $DEFAULT
[ -d $DEST/var/run/asterisk ] || mkdir -p $DEST/var/run/asterisk
[ -d $DEST/var/log/asterisk ] || mkdir -p $DEST/var/log/asterisk
[ -d $DEST/var/spool/asterisk ] || mkdir -p $DEST/var/spool/asterisk
[ -d $DEST/var/lib/asterisk ] || mkdir -p $DEST/var/lib/asterisk
[ -d $DEST/var/lib/asterisk/keys ] || mkdir -p $DEST/var/lib/asterisk/keys
[ -d $DEST/var/log/asterisk/cdr-csv ] || mkdir -p $DEST/var/log/asterisk/cdr-csv
SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
service_start $BIN_FILE $OPTIONS
}
stop() {
SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
service_stop $BIN_FILE
}
reload() {
SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
service_reload $BIN_FILE
}

View file

@ -1,22 +0,0 @@
--- a/configure.ac
+++ b/configure.ac
@@ -953,19 +953,6 @@ AC_LINK_IFELSE(
]
)
-# Some platforms define sem_init(), but only support sem_open(). joyous.
-AC_MSG_CHECKING(for working unnamed semaphores)
-AC_RUN_IFELSE(
- [AC_LANG_PROGRAM([#include <semaphore.h>],
- [sem_t sem; return sem_init(&sem, 0, 0);])],
- AC_MSG_RESULT(yes)
- AC_DEFINE([HAS_WORKING_SEMAPHORE], 1, [Define to 1 if anonymous semaphores work.]),
- AC_MSG_RESULT(no),
- AC_MSG_RESULT(cross-compile)
- AC_MSG_NOTICE([WARNING: result yes guessed because of cross compilation])
- AC_DEFINE([HAS_WORKING_SEMAPHORE], 1, [Define to 1 if anonymous semaphores work.])
-)
-
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"
if test "${ac_cv_pthread_rwlock_timedwrlock}" = "yes"; then

View file

@ -1,10 +0,0 @@
--- a/configure.ac
+++ b/configure.ac
@@ -1287,7 +1287,6 @@ AC_LINK_IFELSE(
#include <resolv.h>],
[int foo = res_ninit(NULL);])],
AC_MSG_RESULT(yes)
- AC_DEFINE([HAVE_RES_NINIT], 1, [Define to 1 if your system has the re-entrant resolver functions.])
AC_SEARCH_LIBS(res_9_ndestroy, resolv)
AC_MSG_CHECKING(for res_ndestroy)
AC_LINK_IFELSE(

View file

@ -1,101 +0,0 @@
--- a/include/asterisk/lock.h
+++ b/include/asterisk/lock.h
@@ -51,9 +51,11 @@
#include <pthread.h>
#include <time.h>
#include <sys/param.h>
+#ifndef __UCLIBC__
#ifdef HAVE_BKTR
#include <execinfo.h>
#endif
+#endif
#ifndef HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK
#include "asterisk/time.h"
@@ -86,11 +88,15 @@
#define __AST_RWLOCK_INIT_VALUE {0}
#endif /* HAVE_PTHREAD_RWLOCK_INITIALIZER */
+#ifndef __UCLIBC__
#ifdef HAVE_BKTR
#define AST_LOCK_TRACK_INIT_VALUE { { NULL }, { 0 }, 0, { NULL }, { 0 }, {{{ 0 }}}, PTHREAD_MUTEX_INIT_VALUE }
#else
#define AST_LOCK_TRACK_INIT_VALUE { { NULL }, { 0 }, 0, { NULL }, { 0 }, PTHREAD_MUTEX_INIT_VALUE }
#endif
+#else
+#define AST_LOCK_TRACK_INIT_VALUE { { NULL }, { 0 }, 0, { NULL }, { 0 }, PTHREAD_MUTEX_INIT_VALUE }
+#endif
#define AST_MUTEX_INIT_VALUE { PTHREAD_MUTEX_INIT_VALUE, NULL, 1 }
#define AST_MUTEX_INIT_VALUE_NOTRACKING { PTHREAD_MUTEX_INIT_VALUE, NULL, 0 }
@@ -114,9 +120,11 @@ struct ast_lock_track {
int reentrancy;
const char *func[AST_MAX_REENTRANCY];
pthread_t thread_id[AST_MAX_REENTRANCY];
+#ifndef __UCLIBC__
#ifdef HAVE_BKTR
struct ast_bt backtrace[AST_MAX_REENTRANCY];
#endif
+#endif
pthread_mutex_t reentr_mutex;
};
@@ -241,6 +249,7 @@ enum ast_lock_type {
* on the lock. ast_mark_lock_acquired() will mark it as held by this thread.
*/
#if !defined(LOW_MEMORY)
+#ifndef HAVE_BKTR
#ifdef HAVE_BKTR
void ast_store_lock_info(enum ast_lock_type type, const char *filename,
int line_num, const char *func, const char *lock_name, void *lock_addr, struct ast_bt *bt);
@@ -248,14 +257,22 @@ void ast_store_lock_info(enum ast_lock_t
void ast_store_lock_info(enum ast_lock_type type, const char *filename,
int line_num, const char *func, const char *lock_name, void *lock_addr);
#endif /* HAVE_BKTR */
+#else
+void ast_store_lock_info(enum ast_lock_type type, const char *filename,
+ int line_num, const char *func, const char *lock_name, void *lock_addr);
+#endif
#else
+#ifndef __UCLIBC__
#ifdef HAVE_BKTR
#define ast_store_lock_info(I,DONT,CARE,ABOUT,THE,PARAMETERS,BUD)
#else
#define ast_store_lock_info(I,DONT,CARE,ABOUT,THE,PARAMETERS)
#endif /* HAVE_BKTR */
+#else
+#define ast_store_lock_info(I,DONT,CARE,ABOUT,THE,PARAMETERS)
+#endif
#endif /* !defined(LOW_MEMORY) */
/*!
@@ -283,19 +300,27 @@ void ast_mark_lock_failed(void *lock_add
* be removed from the current thread's lock info struct.
*/
#if !defined(LOW_MEMORY)
+#ifndef __UCLIBC__
#ifdef HAVE_BKTR
void ast_remove_lock_info(void *lock_addr, struct ast_bt *bt);
#else
void ast_remove_lock_info(void *lock_addr);
#endif /* HAVE_BKTR */
+#else
+void ast_remove_lock_info(void *lock_addr);
+#endif
void ast_suspend_lock_info(void *lock_addr);
void ast_restore_lock_info(void *lock_addr);
#else
+#ifndef __UCLIBC
#ifdef HAVE_BKTR
#define ast_remove_lock_info(ignore,me)
#else
#define ast_remove_lock_info(ignore)
#endif /* HAVE_BKTR */
+#else
+#define ast_remove_lock_info(ignore)
+#endif
#define ast_suspend_lock_info(ignore);
#define ast_restore_lock_info(ignore);
#endif /* !defined(LOW_MEMORY) */

View file

@ -1,31 +0,0 @@
--- a/res/ael/ael.flex
+++ b/res/ael/ael.flex
@@ -79,6 +79,12 @@
#if !defined(GLOB_ABORTED)
#define GLOB_ABORTED GLOB_ABEND
#endif
+#if !defined(GLOB_BRACE)
+#define GLOB_BRACE 0
+#endif
+#if !defined(GLOB_NOMAGIC)
+#define GLOB_NOMAGIC 0
+#endif
#include "asterisk/logger.h"
#include "asterisk/utils.h"
Only in asterisk-11.7.0: res/ael/ael.tab.o
--- a/res/ael/ael_lex.c
+++ b/res/ael/ael_lex.c
@@ -838,6 +838,12 @@
#if !defined(GLOB_ABORTED)
#define GLOB_ABORTED GLOB_ABEND
#endif
+#if !defined(GLOB_BRACE)
+#define GLOB_BRACE 0
+#endif
+#if !defined(GLOB_NOMAGIC)
+#define GLOB_NOMAGIC 0
+#endif
#include "asterisk/logger.h"
#include "asterisk/utils.h"

View file

@ -1,37 +0,0 @@
--- a/configure.ac
+++ b/configure.ac
@@ -170,6 +170,9 @@ case "${host_os}" in
linux-gnu*)
OSARCH=linux-gnu
;;
+ linux-musl*)
+ OSARCH=linux-musl
+ ;;
kfreebsd*-gnu)
OSARCH=kfreebsd-gnu
;;
@@ -1411,9 +1414,11 @@ if test "${PBX_BFD}" = "0"; then
AST_EXT_LIB_CHECK([BFD], [bfd], [bfd_check_format], [bfd.h], [-ldl -liberty -lz])
fi
-if test "x${OSARCH}" = "xlinux-gnu" ; then
+case "${OSARCH}" in
+linux*)
AST_EXT_LIB_CHECK([CAP], [cap], [cap_from_text], [sys/capability.h])
-fi
+ ;;
+esac
AST_C_DEFINE_CHECK([DAHDI], [DAHDI_RESET_COUNTERS], [dahdi/user.h], [230])
AST_C_DEFINE_CHECK([DAHDI], [DAHDI_DEFAULT_MTU_MRU], [dahdi/user.h], [220])
--- a/main/Makefile
+++ b/main/Makefile
@@ -47,7 +47,7 @@ AST_LIBS+=$(AST_CLANG_BLOCKS_LIBS)
AST_LIBS+=$(RT_LIB)
AST_LIBS+=$(SYSTEMD_LIB)
-ifneq ($(findstring $(OSARCH), linux-gnu uclinux linux-uclibc kfreebsd-gnu),)
+ifneq ($(findstring $(OSARCH), linux-gnu uclinux linux-uclibc linux-musl kfreebsd-gnu),)
AST_LIBS+=-ldl
ifneq (x$(CAP_LIB),x)
AST_LIBS+=$(CAP_LIB)

View file

@ -1,11 +0,0 @@
--- a/include/asterisk/lock.h
+++ b/include/asterisk/lock.h
@@ -68,7 +68,7 @@
#define AST_PTHREADT_NULL (pthread_t) -1
#define AST_PTHREADT_STOP (pthread_t) -2
-#if (defined(SOLARIS) || defined(BSD))
+#if (defined(SOLARIS) || defined(BSD) || !defined(HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP))
#define AST_MUTEX_INIT_W_CONSTRUCTORS
#endif /* SOLARIS || BSD */

View file

@ -1,10 +0,0 @@
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -179,7 +179,6 @@ check_expr2: $(ASTTOPDIR)/main/ast_expr2
$(CC) -g -o check_expr2 ast_expr2fz.o ast_expr2z.o -lm
$(ECHO_PREFIX) echo " [RM] ast_expr2fz.o ast_expr2z.o"
rm ast_expr2z.o ast_expr2fz.o
- ./check_expr2 expr2.testinput
smsq: smsq.o strcompat.o
smsq: LIBS+=$(POPT_LIB)

View file

@ -1,28 +0,0 @@
--- a/build_tools/make_build_h
+++ b/build_tools/make_build_h
@@ -5,6 +5,14 @@ MACHINE=`uname -m | sed 's/\\\\/\\\\\\\
OS=`uname -s`
USER=`id | awk -F")" '{print $1}'| awk -F"(" '{print $2}' | sed 's/\\\\/\\\\\\\\/g'`
DATE=`date -u "+%Y-%m-%d %H:%M:%S"`
+if [ -n "${SOURCE_DATE_EPOCH}" ]; then
+ # building reproducibly, faking some data
+ HOSTNAME='buildd.debian.org'
+ KERNEL='unknown'
+ MACHINE='unknown'
+ USER='nobody'
+ DATE=`date -u "+%Y-%m-%d %H:%M:%S" -d @${SOURCE_DATE_EPOCH}`
+fi
cat << END
/*
* build.h
--- a/Makefile
+++ b/Makefile
@@ -480,7 +480,7 @@ doc/core-en_US.xml: makeopts .lastclean
@echo "<docs xmlns:xi=\"http://www.w3.org/2001/XInclude\">" >> $@
@for x in $(MOD_SUBDIRS); do \
printf "$$x " ; \
- for i in `find $$x -name '*.c'`; do \
+ for i in `find $$x -name '*.c' | LC_ALL=C sort`; do \
$(AWK) -f build_tools/get_documentation $$i >> $@ ; \
done ; \
done

View file

@ -1,8 +0,0 @@
{
global:
/* See main/asterisk.exports.in for an explanation why this is
* needed. */
_IO_stdin_used;
local:
*;
};

View file

@ -1,11 +0,0 @@
menu "Advanced configuration"
depends on PACKAGE_asterisk15
config ASTERISK15_LOW_MEMORY
bool "Optimize Asterisk 15 for low memory usage"
default n
help
Warning: this feature is known to cause problems with some modules.
Disable it if you experience problems like segmentation faults.
endmenu

File diff suppressed because it is too large Load diff

View file

@ -1,4 +0,0 @@
## startup options for /etc/init.d/asterisk
ENABLE_ASTERISK="yes"
OPTIONS=""

View file

@ -1,33 +0,0 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2014 OpenWrt.org
START=99
APP=asterisk
OPTIONS=
DEST=
DEFAULT=$DEST/etc/default/$APP
BIN_FILE=$DEST/usr/sbin/$APP
PID_FILE=$DEST/var/run/$APP/$APP.pid
start() {
[ -f $DEFAULT ] && . $DEFAULT
[ -d $DEST/var/run/asterisk ] || mkdir -p $DEST/var/run/asterisk
[ -d $DEST/var/log/asterisk ] || mkdir -p $DEST/var/log/asterisk
[ -d $DEST/var/spool/asterisk ] || mkdir -p $DEST/var/spool/asterisk
[ -d $DEST/var/lib/asterisk ] || mkdir -p $DEST/var/lib/asterisk
[ -d $DEST/var/lib/asterisk/keys ] || mkdir -p $DEST/var/lib/asterisk/keys
[ -d $DEST/var/log/asterisk/cdr-csv ] || mkdir -p $DEST/var/log/asterisk/cdr-csv
SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
service_start $BIN_FILE $OPTIONS
}
stop() {
SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
service_stop $BIN_FILE
}
reload() {
SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
service_reload $BIN_FILE
}

View file

@ -1,22 +0,0 @@
--- a/configure.ac
+++ b/configure.ac
@@ -985,19 +985,6 @@ AC_LINK_IFELSE(
]
)
-# Some platforms define sem_init(), but only support sem_open(). joyous.
-AC_MSG_CHECKING(for working unnamed semaphores)
-AC_RUN_IFELSE(
- [AC_LANG_PROGRAM([#include <semaphore.h>],
- [sem_t sem; return sem_init(&sem, 0, 0);])],
- AC_MSG_RESULT(yes)
- AC_DEFINE([HAS_WORKING_SEMAPHORE], 1, [Define to 1 if anonymous semaphores work.]),
- AC_MSG_RESULT(no),
- AC_MSG_RESULT(cross-compile)
- AC_MSG_NOTICE([WARNING: result yes guessed because of cross compilation])
- AC_DEFINE([HAS_WORKING_SEMAPHORE], 1, [Define to 1 if anonymous semaphores work.])
-)
-
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"
if test "${ac_cv_pthread_rwlock_timedwrlock}" = "yes"; then

View file

@ -1,10 +0,0 @@
--- a/configure.ac
+++ b/configure.ac
@@ -1319,7 +1319,6 @@ AC_LINK_IFELSE(
#include <resolv.h>],
[int foo = res_ninit(NULL);])],
AC_MSG_RESULT(yes)
- AC_DEFINE([HAVE_RES_NINIT], 1, [Define to 1 if your system has the re-entrant resolver functions.])
AC_SEARCH_LIBS(res_9_ndestroy, resolv)
AC_MSG_CHECKING(for res_ndestroy)
AC_LINK_IFELSE(

View file

@ -1,11 +0,0 @@
--- a/configure.ac
+++ b/configure.ac
@@ -2709,7 +2709,7 @@ else
fi
# conf_bridge (binaural rendering): check if HRIRs are available
-AC_CHECK_FILES([bridges/bridge_softmix/include/hrirs.h])
+# AC_CHECK_FILES([bridges/bridge_softmix/include/hrirs.h])
AC_CONFIG_FILES([build_tools/menuselect-deps makeopts])
AST_CHECK_MANDATORY

View file

@ -1,22 +0,0 @@
--- a/res/ael/ael.flex
+++ b/res/ael/ael.flex
@@ -601,7 +601,7 @@ includes { STORE_POS; return KW_INCLUDES
snprintf(fnamebuf2,sizeof(fnamebuf2), "%s/%s", (char *)ast_config_AST_CONFIG_DIR, fnamebuf);
ast_copy_string(fnamebuf,fnamebuf2,sizeof(fnamebuf));
}
-#ifdef SOLARIS
+#if !defined(HAVE_GLOB_NOMAGIC) || !defined(HAVE_GLOB_BRACE) || defined(DEBUG_NONGNU)
glob_ret = glob(fnamebuf, GLOB_NOCHECK, NULL, &globbuf);
#else
glob_ret = glob(fnamebuf, GLOB_NOMAGIC|GLOB_BRACE, NULL, &globbuf);
--- a/res/ael/ael_lex.c
+++ b/res/ael/ael_lex.c
@@ -1982,7 +1982,7 @@ YY_RULE_SETUP
snprintf(fnamebuf2,sizeof(fnamebuf2), "%s/%s", (char *)ast_config_AST_CONFIG_DIR, fnamebuf);
ast_copy_string(fnamebuf,fnamebuf2,sizeof(fnamebuf));
}
-#ifdef SOLARIS
+#if !defined(HAVE_GLOB_NOMAGIC) || !defined(HAVE_GLOB_BRACE) || defined(DEBUG_NONGNU)
glob_ret = glob(fnamebuf, GLOB_NOCHECK, NULL, &globbuf);
#else
glob_ret = glob(fnamebuf, GLOB_NOMAGIC|GLOB_BRACE, NULL, &globbuf);

View file

@ -1,10 +0,0 @@
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -182,7 +182,6 @@ check_expr2: $(ASTTOPDIR)/main/ast_expr2
$(CC) -g -o check_expr2 ast_expr2fz.o ast_expr2z.o -lm
$(ECHO_PREFIX) echo " [RM] ast_expr2fz.o ast_expr2z.o"
rm ast_expr2z.o ast_expr2fz.o
- ./check_expr2 expr2.testinput
smsq: smsq.o strcompat.o
smsq: LIBS+=$(POPT_LIB)

View file

@ -1,28 +0,0 @@
--- a/build_tools/make_build_h
+++ b/build_tools/make_build_h
@@ -5,6 +5,14 @@ MACHINE=`uname -m | sed 's/\\\\/\\\\\\\
OS=`uname -s`
USER=`id | awk -F")" '{print $1}'| awk -F"(" '{print $2}' | sed 's/\\\\/\\\\\\\\/g'`
DATE=`date -u "+%Y-%m-%d %H:%M:%S"`
+if [ -n "${SOURCE_DATE_EPOCH}" ]; then
+ # building reproducibly, faking some data
+ HOSTNAME='buildd.debian.org'
+ KERNEL='unknown'
+ MACHINE='unknown'
+ USER='nobody'
+ DATE=`date -u "+%Y-%m-%d %H:%M:%S" -d @${SOURCE_DATE_EPOCH}`
+fi
cat << END
/*
* build.h
--- a/Makefile
+++ b/Makefile
@@ -479,7 +479,7 @@ doc/core-en_US.xml: makeopts .lastclean
@echo "<docs xmlns:xi=\"http://www.w3.org/2001/XInclude\">" >> $@
@for x in $(MOD_SUBDIRS); do \
printf "$$x " ; \
- for i in `find $$x -name '*.c'`; do \
+ for i in `find $$x -name '*.c' | LC_ALL=C sort`; do \
$(AWK) -f build_tools/get_documentation $$i >> $@ ; \
done ; \
done

View file

@ -8,15 +8,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=asterisk-chan-dongle
PKG_VERSION:=1.1-20180312
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/wdoekes/asterisk-chan-dongle.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=3e2b3ca6fd4d0a996404dfdc724973e92f2683eb
PKG_MIRROR_HASH:=655d1b6a78fb92f5a41410747d2ad633493e5eb2c5a2a0fdf8057dde4011213e
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/wdoekes/asterisk-chan-dongle.git
PKG_SOURCE_VERSION:=503dba87d726854b74b49e70679e64e6e86d5812
PKG_SOURCE_DATE=2022-11-04
PKG_RELEASE:=1
PKG_MIRROR_HASH:=0d585c108ec18d136ce03704b96d0a6769e617c820fc74f735e3e192ad282611
PKG_FIXUP:=autoreconf
@ -24,87 +22,76 @@ PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYRIGHT.txt LICENSE.txt
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
MODULES_DIR:=/usr/lib/asterisk/modules
include $(INCLUDE_DIR)/package.mk
# asterisk-chan-dongle needs iconv
include $(INCLUDE_DIR)/nls.mk
define Package/asterisk-chan-dongle/Default
define Package/asterisk-chan-dongle
SUBMENU:=Telephony
SECTION:=net
CATEGORY:=Network
URL:=https://github.com/wdoekes/asterisk-chan-dongle
DEPENDS:=+USE_UCLIBC:libiconv-full +kmod-usb-acm +kmod-usb-serial +kmod-usb-serial-option +libusb-1.0 +usb-modeswitch
DEPENDS:=asterisk $(ICONV_DEPENDS) +libsqlite3
TITLE:=Huawei UMTS 3G dongle support
endef
define Package/asterisk13-chan-dongle
$(call Package/asterisk-chan-dongle/Default)
DEPENDS+=asterisk13
VARIANT:=asterisk13
endef
define Package/asterisk15-chan-dongle
$(call Package/asterisk-chan-dongle/Default)
DEPENDS+=asterisk15
VARIANT:=asterisk15
endef
define Package/description/Default
define Package/asterisk-chan-dongle/description
Asterisk channel driver for Huawei UMTS 3G dongle.
endef
Package/asterisk13-chan-dongle/description = $(Package/description/Default)
Package/asterisk15-chan-dongle/description = $(Package/description/Default)
ifeq ($(BUILD_VARIANT),asterisk13)
CHAN_DONGLE_AST_HEADERS:=$(STAGING_DIR)/usr/include/asterisk-13/include
CONFIGURE_ARGS+= \
--with-astversion=13
--with-asterisk=$(STAGING_DIR)/usr/include \
--with-astversion=18
ifeq ($(CONFIG_BUILD_NLS),y)
CONFIGURE_ARGS+=--with-iconv=$(ICONV_PREFIX)/include
else
CONFIGURE_ARGS+=--with-iconv=$(TOOLCHAIN_DIR)/include
endif
ifeq ($(BUILD_VARIANT),asterisk15)
CHAN_DONGLE_AST_HEADERS:=$(STAGING_DIR)/usr/include/asterisk-15/include
CONFIGURE_ARGS+= \
--with-astversion=15
endif
CONFIGURE_ARGS+= \
--with-asterisk=$(CHAN_DONGLE_AST_HEADERS)
TARGET_CFLAGS+= \
-I$(CHAN_DONGLE_AST_HEADERS)
MAKE_FLAGS+=LD="$(TARGET_CC)"
# musl and glibc include their own iconv, but uclibc does not
TARGET_CPPFLAGS+=$(if $(CONFIG_USE_UCLIBC),-I$(STAGING_DIR)/usr/lib/libiconv-full/include)
TARGET_LDFLAGS+=$(if $(CONFIG_USE_UCLIBC),-L$(STAGING_DIR)/usr/lib/libiconv-full/lib -liconv)
# $CHAN_DONGLE_ICONV_INC used by 200-fix-iconv-detection.patch
CONFIGURE_VARS += \
CHAN_DONGLE_ICONV_INC="$(TOOLCHAIN_DIR)/include $(STAGING_DIR)/usr/lib/libiconv-full/include" \
DESTDIR="$(MODULES_DIR)" \
ac_cv_type_size_t=yes \
ac_cv_type_ssize_t=yes
define Package/conffiles/Default
define Package/asterisk-chan-dongle/conffiles
/etc/asterisk/dongle.conf
endef
Package/asterisk13-chan-dongle/conffiles = $(Package/conffiles/Default)
Package/asterisk15-chan-dongle/conffiles = $(Package/conffiles/Default)
define Package/Install/Default
define Package/asterisk-chan-dongle/install
$(INSTALL_DIR) $(1)/etc/asterisk
$(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/dongle.conf $(1)/etc/asterisk
$(INSTALL_DIR) $(1)$(MODULES_DIR)
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chan_dongle.so $(1)$(MODULES_DIR)
endef
Package/asterisk13-chan-dongle/install = $(Package/Install/Default)
Package/asterisk15-chan-dongle/install = $(Package/Install/Default)
define Package/asterisk-chan-dongle/postinst
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
echo
echo "o-------------------------------------------------------------------o"
echo "| asterisk-chan-dongle note |"
echo "o-------------------------------------------------------------------o"
echo "| Adding the \"asterisk\" user to the \"dialout\" group might be |"
echo "| required for asterisk to be able to access the dongle. |"
echo "o-------------------------------------------------------------=^_^=-o"
echo
fi
exit 0
endef
$(eval $(call BuildPackage,asterisk13-chan-dongle))
$(eval $(call BuildPackage,asterisk15-chan-dongle))
define Build/Prepare
$(call Build/Prepare/Default)
ifeq ($(QUILT),)
ifeq ($(CONFIG_BUILD_NLS),y)
$(SED) 's/\[iconv\], \[c iconv\]/[libiconv], [iconv]/' \
"$(PKG_BUILD_DIR)/configure.ac"
endif
endif
endef
$(eval $(call BuildPackage,asterisk-chan-dongle))

View file

@ -1,11 +0,0 @@
--- a/configure.ac
+++ b/configure.ac
@@ -102,7 +102,7 @@ AC_DEFUN([AC_HEADER_FIND], [
)
AC_HEADER_FIND([asterisk.h], $with_asterisk)
-AC_HEADER_FIND([iconv.h], /usr/include /usr/local/include /opt/local/include)
+AC_HEADER_FIND([iconv.h], ${CHAN_DONGLE_ICONV_INC})
AC_DEFINE([ICONV_CONST],[], [Define to const if you has iconv() const declaration of input buffer])
AC_MSG_CHECKING([for iconv use const inbuf])

View file

@ -1,8 +1,8 @@
--- a/configure.ac
+++ b/configure.ac
@@ -216,8 +216,6 @@ dnl Apply options to defines
@@ -247,8 +247,6 @@ dnl Apply options to defines
if test "x$enable_debug" = "xyes" ; then
CFLAGS="$CFLAGS -O0 -g"
CFLAGS="$CFLAGS -O0 -g3"
AC_DEFINE([__DEBUG__], [1], [Build with debugging])
-else
- CFLAGS="$CFLAGS -O6"

View file

@ -0,0 +1,16 @@
--- a/configure.ac
+++ b/configure.ac
@@ -165,11 +165,13 @@ dnl AC_CHECK_TYPE(uint64_t, unsigned lon
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long int)
+AC_CHECK_SIZEOF(long long int)
AC_CHECK_SIZEOF(time_t)
case "$ac_cv_sizeof_time_t" in
''|0) AC_MSG_ERROR([Could not find time_t type]);;
$ac_cv_sizeof_int) AC_DEFINE([PRI_time_t], ["d"], [printf format for time_t]);;
$ac_cv_sizeof_long_int) AC_DEFINE([PRI_time_t], ["ld"], [printf format for time_t]);;
+$ac_cv_sizeof_long_long_int) AC_DEFINE([PRI_time_t], ["lld"], [printf format for time_t]);;
*) AC_MSG_ERROR([Could not find match size of time_t to printf format])
esac

View file

@ -7,15 +7,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=asterisk15-chan-lantiq
PKG_VERSION:=20180215
PKG_RELEASE:=2
PKG_NAME:=asterisk-chan-lantiq
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/kochstefan/asterisk_channel_lantiq.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=c9d68dd06fcd46ac7985df45f8c2b8833e658f8e
PKG_MIRROR_HASH:=8666c18b24adf9da3ddf12306fcf0a8b4f56860c256b172bd0ba5c2a7a3ab25e
PKG_SOURCE_VERSION:=2f029ec8778420538c8151c6aceba0f7b44b07c9
PKG_SOURCE_DATE:=2021-09-11
PKG_MIRROR_HASH:=0c57aeb33dc7efb0078e77907e0bc616f1714251e64d647a59faffe5af8bac73
PKG_SOURCE_PROTO:=git
PKG_LICENSE:=GPL-2.0
@ -32,29 +30,23 @@ define Package/$(PKG_NAME)
CATEGORY:=Network
TITLE:=Lantiq channel driver
URL:=https://github.com/kochstefan/asterisk_channel_lantiq
DEPENDS:=+asterisk15 +kmod-ltq-vmmc
DEPENDS:=+asterisk +kmod-ltq-vmmc
USERID:=asterisk=385::vmmc=386
endef
define Package/$(PKG_NAME)/description
An implementation of a Lantiq TAPI channel driver for Asterisk 15.
An implementation of a Lantiq TAPI channel driver for Asterisk.
endef
define Package/$(PKG_NAME)/conffiles
/etc/asterisk/lantiq.conf
endef
define Build/Prepare
$(call Build/Prepare/Default)
$(INSTALL_DATA) ./files/default.exports \
$(PKG_BUILD_DIR)/src/channels/chan_lantiq.exports
endef
define Build/Compile
cd $(PKG_BUILD_DIR)/src/channels && \
$(TARGET_CC) -o chan_lantiq.o -c chan_lantiq.c -MD -MT chan_lantiq.o \
-MF .chan_lantiq.o.d -MP -pthread \
$(TARGET_CFLAGS) -DAST_MODULE_SELF_SYM=__internal_chan_lantiq_self \
-I$(STAGING_DIR)/usr/include/asterisk-15/include \
$(TARGET_CPPFLAGS) \
-Wall -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations $(FPIC) -DAST_MODULE=\"chan_lantiq\" && \
@ -65,7 +57,7 @@ endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/etc/asterisk
$(INSTALL_CONF) \
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/src/configs/samples/lantiq.conf.sample \
$(1)/etc/asterisk/lantiq.conf
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules

View file

@ -1,5 +1,5 @@
#
# Copyright (C) 2016 - 2018 OpenWrt.org
# Copyright (C) 2016 OpenWrt.org
# Copyright (C) 2016 Cesnet, z.s.p.o.
#
# This is free software, licensed under the GNU General Public License v2.
@ -8,15 +8,14 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=chan-sccp
PKG_VERSION:=v4.3.0-20180322
PKG_RELEASE:=1
PKG_NAME:=asterisk-chan-sccp
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
# Updated to v4.3.3 release
PKG_SOURCE_URL:=https://github.com/chan-sccp/chan-sccp.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=69fdf95837727c104f2394644bd21f83c2e4a4a3
PKG_MIRROR_HASH:=fa755b5d8186b3baac99c93dc13e493b67c5054d114fcbef0ee93d18df5b6fcd
PKG_SOURCE_VERSION:=968caa458920965c5dd15c31bcd50d21a891ab20
PKG_SOURCE_DATE:=2020-12-19
PKG_MIRROR_HASH:=627e9057a70b01d1fd69c80c0f6a138c79aace10082d76016af23a6bafd2a3d7
PKG_SOURCE_PROTO:=git
PKG_FIXUP:=autoreconf
@ -27,81 +26,50 @@ PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
PKG_INSTALL:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
# need iconv.m4, otherwise error during autoreconf
PKG_BUILD_DEPENDS:=gettext-full
include $(INCLUDE_DIR)/package.mk
# chan-sccp needs iconv
include $(INCLUDE_DIR)/nls.mk
# musl and glibc include their own iconv, but uclibc does not
ifneq ($(CONFIG_USE_UCLIBC),)
TARGET_CPPFLAGS+= \
-I$(STAGING_DIR)/usr/lib/libiconv-full/include
TARGET_LDFLAGS+= \
-L$(STAGING_DIR)/usr/lib/libiconv-full/lib -liconv
endif
define Package/chan-sccp/Default
define Package/asterisk-chan-sccp
SUBMENU:=Telephony
SECTION:=net
CATEGORY:=Network
TITLE:=SCCP channel support
URL:=https://github.com/chan-sccp/chan-sccp
DEPENDS:=+USE_UCLIBC:libiconv-full +libltdl
PKG_BUILD_DEPENDS:=libiconv
DEPENDS:=asterisk $(ICONV_DEPENDS) +libltdl \
+asterisk-bridge-holding \
+asterisk-bridge-native-rtp \
+asterisk-bridge-simple \
+asterisk-bridge-softmix \
+asterisk-res-stasis-device-state
CONFLICTS:=asterisk-chan-skinny
endef
define Package/asterisk13-chan-sccp
$(call Package/chan-sccp/Default)
DEPENDS+=asterisk13
VARIANT:=asterisk13
CONFLICTS:=asterisk13-chan-skinny
endef
define Package/asterisk15-chan-sccp
$(call Package/chan-sccp/Default)
DEPENDS+=asterisk15
VARIANT:=asterisk15
CONFLICTS:=asterisk15-chan-skinny
endef
define Package/description/Default
define Package/asterisk-chan-sccp/description
Replacement for the SCCP channel driver (chan_skinny) in Asterisk.
Extended features include shared lines, presence / BLF, customizable
feature buttons and custom device state.
endef
Package/asterisk13-chan-sccp/description = $(Package/description/Default)
Package/asterisk15-chan-sccp/description = $(Package/description/Default)
CONFIGURE_ARGS += \
--disable-debug \
--enable-advanced-functions \
--enable-conference \
--enable-video
--enable-video \
--with-asterisk=$(STAGING_DIR)/usr
ifeq ($(BUILD_VARIANT),asterisk13)
CONFIGURE_ARGS += --with-asterisk=$(STAGING_DIR)/usr/include/asterisk-13
endif
ifeq ($(BUILD_VARIANT),asterisk15)
CONFIGURE_ARGS += --with-asterisk=$(STAGING_DIR)/usr/include/asterisk-15
endif
define Package/conffiles/Default
define Package/asterisk-chan-sccp/conffiles
/etc/asterisk/sccp.conf
endef
Package/asterisk13-chan-sccp/conffiles = $(Package/conffiles/Default)
Package/asterisk15-chan-sccp/conffiles = $(Package/conffiles/Default)
define Package/Install/Default
define Package/asterisk-chan-sccp/install
$(INSTALL_DIR) $(1)/etc/asterisk
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/asterisk/sccp.conf $(1)/etc/asterisk
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/sccp.conf $(1)/etc/asterisk
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_sccp.so $(1)/usr/lib/asterisk/modules/
endef
Package/asterisk13-chan-sccp/install = $(Package/Install/Default)
Package/asterisk15-chan-sccp/install = $(Package/Install/Default)
$(eval $(call BuildPackage,asterisk13-chan-sccp))
$(eval $(call BuildPackage,asterisk15-chan-sccp))
$(eval $(call BuildPackage,asterisk-chan-sccp))

View file

@ -1,6 +1,6 @@
--- a/autoconf/extra.m4
+++ b/autoconf/extra.m4
@@ -491,17 +491,6 @@ AC_DEFUN([CS_ENABLE_OPTIMIZATION], [
@@ -516,17 +516,6 @@ AC_DEFUN([CS_ENABLE_OPTIMIZATION], [
], SUPPORTED_CFLAGS)
])
AC_SUBST([strip_binaries])

View file

@ -0,0 +1,11 @@
--- a/autoconf/acinclude.m4
+++ b/autoconf/acinclude.m4
@@ -497,7 +497,7 @@ AC_DEFUN([CS_GET_VERSION], [
SCCP_REVISION="unknown"
CURRENT=`pwd`
- BASE=`dirname $ac_dir`
+ BASE=`dirname $ac_aux_dir`
cd $BASE >/dev/null
. ./tools/versioncheck silent
cd $CURRENT >/dev/null

View file

@ -1,8 +1,6 @@
Index: chan-sccp-v4.3.0-20171123/src/chan_sccp.c
===================================================================
--- chan-sccp-v4.3.0-20171123.orig/src/chan_sccp.c
+++ chan-sccp-v4.3.0-20171123/src/chan_sccp.c
@@ -186,7 +186,7 @@ boolean_t sccp_postPBX_load(void)
--- a/src/chan_sccp.c
+++ b/src/chan_sccp.c
@@ -198,7 +198,7 @@ boolean_t sccp_postPBX_load(void)
#else
snprintf(SCCP_REVISIONSTR, sizeof(SCCP_REVISIONSTR), "%s", SCCP_REVISION);
#endif

Some files were not shown because too many files have changed in this diff Show more