Commit graph

27 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Sebastian Kemper
522ca0de75 pjproject: use preferred standard C++ lib
Currently libstdc++ is hardcoded. Change that and use whatever standard
C++ lib has preference.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-13 12:04:38 +01:00
Sebastian Kemper
622de3d93f pjproject: bump to 2.7.1
- Update from 2.6 to 2.7.1.
- Update sed script because the TARGET_CFLAGS now occur twice in the .pc
  file.
- Upgrade dependency from libsrtp to libsrtp2.
- Drop patches that were included upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-11-14 22:59:21 +01:00
Sebastian Kemper
45e0c6a721 pjproject: add config_site.h
Copied from Asterisk, sets some sane values. For instance it enables
IPv6 support.

Also it disables DEBUG. With debug enabled 'pjproject enables "assert"
functions which can cause Asterisk to crash unexpectedly' (quote from
Asterisk wiki). This probably fixes issue #140.

With this config_site.h in place the libsrtp dep can be dropped from
select sub packages.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-09 22:52:24 +02:00
Sebastian Kemper
7fc4844b71 libs/pjproject: security revision bump
Add patches provided by Asterisk project for pjproject. This fixes the
following vulnerabilities:

- AST-2017-002: Buffer Overrun in PJSIP transaction layer (CVE-2017-9372)
- AST-2017-003: Crash in PJSIP multi-part body parser

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-29 14:04:00 +02:00
Jiri Slachta
927ddb060d pjproject: update to 2.6
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2017-05-08 17:24:36 +02:00
Daniel Golle
40d3a585a4 pjproject: fix build with musl
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-06-19 08:02:31 +02:00
Dirk Neukirchen
b503392f2e pjproject: use g++ as a linker
this seems to fix a strange error where the last stage
cannot find libgcc.a or libgcc.so

only compile tested

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2015-04-10 14:47:19 +02:00
Jiri Slachta
54a41da8cc pjproject: new package for upcoming asterisk-13.x introduced
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
2015-01-29 21:51:20 +01:00