Commit Graph

360 Commits

Author SHA1 Message Date
graysky 4d8d33a023 dahdi-linux: forward-port to 6.18 kernel APIs, fix build flags
This patchset updates DAHDI 3.4.0 to build cleanly on Linux 6.18 and
modern OpenWrt toolchains. Changes include:

* Add kernel API compatibility shims:
  - Provide hrtimer_init() wrapper using hrtimer_setup()
  - Restore from_timer() helper
  - Map del_timer*() to timer_delete*() on >= 6.15, aligning with
    upstream PR #93[1].

* Replace deprecated EXTRA_CFLAGS with ccflags-y across all Kbuilds
  to match upstream kernel changes and resolve build failures. Relating
  to oct612x include paths using ccflags-y, aligning with upstream
  PR #76.[2]

* Use out-of-tree OSLEC for Linux 6.18

* Minor Makefile adjustments for OpenWrt packaging consistency.

These changes collectively restore a complete, warning-free build of
DAHDI 3.4.0 on Linux 6.18 while preserving compatibility with existing
drivers and OpenWrt module packaging.

1. https://github.com/asterisk/dahdi-linux/issues/93
2. https://github.com/asterisk/dahdi-linux/issues/76

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-05-17 13:30:37 +01:00
Daniel Golle 38a89346b0 oslec: new package
Out-of-tree build of the Open Source Line Echo Canceller, formerly
shipped as drivers/misc/echo in the kernel and removed upstream.
Provides oslec_* symbols for dahdi_echocan_oslec on kernels >= 6.18.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-05-17 13:30:37 +01:00
Christian Marangi b4f1c7adf9 freetdm: disable broken pritap module
Disable broken pritap module as it never actually worked.

This module is based on a FORK of libpri [1] that have
all the extra symbol.

So the module probably never worked on loading it
with the wrong library.

[1] https://github.com/ajpaul25/libpri

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-12-04 15:10:14 +01:00
Paul Donald e8e89793f3 pjproject: bump to match asterisk 23.1.0
This matches the version and patches bundled with asterisk 23.1.0.

Signed-off-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-12-04 13:06:45 +01:00
Fabrice Fontaine 7b5be1c890 libs/sofia-sip: assign PKG_CPE_ID
cpe:/a:signalwire:sofia-sip is the correct CPE ID for sofia-sip:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:signalwire:sofia-sip

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2025-11-22 09:40:46 +01:00
Fabrice Fontaine 74b71c2b9d libs/libsrtp: assign PKG_CPE_ID
cpe:/a:cisco:libsrtp is the correct CPE ID for libsrtp:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:cisco:libsrtp

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2025-11-22 09:40:34 +01:00
Christian Marangi a017ae016a spandsp3: fix leaking host header for build tools
It was discovered that spandsp3 leaks host header on building build
tools.

This was caused by the Makefile not permitting to pass custom header on
compiling build tools. To be more precise it was possible to leak host
header for the tiff library for the tiffio.h header.

Add pending patch to fix this and not depend on the host system header.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-11-20 17:05:40 +01:00
Christian Marangi 502eddcce7 bcg729: backport fixes patch for CMake version
Backport fixes patch for CMake version bump. These upstream patch also
rework the CMakeLists file by changing the CMake options and the CMake
files directory (changed to all capitals letters)

