apt-get install libncurses5-dev
cd /usr/src wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.17.tar.gz
tar -xzf asterisk-1.4.17.tar.gz
./configure make clean make make install make samples make config