sudo apt update && sudo apt upgrade
sudo apt install build-essential libxml2-dev libsqlite3-dev uuid-dev
cd /usr/src sudo wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-18-current.tar.gz
sudo tar -zxvf asterisk-18-current.tar.gz cd asterisk-18.*
sudo ./configure sudo make sudo make install sudo make samples sudo make config sudo ldconfig
sudo systemctl start asterisk sudo systemctl enable asterisk
sudo nano /etc/asterisk/sip.conf
[general] context=default allowoverlap=no bindport=5060 bindaddr=0.0.0.0 srvlookup=yes [1001] type=friend context=internal host=dynamic secret=password1
sudo nano /etc/asterisk/extensions.conf
[internal] exten => 1001,1,Dial(SIP/1001) exten => 1002,1,Dial(SIP/1002)