Rework the Makefile to apply these additional change.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-11-10 01:08:56 +01:00
Christian Marangi 5b32ed8fae spandsp3: update to Git HEAD (2025-07-07)
d9681c3747ff - Numerous cleanups - Async and FSK modules reworked, to generalise the bit stream processing   for async data - V.8 module enhanced to support gateway operation, for things like V.150.x - modem connect tone module enhanced to support gateway operation, for things like V.150.x
4ee5eac8f1d5 A first pass at the SPRT protocol in V.150.1 A first pass at V.150.1 SSE processing A first pass at a V.150.1 framework These are all a work in progress, but do come with some initial test code
e2787e900a3b Fix Windows build.
bebd506ca1e6 Windows support: Add Visual Studio solution.
aba9ac21d3cd Some changes so Debian 11 is happy
64f4d2ae1860 Various cleanups so "make dist" works again, and builds a tarball
6f407a6ed1a0 Cleanup of some issues found by scan-build.
d0dfd573bb14 Address a scan-build issue in super_tone_rx.c
227b31267023 T.38 gateway was not handling FTT messages from the far end properly.
239bf2f6a80b Changes to address V.17 fixed point issue.
d8dfbd74c713 Various cleanups. Skeleton for V.80 introduced.
e7f5ba7a682e Miwssed file added
b7e17a4f0ddb Removed 2 obsolete files, which should have gone a long time ago Added a .gitattributes file to handle the MS line ends stuff better Cleaned up the CR/LF stuff in some .vcxproj files
35de07c9a773 Started some V.150.1 test code.
a60119408c46 Some more V.34 stuff. Still far far far from complete. Improvements to SPRT and other parts of V.150.1
df1282eb9af5 Further development of V.150.1 Inroduction of SSLFax, using the code submitted by Lee Howard. This needs further testing, but should be complete.
5394b2cae6c4 Various tidying up jobs. V.150.1 has moved forward, but is still a work in progress. The various modules using Goertzel filters were not using a harmonised approach to setting thresholds and measuring power levels. This has been improved.
fbeebb736514 Various bits of tidying spandsp/private/v80.h was not being installed.
94a54740b592 Fixes building when an SSL library is not available to support the SSL-FAX mode
7b0b8cf3d42b Some improvements to the T.38 code to centralise some things that should have been in the T.38 core module. Addition of routines to allow the packetisation time of the T.38 modules to be controlled. Fixed a wrong licence notice in image_translate.c A few little cleanups.Q
0446f4e0c725 Various changes to make the code work when compiled with clang. Various changes to signal power handling for greater consistency, and so the code builds properly with Visual Studio and clangw.
9516c33f33b6 Added missing union name in v150_1.h
3097550dfc23 Address incompatibility between C and C++ compilers with an unnamed union.
4a73bd7ede87 Cleanup of some syntax errors when FIXED_POINT is selected
0c0d76deab3c Fixed a long standing bug where a FAX that has to return to the DCS/TCF sequence, due to something like a change of page size mid-FAX, messed up the TCF sequence, and stepped down to a lower speed.
39cd63db3509 Added a floating point AGC module, with a test program. Added a Godard TED module. A few tidy ups.
933d40db635d V.29 and V.17 now use the Godard TED module, and their internal Godard TED code has been removed.o
31eba7cb406a First pass. Making SpanDSP library compile on Windows.
ec6625cf41b1 [GHA] Add Windows `build` CI workflow.
c17f8d9f96c4 [GHA] Add `scan-build` workflows for CI.
88a282614d44 [GHA] Add Debian `build` CI workflow.
a3f025dd206d [BUILD] Add `docbook-xsl` build-dep
55fbb1cbb216 Fix outdated link to jpegsrc for the Visual Studio solution.
940ff7e176e1 [GHA] Update deprecated windows-2019 image to windows-2022
882b9d13b865 [GHA] Add Debian Trixie build target
9176219c7203 [GHA] Add `deb-mirror` workflow job
3009d465ebfe [GHA] Use native ARM runners

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-11-10 00:51:24 +01:00
Christian Marangi 0d58243336 signalwire-client-c: bump to 2.0.3 and drop codeload usage
Bump package to 2.0.3 to fix compilation error with CMake bump and drop
codeload usage in favor of raw git commit + mirror hash.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-11-08 11:41:57 +01:00
Christian Marangi e8322b22d6 sofia-sip: backport patch fixing support for GCC 14
Backport patch fixing support for GCC 14. While at it also renumber the
other patch with 1xx order to follow usual pattern for downstream patch.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-11-05 22:05:14 +01:00
Daniel Golle 44d6355a7b libpri: update to version 1.6.1
Allows to drop backport patch which is now part of the new release.

Change Log for Release libpri-1.6.1
========================================

