Installation on Debian
Build dependencies
Quite a list, still it's not comprehensive.
sudo apt-get install fakeroot debhelper dpatch libcap-dev pkg-config \
libspandsp-dev libssl-dev libsndfile1-dev libpq-dev libmysqlclient15-dev \
libspeex-dev libcurl3-dev unixodbc-dev libcapi20-dev zaptel-source \
libreadline-dev autoconf automake sox doxygen libtool zaptel-source

Compilation
I used script from wiki to create Debian packages  which was slightly modified into make‑callweaver‑deb.sh  to support latest versions.
There is also minor fix callweaver‑debian‑fix.diff  to create correct .deb package, adding missing shared library.