backport asterisk to bookworm

C. Maj chris at PenguinPBX.com
Mon Mar 4 21:55:12 GMT 2024


Howdy,

Very fine project and thank you to Jonas for keeping it up-to-date.

I've followed several discussions on lack of Asterisk in Bookworm, 
including the [Debian Bug report 
#1031046](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1031046) and 
a related [Asterisk forums 
topic](https://community.asterisk.org/t/status-and-perspectives-of-asterisk-package-on-debian-bookworm/97087), 
finally signing up for this mailing list and reading those threads over 
the past several months, as hopefully this is the place where it all 
comes together to get the backport back in action.

After installing all of the necessary dependencies and following the 
first few steps of the [VoiP team 
HOWTO](https://wiki.debian.org/Teams/VoIP), I was able to build the 
latest asterisk 20.6.0 LTS package on bookworm with the addition of one 
new file placed as debian/backports/bookworm... I think such an easy fix 
is testimony to the quality of the package in trixie!

The step-by-step from a Debian 12.2 minimal/ssh install:

$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo apt-get install asterisk-core-sounds-en-gsm git-buildpackage 
binutils-dev cmark-gfm dahdi-source default-libmysqlclient-dev 
freetds-dev libasound2-dev libavcodec-dev libavdevice-dev 
libbluetooth-dev libc-client2007e-dev libcap-dev libcodec2-dev 
libcurl4-openssl-dev libedit-dev libfftw3-dev libgmime-3.0-dev 
libgsm1-dev libical-dev libiksemel-dev libjack-dev libjansson-dev 
libjwt-dev libldap-dev liblua5.1-dev libncurses-dev libneon27-dev 
libnewt-dev libogg-dev libopencore-amrnb-dev libopencore-amrwb-dev 
libopenr2-dev libopus-dev libopusenc-dev libopusfile-dev libpopt-dev 
libpq-dev libpri-dev libradcli-dev libreadline-dev libresample1-dev 
libsdl-image1.2-dev libsndfile1-dev libsnmp-dev libspandsp-dev 
libspeex-dev libspeexdsp-dev libsqlite3-dev libsrtp2-dev libss7-dev 
libssl-dev libswscale-dev libsystemd-dev libtonezone-dev libunbound-dev 
liburiparser-dev libvo-amrwbenc-dev libvorbis-dev libxml2-dev 
libxslt1-dev portaudio19-dev libsystemd-dev unixodbc-dev

$ mkdir gbp-asterisk

$ cd gbp-asterisk

$ gbp clone https://salsa.debian.org/pkg-voip-team/asterisk

$ cd asterisk

$ cat <<EOF >> debian/backports/bookworm
#!/bin/sh

# Backport current Asterisk to  (Bookworm + pkg-voip packages):

sed -i -e 's#^ systemd-dev# libsystemd-dev#' debian/control

exit 0
EOF

$ sh debian/backports/bookworm

$ gbp buildpackage --git-ignore-new

$ cd ..

$ sudo dpkg -i asterisk*.deb

$ sudo /usr/sbin/asterisk -rx "core show version"

Asterisk 20.6.0~dfsg+~cs6.13.40431414-2 built by nobody @ 
buildd.debian.org on a unknown running Linux on 2024-01-30 10:42:08 UTC

Following up on chat to make this a thing...

Regards,

-- 
🤠 C. Maj, TechnoCaptain
🐧 Penguin PBX Solutions
📞 Denver 720-32-42-72-9
💡 Beyond 1-833-PNGN-PBX
🌐 http://PeNGuiNPBX.com




More information about the Pkg-voip-maintainers mailing list