You can download latest source code from
https://downloads.asterisk.org/pub/telephony/asterisk/
To install latest 15.x version, run
cd /usr/local/src wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-15-current.tar.gz tar xvf asterisk-15-current.tar.gz cd asterisk-15.2.2 ./configure make && make install
You will need to install dependency.