sudo apt-get purge asterisk sudo rm -rf /etc/asterisk sudo rm -rf /var/run/asterisk sudo apt update sudo apt install wget build-essential git autoconf subversion pkg-config libtool $ sudo git clone -b next git://git.asterisk.org/dahdi/linux dahdi-linux $ cd dahdi-linux $ sudo make $ sudo make install $ cd .. $ sudo git clone -b next git://git.asterisk.org/dahdi/tools dahdi-tools $ cd dahdi-tools $ sudo autoreconf -i $ sudo ./configure $ sudo make install $ sudo make install-config $ sudo dahdi_genconf modules $ cd .. $ sudo git clone https://gerrit.asterisk.org/libpri libpri $ cd libpri $ sudo make $ sudo make install
cd ..
sudo git clone -b 18 https://gerrit.asterisk.org/asterisk asterisk-18
cd asterisk-18
sudo contrib/scripts/get_mp3_source.sh
sudo contrib/scripts/install_prereq install
sudo ./configure
sudo make menuselect
sudo make -j2
sudo make install
sudo make samples
sudo make basic-pbx
sudo make config
sudo ldconfig
sudo adduser --system --group --no-create-home --gecos "Asterisk PBX" asterisk
sudo nano /etc/default/asterisk
AST_USER=”asterisk”
AST_GROUP=”asterisk”
sudo usermod -a -G dialout,audio asterisk
sudo chown -R asterisk: /var/{lib,log,run,spool}/asterisk /usr/lib/asterisk /etc/asterisk
sudo chmod -R 750 /var/{lib,log,run,spool}/asterisk /usr/lib/asterisk /etc/asterisk
sudo systemctl start asterisk
sudo asterisk -vvvr
sudo systemctl enable asterisk
Just a moment...
コメント