Asterisk 16 and later require libjansson >= 2.11, which is not packaged with Ubuntu before 18.04, or CentOS before version 8. When it is known that libjansson >= 2.11 is not available as an operating system package, the Enswitch installer will configure the Asterisk installer to download it from the Internet.
On machines running CentOS:
- dnf install -y autoconf automake bzip2 elfutils-libelf-devel gsm-devel jansson-devel kernel-devel libcurl-devel libedit-devel libpng-devel libsrtp-devel libtiff-tools libtool libtool-ltdl libtool-ltdl-devel libuuid-devel libxml2-devel newt-devel sox speex-devel sqlite-devel spandsp spandsp-devel uuid-devel xmlstarlet
- cpanm Asterisk::AGI
On machines running Rocky Linux:
- dnf install -y kernel-devel # for Rocky 8
- dnf install -y kernel-devel-matched # for Rocky 9 and newer
- dnf install -y autoconf automake bzip2 elfutils-libelf-devel gsm-devel jansson-devel libcurl-devel libedit-devel libpng-devel libsrtp-devel libtiff-tools libtool libtool-ltdl libtool-ltdl-devel libuuid-devel libxml2-devel newt-devel sox speex-devel sqlite-devel spandsp spandsp-devel uuid-devel xmlstarlet
- cpanm Asterisk::AGI
On machines running Debian:
- apt-get install libsrtp0-dev # If this fails, use apt-get install libsrtp2-dev
- apt-get install autoconf bzip2 libcurl4-openssl-dev libedit-dev libgsm1-dev libjansson-dev libltdl7 libltdl-dev libpng-dev libnewt-dev libsox-fmt-all libsqlite3-dev libspandsp2 libspandsp-dev libxml2-dev linux-headers-`uname -r` pkg-config sox sqlite3 uuid-dev xmlstarlet
- cpanm Asterisk::AGI
On machines running Fedora:
- yum -y install autoconf automake bzip2 gsm-devel jansson-devel kernel-devel kernel-smp-devel libcurl-devel libedit-devel libpng-devel libsrtp-devel libtiff-tools libtool libtool-ltdl libtool-ltdl-devel libuuid-devel libxml2-devel newt-devel speex-devel sox sqlite-devel spandsp spandsp-devel uuid-devel xmlstarlet
- cpanm Asterisk::AGI
On machines running Redhat Enterprise:
- yum -y install autoconf automake bzip2 gsm-devel jansson-devel kernel-devel kernel-smp-devel libcurl-devel libedit-devel libpng-devel libsrtp-devel libtiff-tools libtool libtool-ltdl libtool-ltdl-devel libuuid-devel libxml2-devel newt-devel speex-devel sox sqlite-devel spandsp spandsp-devel uuid-devel xmlstarlet
- cpanm Asterisk::AGI
On machines running Ubuntu:
- apt-get install libsrtp0-dev # If this fails, use apt-get install libsrtp2-dev
- apt-get install autoconf autogen bzip2 libcurl4-openssl-dev libedit-dev libgsm1-dev libjansson-dev libltdl7 libltdl-dev libpng-dev libnewt-dev libsox-fmt-all libsqlite3-dev libspandsp2 libspandsp-dev libtool libxml2-dev linux-headers-`uname -r` pkg-config sox sqlite3 uuid-dev xmlstarlet
- cpanm Asterisk::AGI