How to install Asterisk on Oracle Linux 9.3
To Install Asterisk On Oracle Linux 9.3
Introduction:
Asterisk is a complete telephony server that provides Private Branch Exchange (PBX), Interactive Voice Response (IVR), Automated Call Distribution (ACD), Voice over IP (VoIP) gatewaying, Conferencing, and a wide variety of other telephony applications to a broad range of telephony devices including packet voice devices.
Installation Steps:
Step 1: Check the OS version by using the below command
[root@linuxhelp ~]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="9.3"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="9.3"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Oracle Linux Server 9.3"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:9:3:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://github.com/oracle/oracle-linux"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 9"
ORACLE_BUGZILLA_PRODUCT_VERSION=9.3
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=9.3
Step 2: Next change the directory to /usr/src directory because this is a convenient place to store all our installations.
[root@linuxhelp ~]# cd /usr/src
[root@linuxhelp src]#
Step 3: Download the asterisk source file by using the wget command
[root@linuxhelp src]# wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20-current.tar.gz
--2023-12-28 11:20:41-- https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20-current.tar.gz
Resolving downloads.asterisk.org (downloads.asterisk.org)... 165.22.184.19, 2604:a880:400:d0::14:9001
Connecting to downloads.asterisk.org (downloads.asterisk.org)|165.22.184.19|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 28215394 (27M) [application/octet-stream]
Saving to: ‘asterisk-20-current.tar.gz’
asterisk-20-current.tar.gz 100%[=================================================================================================================>] 26.91M 6.34MB/s in 5.2s
2023-12-28 11:20:48 (5.15 MB/s) - ‘asterisk-20-current.tar.gz’ saved [28215394/28215394]
Step 4: After downloading long list the files by using the below command.
[root@linuxhelp src]# ll
total 27556
-rw-r--r--. 1 root root 28215394 Dec 20 21:54 asterisk-20-current.tar.gz
drwxr-xr-x. 2 root root 6 Jan 10 2022 debug
drwxr-xr-x. 2 root root 6 Jan 10 2022 kernels
Step 5: Extract the downloaded Asterisk source file by using the tar command
[root@linuxhelp src]# tar xvfz asterisk-20-current.tar.gz
asterisk-20.5.2/
asterisk-20.5.2/.cleancount
asterisk-20.5.2/.gitignore
asterisk-20.5.2/.lastclean
asterisk-20.5.2/.version
asterisk-20.5.2/BSDmakefile
asterisk-20.5.2/BUGS
asterisk-20.5.2/CHANGES.md
asterisk-20.5.2/COPYING
asterisk-20.5.2/CREDITS
asterisk-20.5.2/ChangeLogs/
asterisk-20.5.2/ChangeLogs/ChangeLog-20.3.0.md
asterisk-20.5.2/ChangeLogs/ChangeLog-20.3.1.md
asterisk-20.5.2/ChangeLogs/ChangeLog-20.4.0.md
asterisk-20.5.2/ChangeLogs/ChangeLog-20.5.0.md
asterisk-20.5.2/ChangeLogs/ChangeLog-20.5.1.md
asterisk-20.5.2/ChangeLogs/ChangeLog-20.5.2.md
asterisk-20.5.2/ChangeLogs/historical/
asterisk-20.5.2/ChangeLogs/historical/CHANGES
asterisk-20.5.2/ChangeLogs/historical/ChangeLog
asterisk-20.5.2/LICENSE
asterisk-20.5.2/Makefile
asterisk-20.5.2/Makefile.moddir_rules
asterisk-20.5.2/Makefile.rules
asterisk-20.5.2/README-SERIOUSLY.bestpractices.md
asterisk-20.5.2/README-addons.txt
asterisk-20.5.2/README.md
asterisk-20.5.2/SECURITY.md
asterisk-20.5.2/UPGRADE.txt
asterisk-20.5.2/Zaptel-to-DAHDI.txt
asterisk-20.5.2/addons/
asterisk-20.5.2/addons/.gitignore
asterisk-20.5.2/addons/Makefile
asterisk-20.5.2/addons/chan_mobile.c
asterisk-20.5.2/addons/chan_ooh323.c
asterisk-20.5.2/addons/chan_ooh323.h
asterisk-20.5.2/addons/format_mp3.c
asterisk-20.5.2/addons/ooh323c/
asterisk-20.5.2/addons/ooh323c/COPYING
asterisk-20.5.2/addons/ooh323c/README
asterisk-20.5.2/addons/ooh323c/src/
Step 6: Go the extracted directory and run the below command to install the init script for svn chkconfig
[root@linuxhelp src]# cd asterisk-20.5.2/
[root@linuxhelp asterisk-20.5.2]# dnf install -y initscripts svn chkconfig
Last metadata expiration check: 1:37:26 ago on Thursday 28 December 2023 09:45:45 AM.
Package chkconfig-1.24-1.0.1.el9.x86_64 is already installed.
Dependencies resolved.
==============================================================================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================================================================
Installing:
initscripts x86_64 10.11.5-1.el9 ol9_baseos_latest 287 k
subversion x86_64 1.14.1-5.el9_0 ol9_appstream 1.0 M
Installing dependencies:
apr x86_64 1.7.0-12.el9_3 ol9_appstream 131 k
apr-util x86_64 1.6.1-23.el9 ol9_appstream 99 k
apr-util-bdb x86_64 1.6.1-23.el9 ol9_appstream 12 k
libserf x86_64 1.3.9-26.el9 ol9_appstream 57 k
subversion-libs x86_64 1.14.1-5.el9_0 ol9_appstream 1.5 M
utf8proc x86_64 2.6.1-4.el9 ol9_appstream 80 k
Installing weak dependencies:
apr-util-openssl x86_64 1.6.1-23.el9 ol9_appstream 14 k
Transaction Summary
==============================================================================================================================================================================================================
Install 9 Packages
Total download size: 3.2 M
Installed size: 12 M
Downloading Packages:
(1/9): apr-util-1.6.1-23.el9.x86_64.rpm 449 kB/s | 99 kB 00:00
(2/9): apr-util-bdb-1.6.1-23.el9.x86_64.rpm 671 kB/s | 12 kB 00:00
(3/9): initscripts-10.11.5-1.el9.x86_64.rpm 1.1 MB/s | 287 kB 00:00
(4/9): apr-util-openssl-1.6.1-23.el9.x86_64.rpm 832 kB/s | 14 kB 00:00
(5/9): libserf-1.3.9-26.el9.x86_64.rpm 3.9 MB/s | 57 kB 00:00
(6/9): apr-1.7.0-12.el9_3.x86_64.rpm 472 kB/s | 131 kB 00:00
(7/9): utf8proc-2.6.1-4.el9.x86_64.rpm 2.0 MB/s | 80 kB 00:00
(8/9): subversion-1.14.1-5.el9_0.x86_64.rpm 12 MB/s | 1.0 MB 00:00
(9/9): subversion-libs-1.14.1-5.el9_0.x86_64.rpm 16 MB/s | 1.5 MB 00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 8.8 MB/s | 3.2 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : apr-1.7.0-12.el9_3.x86_64 1/9
Installing : apr-util-bdb-1.6.1-23.el9.x86_64 2/9
Installing : apr-util-openssl-1.6.1-23.el9.x86_64 3/9
Installing : apr-util-1.6.1-23.el9.x86_64 4/9
Installing : libserf-1.3.9-26.el9.x86_64 5/9
Installing : utf8proc-2.6.1-4.el9.x86_64 6/9
Installing : subversion-libs-1.14.1-5.el9_0.x86_64 7/9
Installing : subversion-1.14.1-5.el9_0.x86_64 8/9
Running scriptlet: subversion-1.14.1-5.el9_0.x86_64 8/9
Installing : initscripts-10.11.5-1.el9.x86_64 9/9
Running scriptlet: initscripts-10.11.5-1.el9.x86_64 9/9
Created symlink /etc/systemd/system/sysinit.target.wants/import-state.service → /usr/lib/systemd/system/import-state.service.
Created symlink /etc/systemd/system/sysinit.target.wants/loadmodules.service → /usr/lib/systemd/system/loadmodules.service.
Verifying : initscripts-10.11.5-1.el9.x86_64 1/9
Verifying : apr-1.7.0-12.el9_3.x86_64 2/9
Verifying : apr-util-1.6.1-23.el9.x86_64 3/9
Verifying : apr-util-bdb-1.6.1-23.el9.x86_64 4/9
Verifying : apr-util-openssl-1.6.1-23.el9.x86_64 5/9
Verifying : libserf-1.3.9-26.el9.x86_64 6/9
Verifying : subversion-1.14.1-5.el9_0.x86_64 7/9
Verifying : subversion-libs-1.14.1-5.el9_0.x86_64 8/9
Verifying : utf8proc-2.6.1-4.el9.x86_64 9/9
Installed:
apr-1.7.0-12.el9_3.x86_64 apr-util-1.6.1-23.el9.x86_64 apr-util-bdb-1.6.1-23.el9.x86_64 apr-util-openssl-1.6.1-23.el9.x86_64 initscripts-10.11.5-1.el9.x86_64 libserf-1.3.9-26.el9.x86_64
subversion-1.14.1-5.el9_0.x86_64 subversion-libs-1.14.1-5.el9_0.x86_64 utf8proc-2.6.1-4.el9.x86_64
Complete!
Step 7: Download the mp3 decoder library by using the below command.
[root@linuxhelp asterisk-20.5.2]# ./contrib/scripts/get_mp3_source.sh
A addons/mp3
A addons/mp3/Makefile
A addons/mp3/README
A addons/mp3/decode_i386.c
A addons/mp3/dct64_i386.c
A addons/mp3/MPGLIB_TODO
A addons/mp3/mpg123.h
A addons/mp3/layer3.c
A addons/mp3/mpglib.h
A addons/mp3/decode_ntom.c
A addons/mp3/interface.c
A addons/mp3/MPGLIB_README
A addons/mp3/common.c
A addons/mp3/huffman.h
A addons/mp3/tabinit.c
Exported revision 204.
Step 8: Install the prerequisites for Asterisk Installation by using the below command
[root@linuxhelp asterisk-20.5.2]# contrib/scripts/install_prereq install
Last metadata expiration check: 1:48:53 ago on Thursday 28 December 2023 09:45:45 AM.
Package pkgconf-pkg-config-1.7.3-10.el9.x86_64 is already installed.
No match for argument: jansson-devel
No match for argument: speex-devel
No match for argument: speexdsp-devel
No match for argument: libogg-devel
No match for argument: libvorbis-devel
No match for argument: portaudio-devel
No match for argument: unixODBC-devel
No match for argument: neon-devel
No match for argument: gmime-devel
No match for argument: lua-devel
No match for argument: uriparser-devel
No match for argument: mysql-devel
No match for argument: bluez-libs-devel
No match for argument: radcli-devel
No match for argument: freetds-devel
No match for argument: jack-audio-connection-kit-devel
No match for argument: iksemel-devel
No match for argument: corosynclib-devel
No match for argument: spandsp-devel
No match for argument: libresample-devel
No match for argument: uw-imap-devel
No match for argument: libsrtp-devel
No match for argument: gsm-devel
No match for argument: doxygen
No match for argument: hoard
No match for argument: codec2-devel
No match for argument: libsndfile-devel
No match for argument: unbound-devel
Dependencies resolved.
==============================================================================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================================================================
Installing:
alsa-lib-devel x86_64 1.2.9-1.el9 ol9_appstream 1.4 M
binutils-devel x86_64 2.35.2-42.0.1.el9 ol9_appstream 4.2 M
bison x86_64 3.7.4-5.el9 ol9_appstream 1.0 M
fftw-devel x86_64 3.3.8-12.el9 ol9_appstream 155 k
flex x86_64 2.6.4-9.el9 ol9_appstream 341 k
gcc x86_64 11.4.1-2.1.0.1.el9 ol9_appstream 32 M
gcc-c++ x86_64 11.4.1-2.1.0.1.el9 ol9_appstream 13 M
graphviz x86_64 2.44.0-25.el9 ol9_appstream 3.4 M
libcap-devel x86_64 2.48-9.el9_2 ol9_appstream 79 k
libcurl-devel x86_64 7.76.1-26.el9_3.2 ol9_appstream 1.4 M
libedit-devel x86_64 3.1-38.20210216cvs.el9 ol9_appstream 47 k
libical-devel x86_64 3.0.14-1.el9 ol9_appstream 153 k
libpq-devel x86_64 13.11-1.el9 ol9_appstream 127 k
libuuid-devel x86_64 2.37.4-15.0.1.el9 ol9_appstream 39 k
libxml2-devel x86_64 2.9.13-5.el9_3 ol9_appstream 1.1 M
libxslt-devel x86_64 1.1.34-9.0.1.el9 ol9_appstream 442 k
make x86_64 1:4.3-7.el9 ol9_baseos_latest 571 k
net-snmp-devel x86_64 1:5.9.1-11.0.3.el9_3.1 ol9_appstream 553 k
newt-devel x86_64 0.52.21-11.el9 ol9_appstream 34 k
openldap-devel x86_64 2.6.3-1.el9 ol9_appstream 982 k
openssl-devel x86_64 1:3.0.7-24.0.1.el9 ol9_appstream 3.7 M
patch x86_64 2.7.6-16.el9 ol9_appstream 132 k
popt-devel x86_64 1.18-8.el9 ol9_appstream 26 k
sqlite-devel x86_64 3.34.1-6.el9_1 ol9_appstream 134 k
xmlstarlet x86_64 1.6.1-20.el9 ol9_appstream 74 k
zlib-devel x86_64 1.2.11-40.el9 ol9_appstream 51 k
Upgrading:
libblkid x86_64 2.37.4-15.0.1.el9 ol9_baseos_latest 107 k
libfdisk x86_64 2.37.4-15.0.1.el9 ol9_baseos_latest 154 k
libmount x86_64 2.37.4-15.0.1.el9 ol9_baseos_latest 134 k
libsmartcols x86_64 2.37.4-15.0.1.el9 ol9_baseos_latest 63 k
libuuid x86_64 2.37.4-15.0.1.el9 ol9_baseos_latest 28 k
net-snmp-libs x86_64 1:5.9.1-11.0.3.el9_3.1 ol9_appstream 817 k
util-linux x86_64 2.37.4-15.0.1.el9 ol9_baseos_latest 2.5 M
util-linux-core x86_64 2.37.4-15.0.1.el9 ol9_baseos_latest 519 k
util-linux-user x86_64 2.37.4-15.0.1.el9 ol9_baseos_latest 39 k
Installing dependencies:
annobin x86_64 12.12-1.el9 ol9_appstream 987 k
cmake-filesystem x86_64 3.20.2-9.el9_3 ol9_appstream 10 k
cyrus-sasl x86_64 2.1.27-21.el9 ol9_baseos_latest 84 k
cyrus-sasl-devel x86_64 2.1.27-21.el9 ol9_appstream 157 k
dtrace x86_64 2.0.0-1.13.1.el9 ol9_UEKR7 2.8 M
dwz x86_64 0.14-3.el9 ol9_appstream 133 k
efi-srpm-macros noarch 6-2.0.1.el9_0 ol9_appstream 26 k
elfutils-devel x86_64 0.189-3.el9 ol9_appstream 58 k
elfutils-libelf-devel x86_64 0.189-3.el9 ol9_appstream 30 k
fftw x86_64 3.3.8-12.el9 ol9_appstream 55 k
fftw-libs x86_64 3.3.8-12.el9 ol9_appstream 7.7 k
fftw-libs-double x86_64 3.3.8-12.el9 ol9_appstream 920 k
fftw-libs-long x86_64 3.3.8-12.el9 ol9_appstream 513 k
fftw-libs-quad x86_64 3.3.8-12.el9 ol9_appstream 885 k
fftw-libs-single x86_64 3.3.8-12.el9 ol9_appstream 946 k
fonts-srpm-macros noarch 1:2.0.5-7.el9.1 ol9_appstream 32 k
gcc-plugin-annobin x86_64 11.4.1-2.1.0.1.el9 ol9_appstream 48 k
ghc-srpm-macros noarch 1.5.0-6.el9 ol9_appstream 8.7 k
glibc-devel x86_64 2.34-83.0.1.el9_3.7 ol9_appstream 44 k
glibc-headers x86_64 2.34-83.0.1.el9_3.7 ol9_appstream 896 k
go-srpm-macros noarch 3.2.0-2.el9 ol9_appstream 30 k
gtk2 x86_64 2.24.33-8.el9 ol9_appstream 3.6 M
ibus-gtk2 x86_64 1.5.25-2.el9 ol9_appstream 26 k
kernel-headers x86_64 5.14.0-362.13.1.el9_3 ol9_appstream 7.4 M
kernel-srpm-macros noarch 1.0-13.0.1.el9 ol9_appstream 21 k
libXaw x86_64 1.0.13-19.el9 ol9_appstream 198 k
libgpg-error-devel x86_64 1.42-5.el9 ol9_appstream 76 k
libicu-devel x86_64 67.1-9.el9 ol9_appstream 1.3 M
libpfm x86_64 4.13.0-4.el9 ol9_appstream 357 k
libpq x86_64 13.11-1.el9 ol9_appstream 216 k
libquadmath x86_64 11.4.1-2.1.0.1.el9 ol9_baseos_latest 197 k
libstdc++-devel x86_64 11.4.1-2.1.0.1.el9 ol9_appstream 3.1 M
libxcrypt-devel x86_64 4.4.18-3.el9 ol9_appstream 42 k
libzstd-devel x86_64 1.5.1-2.el9 ol9_appstream 51 k
lm_sensors-devel x86_64 3.6.0-10.el9 ol9_appstream 18 k
lm_sensors-libs x86_64 3.6.0-10.el9 ol9_appstream 42 k
lua-srpm-macros noarch 1-6.el9 ol9_appstream 9.4 k
m4 x86_64 1.4.19-1.el9 ol9_appstream 333 k
mariadb-connector-c x86_64 3.2.6-1.el9_0 ol9_appstream 205 k
mariadb-connector-c-config noarch 3.2.6-1.el9_0 ol9_appstream 9.7 k
mkfontscale x86_64 1.2.1-3.el9 ol9_appstream 37 k
ncurses-c++-libs x86_64 6.2-10.20210508.el9 ol9_appstream 36 k
ncurses-devel x86_64 6.2-10.20210508.el9 ol9_appstream 684 k
net-snmp-agent-libs x86_64 1:5.9.1-11.0.3.el9_3.1 ol9_appstream 697 k
ocaml-srpm-macros noarch 6-6.el9 ol9_appstream 8.7 k
openblas-srpm-macros noarch 2-11.el9 ol9_appstream 8.3 k
perl-AutoSplit noarch 5.74-480.el9 ol9_appstream 22 k
perl-Benchmark noarch 1.23-480.el9 ol9_appstream 27 k
perl-CPAN-Meta-Requirements noarch 2.140-461.el9 ol9_appstream 38 k
perl-CPAN-Meta-YAML noarch 0.018-461.el9 ol9_appstream 31 k
perl-Devel-PPPort x86_64 3.62-4.el9 ol9_appstream 220 k
perl-ExtUtils-Command noarch 2:7.60-3.el9 ol9_appstream 15 k
perl-ExtUtils-Constant noarch 0.25-480.el9 ol9_appstream 56 k
perl-ExtUtils-Install noarch 2.20-4.el9 ol9_appstream 53 k
perl-ExtUtils-MakeMaker noarch 2:7.60-3.el9 ol9_appstream 352 k
perl-ExtUtils-Manifest noarch 1:1.73-4.el9 ol9_appstream 40 k
perl-ExtUtils-ParseXS noarch 1:3.40-460.el9 ol9_appstream 212 k
perl-File-Compare noarch 1.100.600-480.el9 ol9_appstream 13 k
perl-File-Copy noarch 2.34-480.el9 ol9_appstream 20 k
perl-I18N-Langinfo x86_64 0.19-480.el9 ol9_appstream 22 k
perl-JSON-PP noarch 1:4.06-4.el9 ol9_appstream 74 k
perl-Test-Harness noarch 1:3.42-461.el9 ol9_appstream 387 k
perl-devel x86_64 4:5.32.1-480.el9 ol9_appstream 749 k
perl-lib x86_64 0.65-480.el9 ol9_appstream 15 k
perl-srpm-macros noarch 1-41.el9 ol9_appstream 9.1 k
perl-version x86_64 7:0.99.28-4.el9 ol9_appstream 74 k
pyproject-srpm-macros noarch 1.9.0-1.el9 ol9_appstream 14 k
python-srpm-macros noarch 3.9-52.el9 ol9_appstream 22 k
qt5-srpm-macros noarch 5.15.9-1.el9 ol9_appstream 7.7 k
redhat-rpm-config noarch 201-1.el9 ol9_appstream 102 k
rpm-devel x86_64 4.16.1.3-25.el9 ol9_appstream 119 k
rust-srpm-macros noarch 17-4.el9 ol9_appstream 10 k
slang-devel x86_64 2.3.2-11.el9 ol9_appstream 202 k
sqlite x86_64 3.34.1-6.el9_1 ol9_appstream 747 k
xorg-x11-fonts-ISO8859-1-100dpi noarch 7.5-33.el9 ol9_appstream 1.2 M
xz-devel x86_64 5.2.5-8.el9_0 ol9_appstream 77 k
Installing weak dependencies:
adwaita-gtk2-theme x86_64 3.28-14.el9 ol9_appstream 495 k
libcanberra-gtk2 x86_64 0.30-27.el9 ol9_appstream 25 k
perl-CPAN-Meta noarch 2.150010-460.el9 ol9_appstream 292 k
perl-Encode-Locale noarch 1.05-21.el9 ol9_appstream 20 k
perl-Time-HiRes x86_64 4:1.9764-462.el9 ol9_appstream 64 k
perl-doc noarch 5.32.1-480.el9 ol9_appstream 4.9 M
Transaction Summary
==============================================================================================================================================================================================================
Install 108 Packages
Upgrade 9 Packages
Total download size: 107 M
Downloading Packages:
(1/117): libquadmath-11.4.1-2.1.0.1.el9.x86_64.rpm 879 kB/s | 197 kB 00:00
(2/117): cyrus-sasl-2.1.27-21.el9.x86_64.rpm 205 kB/s | 84 kB 00:00
(3/117): make-4.3-7.el9.x86_64.rpm 1.3 MB/s | 571 kB 00:00
(4/117): adwaita-gtk2-theme-3.28-14.el9.x86_64.rpm 2.2 MB/s | 495 kB 00:00
(5/117): alsa-lib-devel-1.2.9-1.el9.x86_64.rpm 13 MB/s | 1.4 MB 00:00
(6/117): annobin-12.12-1.el9.x86_64.rpm 9.8 MB/s | 987 kB 00:00
(7/117): cmake-filesystem-3.20.2-9.el9_3.x86_64.rpm 722 kB/s | 10 kB 00:00
(8/117): cyrus-sasl-devel-2.1.27-21.el9.x86_64.rpm 2.5 MB/s | 157 kB 00:00
(9/117): bison-3.7.4-5.el9.x86_64.rpm 8.7 MB/s | 1.0 MB 00:00
(10/117): binutils-devel-2.35.2-42.0.1.el9.x86_64.rpm 19 MB/s | 4.2 MB 00:00
(11/117): efi-srpm-macros-6-2.0.1.el9_0.noarch.rpm 577 kB/s | 26 kB 00:00
(12/117): dwz-0.14-3.el9.x86_64.rpm 2.0 MB/s | 133 kB 00:00
(13/117): elfutils-devel-0.189-3.el9.x86_64.rpm 4.3 MB/s | 58 kB 00:00
(14/117): elfutils-libelf-devel-0.189-3.el9.x86_64.rpm 2.6 MB/s | 30 kB 00:00
(15/117): fftw-3.3.8-12.el9.x86_64.rpm 4.0 MB/s | 55 kB 00:00
(16/117): fftw-devel-3.3.8-12.el9.x86_64.rpm 4.1 MB/s | 155 kB 00:00
Upgraded:
libblkid-2.37.4-15.0.1.el9.x86_64 libfdisk-2.37.4-15.0.1.el9.x86_64 libmount-2.37.4-15.0.1.el9.x86_64 libsmartcols-2.37.4-15.0.1.el9.x86_64 libuuid-2.37.4-15.0.1.el9.x86_64
net-snmp-libs-1:5.9.1-11.0.3.el9_3.1.x86_64 util-linux-2.37.4-15.0.1.el9.x86_64 util-linux-core-2.37.4-15.0.1.el9.x86_64 util-linux-user-2.37.4-15.0.1.el9.x86_64
Installed:
adwaita-gtk2-theme-3.28-14.el9.x86_64 alsa-lib-devel-1.2.9-1.el9.x86_64 annobin-12.12-1.el9.x86_64 binutils-devel-2.35.2-42.0.1.el9.x86_64
bison-3.7.4-5.el9.x86_64 cmake-filesystem-3.20.2-9.el9_3.x86_64 cyrus-sasl-2.1.27-21.el9.x86_64 cyrus-sasl-devel-2.1.27-21.el9.x86_64
dtrace-2.0.0-1.13.1.el9.x86_64 dwz-0.14-3.el9.x86_64 efi-srpm-macros-6-2.0.1.el9_0.noarch elfutils-devel-0.189-3.el9.x86_64
elfutils-libelf-devel-0.189-3.el9.x86_64 fftw-3.3.8-12.el9.x86_64 fftw-devel-3.3.8-12.el9.x86_64 fftw-libs-3.3.8-12.el9.x86_64
fftw-libs-double-3.3.8-12.el9.x86_64 fftw-libs-long-3.3.8-12.el9.x86_64 fftw-libs-quad-3.3.8-12.el9.x86_64 fftw-libs-single-3.3.8-12.el9.x86_64
flex-2.6.4-9.el9.x86_64 fonts-srpm-macros-1:2.0.5-7.el9.1.noarch gcc-11.4.1-2.1.0.1.el9.x86_64 gcc-c++-11.4.1-2.1.0.1.el9.x86_64
gcc-plugin-annobin-11.4.1-2.1.0.1.el9.x86_64 ghc-srpm-macros-1.5.0-6.el9.noarch glibc-devel-2.34-83.0.1.el9_3.7.x86_64 glibc-headers-2.34-83.0.1.el9_3.7.x86_64
go-srpm-macros-3.2.0-2.el9.noarch graphviz-2.44.0-25.el9.x86_64 gtk2-2.24.33-8.el9.x86_64 ibus-gtk2-1.5.25-2.el9.x86_64
kernel-headers-5.14.0-362.13.1.el9_3.x86_64 kernel-srpm-macros-1.0-13.0.1.el9.noarch libXaw-1.0.13-19.el9.x86_64 libcanberra-gtk2-0.30-27.el9.x86_64
libcap-devel-2.48-9.el9_2.x86_64 libcurl-devel-7.76.1-26.el9_3.2.x86_64 libedit-devel-3.1-38.20210216cvs.el9.x86_64 libgpg-error-devel-1.42-5.el9.x86_64
libical-devel-3.0.14-1.el9.x86_64 libicu-devel-67.1-9.el9.x86_64 libpfm-4.13.0-4.el9.x86_64 libpq-13.11-1.el9.x86_64
libpq-devel-13.11-1.el9.x86_64 libquadmath-11.4.1-2.1.0.1.el9.x86_64 libstdc++-devel-11.4.1-2.1.0.1.el9.x86_64 libuuid-devel-2.37.4-15.0.1.el9.x86_64
libxcrypt-devel-4.4.18-3.el9.x86_64 libxml2-devel-2.9.13-5.el9_3.x86_64 libxslt-devel-1.1.34-9.0.1.el9.x86_64 libzstd-devel-1.5.1-2.el9.x86_64
lm_sensors-devel-3.6.0-10.el9.x86_64 lm_sensors-libs-3.6.0-10.el9.x86_64 lua-srpm-macros-1-6.el9.noarch m4-1.4.19-1.el9.x86_64
make-1:4.3-7.el9.x86_64 mariadb-connector-c-3.2.6-1.el9_0.x86_64 mariadb-connector-c-config-3.2.6-1.el9_0.noarch mkfontscale-1.2.1-3.el9.x86_64
ncurses-c++-libs-6.2-10.20210508.el9.x86_64 ncurses-devel-6.2-10.20210508.el9.x86_64 net-snmp-agent-libs-1:5.9.1-11.0.3.el9_3.1.x86_64 net-snmp-devel-1:5.9.1-11.0.3.el9_3.1.x86_64
newt-devel-0.52.21-11.el9.x86_64 ocaml-srpm-macros-6-6.el9.noarch openblas-srpm-macros-2-11.el9.noarch openldap-devel-2.6.3-1.el9.x86_64
openssl-devel-1:3.0.7-24.0.1.el9.x86_64 patch-2.7.6-16.el9.x86_64 perl-AutoSplit-5.74-480.el9.noarch perl-Benchmark-1.23-480.el9.noarch
perl-CPAN-Meta-2.150010-460.el9.noarch perl-CPAN-Meta-Requirements-2.140-461.el9.noarch perl-CPAN-Meta-YAML-0.018-461.el9.noarch perl-Devel-PPPort-3.62-4.el9.x86_64
perl-Encode-Locale-1.05-21.el9.noarch perl-ExtUtils-Command-2:7.60-3.el9.noarch perl-ExtUtils-Constant-0.25-480.el9.noarch perl-ExtUtils-Install-2.20-4.el9.noarch
perl-ExtUtils-MakeMaker-2:7.60-3.el9.noarch perl-ExtUtils-Manifest-1:1.73-4.el9.noarch perl-ExtUtils-ParseXS-1:3.40-460.el9.noarch perl-File-Compare-1.100.600-480.el9.noarch
perl-File-Copy-2.34-480.el9.noarch perl-I18N-Langinfo-0.19-480.el9.x86_64 perl-JSON-PP-1:4.06-4.el9.noarch perl-Test-Harness-1:3.42-461.el9.noarch
perl-Time-HiRes-4:1.9764-462.el9.x86_64 perl-devel-4:5.32.1-480.el9.x86_64 perl-doc-5.32.1-480.el9.noarch perl-lib-0.65-480.el9.x86_64
perl-srpm-macros-1-41.el9.noarch perl-version-7:0.99.28-4.el9.x86_64 popt-devel-1.18-8.el9.x86_64 pyproject-srpm-macros-1.9.0-1.el9.noarch
python-srpm-macros-3.9-52.el9.noarch qt5-srpm-macros-5.15.9-1.el9.noarch redhat-rpm-config-201-1.el9.noarch rpm-devel-4.16.1.3-25.el9.x86_64
rust-srpm-macros-17-4.el9.noarch slang-devel-2.3.2-11.el9.x86_64 sqlite-3.34.1-6.el9_1.x86_64 sqlite-devel-3.34.1-6.el9_1.x86_64
xmlstarlet-1.6.1-20.el9.x86_64 xorg-x11-fonts-ISO8859-1-100dpi-7.5-33.el9.noarch xz-devel-5.2.5-8.el9_0.x86_64 zlib-devel-1.2.11-40.el9.x86_64
Complete!
#############################################
## install completed successfully
#############################################
Step 9: Now run the Asterisk configure script by using the below command
[root@linuxhelp asterisk-20.5.2]# ./configure --libdir=/usr/lib64 --with-jansson-bundled
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether char is unsigned... no
checking for uname... /usr/bin/uname
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... g++ -E
checking for a sed that does not truncate output... /usr/bin/sed
configure: creating ./config.status
config.status: creating makeopts
config.status: creating autoconfig.h
configure: Menuselect build configuration successfully completed
.$$$$$$$$$$$$$$$=..
.$7$7.. .7$$7:.
.$$:. ,$7.7
.$7. 7$$$$ .$$77
..$$. $$$$$ .$$$7
..7$ .?. $$$$$ .?. 7$$$.
$.$. .$$$7. $$$$7 .7$$$. .$$$.
.777. .$$$$$$77$$$77$$$$$7. $$$,
$$$~ .7$$$$$$$$$$$$$7. .$$$.
.$$7 .7$$$$$$$7: ?$$$.
$$$ ?7$$$$$$$$$$I .$$$7
$$$ .7$$$$$$$$$$$$$$$$ :$$$.
$$$ $$$$$$7$$$$$$$$$$$$ .$$$.
$$$ $$$ 7$$$7 .$$$ .$$$.
$$$$ $$$$7 .$$$.
7$$$7 7$$$$ 7$$$
$$$$$ $$$
$$$$7. $$ (TM)
$$$$$$$. .7$$$$$$ $$
$$$$$$$$$$$$7$$$$$$$$$.$$$$$$
$$$$$$$$$$$$$$$$.
configure: Package configured for:
configure: OS type : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : pc : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : pc : linux-gnu :
Step 10: Run the make menuselect command and make selections based on your requirements.
[root@linuxhelp asterisk-20.5.2]# make menuselect
CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" cmenuselect
make[1]: Entering directory '/usr/src/asterisk-20.5.2/menuselect'
gcc -g -D_GNU_SOURCE -Wall -Wno-deprecated-declarations -DHAVE_NCURSES -I/usr/include/libxml2 -c -o menuselect.o menuselect.c
gcc -g -D_GNU_SOURCE -Wall -Wno-deprecated-declarations -DHAVE_NCURSES -c -o strcompat.o strcompat.c
gcc -g -D_GNU_SOURCE -Wall -Wno-deprecated-declarations -DHAVE_NCURSES -c -o menuselect_curses.o menuselect_curses.c
gcc -o cmenuselect menuselect.o strcompat.o menuselect_curses.o -lncurses -ltinfo -lxml2
make[1]: Leaving directory '/usr/src/asterisk-20.5.2/menuselect'
CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" nmenuselect
make[1]: Entering directory '/usr/src/asterisk-20.5.2/menuselect'
gcc -g -D_GNU_SOURCE -Wall -Wno-deprecated-declarations -DHAVE_NCURSES -c -o menuselect_newt.o menuselect_newt.c
gcc -o nmenuselect menuselect.o strcompat.o menuselect_newt.o -lnewt -lxml2
make[1]: Leaving directory '/usr/src/asterisk-20.5.2/menuselect'
CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" gmenuselect
make[1]: Entering directory '/usr/src/asterisk-20.5.2/menuselect'
make[1]: Nothing to be done for 'gmenuselect'.
make[1]: Leaving directory '/usr/src/asterisk-20.5.2/menuselect'
make[1]: Entering directory '/usr/src/asterisk-20.5.2'
Generating input for menuselect ...
CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" cmenuselect
make[1]: Entering directory '/usr/src/asterisk-20.5.0/menuselect'
gcc -g -D_GNU_SOURCE -Wall -Wno-deprecated-declarations -DHAVE_NCURSES -I/usr/include/libxml2 -c -o menuselect.o menuselect.c
gcc -g -D_GNU_SOURCE -Wall -Wno-deprecated-declarations -DHAVE_NCURSES -c -o strcompat.o strcompat.c
gcc -g -D_GNU_SOURCE -Wall -Wno-deprecated-declarations -DHAVE_NCURSES -c -o menuselect_curses.o menuselect_curses.c
gcc -o cmenuselect menuselect.o strcompat.o menuselect_curses.o -lncurses -ltinfo -lxml2
make[1]: Leaving directory '/usr/src/asterisk-20.5.0/menuselect'
CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" nmenuselect
make[1]: Entering directory '/usr/src/asterisk-20.5.0/menuselect'
gcc -g -D_GNU_SOURCE -Wall -Wno-deprecated-declarations -DHAVE_NCURSES -c -o menuselect_newt.o menuselect_newt.c
gcc -o nmenuselect menuselect.o strcompat.o menuselect_newt.o -lnewt -lxml2
make[1]: Leaving directory '/usr/src/asterisk-20.5.0/menuselect'
CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect
make[2]: Entering directory '/usr/src/asterisk-20.5.2/menuselect'
gcc -g -D_GNU_SOURCE -Wall -Wno-deprecated-declarations -DHAVE_NCURSES -c -o menuselect_stub.o menuselect_stub.c
gcc -o menuselect menuselect.o strcompat.o menuselect_stub.o -lxml2
make[2]: Leaving directory '/usr/src/asterisk-20.5.2/menuselect'
menuselect/menuselect --check-deps menuselect.makeopts
menuselect/menuselect --check-deps menuselect.makeopts
menuselect changes saved!
make[1]: Leaving directory '/usr/src/asterisk-20.5.2'
Step 11: Compile and install Asterisk by running the make and make install command
[root@linuxhelp asterisk-20.5.2]# make && make install
CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory '/usr/src/asterisk-20.5.2/menuselect'
make[1]: 'makeopts' is up to date.
make[1]: Leaving directory '/usr/src/asterisk-20.5.2/menuselect'
[LD] astcanary.o -> astcanary
[CPP] astdb2sqlite3.c -> astdb2sqlite3.i
[CCi] astdb2sqlite3.i -> astdb2sqlite3.o
[CPP] hash/hash.c -> hash/hash.i
[CCi] hash/hash.i -> hash/hash.o
[CPP] hash/hash_bigkey.c -> hash/hash_bigkey.i
[CCi] hash/hash_bigkey.i -> hash/hash_bigkey.o
[CPP] hash/hash_buf.c -> hash/hash_buf.i
[CCi] hash/hash_buf.i -> hash/hash_buf.o
[CPP] hash/hash_func.c -> hash/hash_func.i
[CCi] hash/hash_func.i -> hash/hash_func.o
[CPP] hash/hash_log2.c -> hash/hash_log2.i
[CCi] hash/hash_log2.i -> hash/hash_log2.o
[CPP] hash/hash_page.c -> hash/hash_page.i
[CCi] hash/hash_page.i -> hash/hash_page.o
[CPP] hash/ndbm.c -> hash/ndbm.i
[CCi] hash/ndbm.i -> hash/ndbm.o
[CPP] btree/bt_close.c -> btree/bt_close.i
[CCi] btree/bt_close.i -> btree/bt_close.o
[CPP] btree/bt_conv.c -> btree/bt_conv.i
[CCi] btree/bt_conv.i -> btree/bt_conv.o
[CPP] btree/bt_debug.c -> btree/bt_debug.i
[CCi] btree/bt_debug.i -> btree/bt_debug.o
[CPP] btree/bt_delete.c -> btree/bt_delete.i
[CCi] btree/bt_delete.i -> btree/bt_delete.o
[CPP] btree/bt_get.c -> btree/bt_get.i
[CCi] btree/bt_get.i -> btree/bt_get.o
[CPP] btree/bt_open.c -> btree/bt_open.i
[CCi] btree/bt_open.i -> btree/bt_open.o
[CPP] btree/bt_overflow.c -> btree/bt_overflow.i
[CCi] btree/bt_overflow.i -> btree/bt_overflow.o
[CPP] btree/bt_page.c -> btree/bt_page.i
[CCi] btree/bt_page.i -> btree/bt_page.o
[CPP] btree/bt_put.c -> btree/bt_put.i
[CCi] btree/bt_put.i -> btree/bt_put.o
[CPP] btree/bt_search.c -> btree/bt_search.i
[CCi] btree/bt_search.i -> btree/bt_search.o
[CPP] btree/bt_seq.c -> btree/bt_seq.i
[CCi] btree/bt_seq.i -> btree/bt_seq.o
[CPP] btree/bt_split.c -> btree/bt_split.i
[CCi] btree/bt_split.i -> btree/bt_split.o
[CPP] btree/bt_utils.c -> btree/bt_utils.i
[CCi] btree/bt_utils.i -> btree/bt_utils.o
[CPP] db/db.c -> db/db.i
[CCi] db/db.i -> db/db.o
/usr/bin/install -c -m 644 contrib/scripts/safe_asterisk.8 "/usr/share/man/man8"
if [ -f contrib/firmware/iax/iaxy.bin ] ; then \
/usr/bin/install -c -m 644 contrib/firmware/iax/iaxy.bin "/var/lib/asterisk/firmware/iax/iaxy.bin"; \
fi
CFLAGS=" -I/usr/include/libxml2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 " build_tools/mkpkgconfig "/usr/lib64/pkgconfig";
find static-http | while read x; do \
if test -d $x; then \
/usr/bin/install -c -m 755 -d "/var/lib/asterisk/$x"; \
else \
/usr/bin/install -c -m 644 $x "/var/lib/asterisk/$x" ; \
fi \
done
/usr/bin/install -c -m 644 doc/core-en_US.xml "/var/lib/asterisk/static-http";
/usr/bin/install -c -m 644 doc/appdocsxml.xslt "/var/lib/asterisk/static-http";
if [ -d doc/tex/asterisk ] ; then \
/usr/bin/install -c -d "/var/lib/asterisk/static-http/docs" ; \
for n in doc/tex/asterisk/* ; do \
/usr/bin/install -c -m 644 $n "/var/lib/asterisk/static-http/docs" ; \
done \
fi
for x in images/*.jpg; do \
/usr/bin/install -c -m 644 $x "/var/lib/asterisk/images" ; \
done
make -C sounds install
make[1]: Entering directory '/usr/src/asterisk-20.5.2/sounds'
make[1]: Leaving directory '/usr/src/asterisk-20.5.2/sounds'
find rest-api -name "*.json" | while read x; do \
/usr/bin/install -c -m 644 $x "/var/lib/asterisk/rest-api" ; \
done
+---- Asterisk Installation Complete -------+
+ +
+ YOU MUST READ THE SECURITY DOCUMENT +
+ +
+ Asterisk has successfully been installed. +
+ If you would like to install the sample +
+ configuration files (overwriting any +
+ existing config files), run: +
+ +
+ For generic reference documentation: +
+ make samples +
+ +
+ For a sample basic PBX: +
+ make basic-pbx +
+ +
+ +
+----------------- or ---------------------+
+ +
+ You can go ahead and install the asterisk +
+ program documentation now or later run: +
+ +
+ make progdocs +
+ +
+ **Note** This requires that you have +
+ doxygen installed on your local system +
+-------------------------------------------+
Step 12: run make samples command to install the sample configs.
[root@linuxhelp asterisk-20.5.2]# make samples
Installing adsi config files...
/usr/bin/install -c -d "/etc/asterisk"
Installing configs/samples/asterisk.adsi
Installing configs/samples/telcordia-1.adsi
Installing other config files...
Installing file configs/samples/acl.conf.sample
Installing file configs/samples/adsi.conf.sample
Installing file configs/samples/aeap.conf.sample
Installing file configs/samples/agents.conf.sample
Installing file configs/samples/alarmreceiver.conf.samp
FAQ
Q
How to dial from the CLI?
A
The essential to dial from the CLI is chan_oss. chan_oss provides a “dial” command from the CLI that connects the soundcard (via chan_oss) to the outgoing line. By including the module chan_oss, you’ll find a new “dial” command on the CLI.
Q
What is SIP in an Asterisk?
A
The SIP Channel Module enables Asterisk to communicate via VoIP with SIP telephones and exchanges.
Q
What is the difference between Asterisk and FreePBX?
A
FreePBX is a web-based open-source GUI that controls and manages Asterisk.
Q
How to log on to the Asterisk CLI?
A
To Logon to the Asterisk CLI use "asterisk -r" command.
Q
Why do we need the Asterisk framework?
A
The Asterisk framework is for building multi-protocol, real-time communications applications, and solutions.