Skip to content

Instantly share code, notes, and snippets.

@ishrakr
Last active March 7, 2019 10:48
Show Gist options
  • Save ishrakr/1d2c954589f4701d0c492cb28f9ac243 to your computer and use it in GitHub Desktop.
Save ishrakr/1d2c954589f4701d0c492cb28f9ac243 to your computer and use it in GitHub Desktop.
cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
tar xvfz asterisk-13-current.tar.gz
sudo apt-get update
sudo apt-get install subversion
cd asterisk-*/
contrib/scripts/get_mp3_source.sh
contrib/scripts/install_prereq install
./configure --with-jansson-bundled
make menuselect
make -j4
make install
make samples
make config
ldconfig
sudo adduser --system --group --home /var/lib/asterisk --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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment