Skip to content

Instantly share code, notes, and snippets.

@pablodz
Created December 6, 2021 05:43
Show Gist options
  • Select an option

  • Save pablodz/fc1bde9884eeaa432591218913bdb6ff to your computer and use it in GitHub Desktop.

Select an option

Save pablodz/fc1bde9884eeaa432591218913bdb6ff to your computer and use it in GitHub Desktop.
a
cd /usr/src \
&& wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-18-current.tar.gz \
&& tar zxvf asterisk-18-current.tar.gz \
&& rm -rf asterisk-18-current.tar.gz \
# install asterisk
&& cd asterisk-18*/ \
# contrib
&& contrib/scripts/install_prereq install \
&& yum -y install ncurses-devel \
&& dnf -y --enablerepo=powertools install libedit-devel \
&& ./configure --libdir=/usr/lib64 \
# build files
# && make menuselect\
&& make \
&& make install \
&& make samples \
# copy samples
&& mkdir /etc/asterisk/samples \
&& mv /etc/asterisk/*.* /etc/asterisk/samples/ \
&& make basic-pbx \
# autostart
&& make config \
&& chkconfig --add asterisk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment