Debian 12 doesn't come with Asterisk.
You could use Asterisk from Debian 11 / Bullseye;
Besides the Asterisk packages you need the following packages from Debian 11;
The rest comes from Debian 12;
You need to install libgnutls30 and libsasl2-2 from Debian 12 before you install libldap-2.4-2 and libssl1.1 from Debian 11!
Alternatively you could build a backport from
Sid / Unstable or
compile
from source downloaded from the
Asterisk
site.
I'm currently experimenting with a
Debian 12 AMD64 backport. That's an
upgrade from Asterisk 16.11.0 to 22.8.2!
In Debian 13, libgnutls30 is replaced by libgnutls30t64. As far as I can
tell these are incompatible.
From the libgnutls30t64 control file;
Breaks: libgnutls30 (<< 3.8.9-3+deb13u1) Replaces: libgnutls30 Provides: libgnutls30 (= 3.8.9-3+deb13u1)
So you need to build a backport from
Sid / Unstable or
compile
from source downloaded from the
Asterisk
site.
I'm hoping to make a Debian 13 AMD64 backport available at some point.