Package: asterisk / 1:16.2.1~dfsg-1+deb10u1

Metadata

Package Version Patches format
asterisk 1:16.2.1~dfsg-1+deb10u1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
hack multiple app voicemail | (download)

Makefile.moddir_rules | 2 1 + 1 - 0 !
apps/Makefile | 20 20 + 0 - 0 !
2 files changed, 21 insertions(+), 1 deletion(-)

 build multiple versions of app_voicemail.so
 This is a very ugly hack on upstream's Makefiles to allow building
 multiple variants of app_voicemail. Three variants are created:
  * app_voicemail.so: plain old filesystem storage that doesn't break
    existing setups
  * app_voicemail_imapstorage.so: IMAP storage
  * app_voicemail_odbcstorage.so: ODBC storage
 All these conflict with each other and Asterisk will refuse to load
 them concurrently. They are thus included in three separate and
 complicting packages.
 .
 Patch suggested to upstream but rejected for being "hackish". Though
 upstream RPM packages include packages that are only somewhat cleaner.
astgenkey security | (download)

contrib/scripts/astgenkey | 4 4 + 0 - 0 !
1 file changed, 4 insertions(+)

 astgenkey should generate a private key that is not world-readable
 Upstream has not accepted this patch and chose instead to document this
 as a known minor issue.
sound_files | (download)

sounds/sounds.xml | 2 0 + 2 - 0 !
1 file changed, 2 deletions(-)

 avoid downloading extra sound files
 Asterisk configures several sound files to be installed that are not
 included in the distribution tarball. Those files are downloaded by the
 'install' target.
 .
 The exact files to be downloaded is configurable. Here we change the
 default to avoid downloading any. We believe those should be part of a
 separate source package (as they rarely change, and have their own
 versioning).
mpglib | (download)

addons/mp3/MPGLIB_README | 39 39 + 0 - 0 !
addons/mp3/MPGLIB_TODO | 2 2 + 0 - 0 !
addons/mp3/Makefile | 24 24 + 0 - 0 !
addons/mp3/README | 1 1 + 0 - 0 !
addons/mp3/common.c | 267 267 + 0 - 0 !
addons/mp3/dct64_i386.c | 335 335 + 0 - 0 !
addons/mp3/decode_i386.c | 153 153 + 0 - 0 !
addons/mp3/decode_ntom.c | 219 219 + 0 - 0 !
addons/mp3/huffman.h | 332 332 + 0 - 0 !
addons/mp3/interface.c | 325 325 + 0 - 0 !
addons/mp3/layer3.c | 2029 2029 + 0 - 0 !
addons/mp3/mpg123.h | 132 132 + 0 - 0 !
addons/mp3/mpglib.h | 75 75 + 0 - 0 !
addons/mp3/tabinit.c | 81 81 + 0 - 0 !
14 files changed, 4014 insertions(+)

 mpglib code originally in asterisk-addons
 The package asterisk-addons originally included mpglib. After the merge
 with asterisk, that code is no longer included and needs to be fetched
 (contrib/scripts/get_mpg_source.sh). This patch includes that fetched
 source (rev. 202).
 .
 TODO: get rid of this code and use libmpg123 or whatever.
enable_addons | (download)

addons/app_mysql.c | 1 0 + 1 - 0 !
addons/cdr_mysql.c | 1 0 + 1 - 0 !
addons/chan_mobile.c | 1 0 + 1 - 0 !
addons/chan_ooh323.c | 1 0 + 1 - 0 !
addons/format_mp3.c | 1 0 + 1 - 0 !
addons/res_config_mysql.c | 1 0 + 1 - 0 !
6 files changed, 6 deletions(-)

 enable modules formly from asterisk-addons
 The modules under addons/ are originally from the separate
 asterisk-addons package. As of asterisk 1.8 they are included in the
 main Asterisk distribution but not enabled by default. this patch
 enables them, as it seems valid in Debian.
 .
 format_mp3.c is not enabled, yet, though: the complete source is not
 included. See contrib/scripts/get_mp3_source.sh in the source tree.
ilbc_disable | (download)

codecs/Makefile | 1 0 + 1 - 0 !
codecs/codec_ilbc.c | 1 1 + 0 - 0 !
2 files changed, 1 insertion(+), 1 deletion(-)

 disable building codec_ilbc
 As we have to strip the ilbc code from asterisk, we need to disable
 building codec_ilbc and cleaning the ilbc/ directory.
 .
 Patch needs to be cleaned-up to be uploaded upstream.
 .
 FIXME: module now seems to potentially use libilbc. If it can be
 packaged into Debian, no reason to remove it.
astdatadir | (download)

configure.ac | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 place asterisk read-only data files under /usr/share
 On Debian read-only resources belong under /usr. The space taken from
 the writable /var should be minimized.
 .
 Upstream prefers defaults to have those files under /var/lib, though
 supports a separate datadir.
reenable | (download)

channels/chan_mgcp.c | 1 0 + 1 - 0 !
channels/chan_vpb.cc | 2 1 + 1 - 0 !
2 files changed, 1 insertion(+), 2 deletions(-)

 reenable some drivers
no_native_arch.patch | (download)

build_tools/cflags.xml | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 disable building asterisk with -march=native
Bug-Debian: https://bugs.debian.org/842917
smsq_enable.patch | (download)

utils/utils.xml | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 enable the smsq application.
aelparse_enable.patch | (download)

utils/utils.xml | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 enable the aelparse application.
systemd.patch | (download)