Links:
----------------------------------------

 - [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/libpri/releases/ChangeLog-1.6.1.md)
 - [GitHub Diff](https://github.com/asterisk/libpri/compare/1.6.0...1.6.1)
 - [Tarball](https://downloads.asterisk.org/pub/telephony/libpri/libpri-1.6.1.tar.gz)
 - [Downloads](https://downloads.asterisk.org/pub/telephony/libpri)

Summary:
----------------------------------------

- .github: Add Releaser workflow
- Link README to README.md
- Makefile: Fix modern compiler errors.
- Makefile: Add the ability to build libpri on MacOS for Linux target.
- q931.c: Fix subaddress finding octet 4.

User Notes:
----------------------------------------

Upgrade Notes:
----------------------------------------

Closed Issues:
----------------------------------------

None

Commits By Author:
----------------------------------------

- ### George Joseph (2):
  - Link README to README.md
  - .github: Add Releaser workflow

- ### Sean Bright (1):
  - Makefile: Fix modern compiler errors.

- ### Sergey V. Lobanov (1):
  - Makefile: Add the ability to build libpri on MacOS for Linux target.

- ### bbabic (1):
  - q931.c: Fix subaddress finding octet 4.

Detail:
----------------------------------------

- ### .github: Add Releaser workflow
  Author: George Joseph
  Date:   2023-08-16

- ### Link README to README.md
  Author: George Joseph
  Date:   2023-08-15

- ### Makefile: Fix modern compiler errors.
  Author: Sean Bright
  Date:   2023-03-10

  Disable GCC's zero-length-bounds and stringop-overflow errors.

  PRI-189 #close

- ### Makefile: Add the ability to build libpri on MacOS for Linux target.
  Author: Sergey V. Lobanov
  Date:   2022-02-19

  This patch allows to redefine ar and ranlib tool using AR and
  RANLIB make flags.

  PRI-188 #close

- ### q931.c: Fix subaddress finding octet 4.
  Author: bbabic
  Date:   2017-10-23

  Some switches have extended subaddress ie octet 3 encoding to be
  multi-octet.

  * Update dump and receive helper functions to search for the end of octet
  3 encoding to determine where octet 4 starts.

  ASTERISK-27342

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-07-20 23:22:46 +01:00
Daniel Golle 0b90add65c dahdi-linux: fix build with Linux 6.12
Import pending patch to fix build with Linux 6.12

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-07-19 22:50:05 +01:00
Philip Prindeville 46fedb3405 dahdi-tools: Update version to 3.4.0
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2025-06-04 22:38:07 +02:00
Philip Prindeville c80fd2d66d dahdi-linux: Update version to 3.4.0
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2025-06-04 11:09:50 +02:00
Hannu Nyman a7e3d78f1c gsmlib: Make version apk compatible
Adjust version to be compatible with apk's semantic rules.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2024-11-21 20:58:04 +02:00
Daniel Danzberger 0218f1e7ed rem: Remove library package
All librem features are now part of libre and the only package that
depended on it (baresip) now uses libre.

It can therefore be removed.

Signed-off-by: Daniel Danzberger <dd@embedd.com>
2024-11-12 17:27:03 +01:00
Daniel Danzberger 5578908054 re: Bump to version 3.16.0
The previous version 2.0.1 is about 7 years old now and a lot has
changed. Various fixes, improvements and features have been added.

The build system has moved to cmake and pkg-config is used,
which makes it a lot easier to build from the openwrt buildroot.
Therefore a lot of the extra code is removed from it's Makefile

Librem is now integrated into libre.
No more patches are required.

Signed-off-by: Daniel Danzberger <dd@embedd.com>
2024-11-12 17:27:03 +01:00
Christian Marangi 0a9ac6cc16 freetdm: add patch for PCRE2 support
As FreeSwitch implement different API to support pcre2, freetdm require
some changes to correctly compile.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-11-08 20:28:05 +01:00
Sebastian Kemper 81ecfdf34a Remove maintainer
As requested on openwrt-devel in October 2024 [1], remove maintainer,
including any copyright lines.

[1] https://lists.openwrt.org/pipermail/openwrt-devel/2024-October/043323.html

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2024-11-06 18:54:12 +01:00
Luca Olivetti 5be34a67d5 sofia-sip: removed "--disable-stun"
I need stun enabled to compile svd. 

Signed-off-by: Luca Olivetti <luca@ventoso.org>
2024-08-18 22:01:39 +02:00
Sebastian Kemper db2b0f2434 libks: bump to 2.0.6
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2024-08-04 18:28:48 +02:00
Daniel Golle 8ef219c850 pjproject: bump to 2.14.1
Pick patch from @dhewg so we keep pjproject in sync with the version
bundled with Asterisk.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-24 01:46:09 +01:00
micmac1 3ddc5811de Merge pull request #868 from neheb/4
libosip2: update to 5.3.1
2024-05-01 18:21:40 +02:00
Rosen Penev bfb4ef217a libosip2: update to 5.3.1
Fixes CVE-2022-41550. Added PKG_CPE_ID.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-04-26 15:48:38 -07:00
Rosen Penev a623e1aaf5 libsrtp: update to 2.6.0
Switch to local tarballs. Smaller.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-04-26 15:47:21 -07:00
Adam Duskett 06917fd5e8 libs/dahdi-linux: bump to latest git head
Add a new patch: 207-opvxa1200-unused-variable.patch which fixes
unused variable {pos,x,y} errors in the drivers/dahdi/opvxa1200/base.c
file.

Fixes compiling against linux >= 6.6

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
2024-04-16 12:19:04 -06:00
Robert Marko 22dd505025 treewide: refresh hashes after move to use ZSTD as default
With the recent move to using ZSTD as the default compression format for
packaging git repo clones we must refresh all of the hashes for the
packages feed as well.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-04-08 09:31:53 +02:00
Christian Marangi c60658b7db dahdi-linux: fix compilation for mips_24k arch
Fix compilation for mips_24k arch due to a define conflicts with ABS.

Patch has been proposed upstream and should be accepted.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-03-20 19:56:42 +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 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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