Makefile | 2 2 + 0 - 0 !
contrib/asterisk.service | 49 49 + 0 - 0 !
contrib/scripts/asterisk_cleanup | 18 18 + 0 - 0 !
contrib/scripts/live_ast | 38 38 + 0 - 0 !
4 files changed, 107 insertions(+)

 a systemd service
 Do away with safe_asterisk. But try very hard to let live_ast work with
 it.
test_framework.patch | (download)

build_tools/cflags-devmode.xml | 3 0 + 3 - 0 !
build_tools/cflags.xml | 4 4 + 0 - 0 !
2 files changed, 4 insertions(+), 3 deletions(-)

 enable the test framework
amr.patch | (download)

build_tools/menuselect-deps.in | 3 3 + 0 - 0 !
codecs/codec_amr.c | 405 405 + 0 - 0 !
codecs/ex_amr.h | 49 49 + 0 - 0 !
configure.ac | 7 7 + 0 - 0 !
include/asterisk/amr.h | 19 19 + 0 - 0 !
include/asterisk/format_cache.h | 10 10 + 0 - 0 !
main/codec_builtin.c | 50 50 + 0 - 0 !
main/format_cache.c | 16 16 + 0 - 0 !
main/rtp_engine.c | 6 6 + 0 - 0 !
makeopts.in | 7 7 + 0 - 0 !
res/res_format_attr_amr.c | 488 488 + 0 - 0 !
11 files changed, 1060 insertions(+)

 add amr and amr-wb codec modules supporting transcoding
 To add a codec for SIP/SDP (m=, rtmap, and ftmp), you create a format
 module in Asterisk: `codec_amr.patch` (for m= and rtmap) and
 `res/res_format_attr_amr.c` (for fmtp). However, this requires both
 call legs to support AMR (pass-through only). If one leg does not
 support AMR, the call has no audio. Or, if you use the pre-recorded
 voice and music files of Asterisk, these files cannot be heard, because
 they are not in AMR but in slin. Therefore, this repository adds not
 just a format module for the audio-codecs AMR and AMR-WB but a
 transcoding module as well: `codecs/codec_amr.c`.
 .
 This is an implementation of IETF
 [RFC 4867](http://tools.ietf.org/html/rfc4867). Sometimes, AMR is
 called AMR Narrowband (AMR-NB). AMR Wideband (ITU-T Recommendation
 G.722.2) is sometimes abbreviated W-AMR
 ([GSA](http://www.gsacom.com/hdvoice/)). GSMA Mobile
 [HD Voice](https://www.youtube.com/playlist?&list=PLj1MyDu3jckpSciPQ1Max0W6HDSaY8-n4)
 is AMR-WB. Research papers comparing AMR and AMR-WB with other audio
 codecs:
 [InterSpeech 2010](http://research.nokia.com/files/public/%5B12%5D_Interspeech%202010_Voice%20Quality%20Evaluation%20of%20Recent%20Open%20Source%20Codecs.pdf),
 [ICASSP 2010](http://research.nokia.com/files/public/%5B11%5D_ICASSP2010_Voice%20Quality%20Evaluation%20of%20Various%20Codecs.pdf),
 [InterSpeech 2011](http://research.nokia.com/files/public/%5B16%5D_InterSpeech2011_Voice_Quality_Characterization_of_IETF_Opus_Codec.pdf).
 Further
 [examples…](http://www.voiceage.com/Audio-Samples-Listening-Room.html)
ffmpeg detection.patch | (download)

configure.ac | 15 13 + 2 - 0 !
1 file changed, 13 insertions(+), 2 deletions(-)

 modernize autotools ffmpeg linking
 FFmpeg is a _family_ of libraries sharing an optional base subdir. That
 is not properly reflected in the autoconf detection logic, and makes it
 impossible to handle alternate location - e.g. when using Libav.
 .
 This patch queries pkg-config, used with recent FFmpeg, for files
 "libavcodec" and "libswscale", the family members currently used.
ffmpeg includes.patch | (download)

channels/console_video.h | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 include subdirs (not main dir) for ffmpeg paths
 Fix include FFmpeg headers from below /usr/include/ffmpeg/<libname>
 (this change requires -I/usr/include/ffmpeg).
build reproducibly | (download)

Makefile | 2 1 + 1 - 0 !
build_tools/make_build_h | 8 8 + 0 - 0 !
2 files changed, 9 insertions(+), 1 deletion(-)

---
autoreconf pjproject | (download)

third-party/pjproject/Makefile | 5 5 + 0 - 0 !
1 file changed, 5 insertions(+)

 update autoconf files for pjproject
 config.guess and config.sub for pjproject are six years old, this
 makes the build FTBFS on newer architectures like ppc64el.
 .
 Unfortunately the sources are only unpacked during the toplevel
 ./configure run, so we cannot solve this with dh_autoreconf
AST 2019 002.patch | (download)

res/res_pjsip_messaging.c | 9 6 + 3 - 0 !
1 file changed, 6 insertions(+), 3 deletions(-)

 [patch] res_pjsip_messaging:  check for body in in-dialog message

We now check that a body exists and it has a length > 0 before
attempting to process it.

ASTERISK-28447
Reported-by: Gil Richard

AST 2019 003.patch | (download)

channels/chan_sip.c | 8 7 + 1 - 0 !
1 file changed, 7 insertions(+), 1 deletion(-)

 [patch] chan_sip: handle invalid sdp answer to t.38 re-invite

The chan_sip module performs a T.38 re-invite using a single media
stream of udptl, and expects the SDP answer to be the same.

If an SDP answer is received instead that contains an additional
media stream with no joint codec a crash will occur as the code
assumes that at least one joint codec will exist in this
scenario.

This change removes this assumption.

ASTERISK-28465