I wrote this script in vim on an Ubuntu 10.04 LTS box, to stand-up the latest version of Asterisk. At the time I wrote this script, the latest version was Asterisk v1.8.11.0; however, this script maybe easily tweaked to install any version of Asterisk you like. You may find the latest (and almost every) build of Asterisk here: http://downloads.asterisk.org/pub/telephony/asterisk/releases/

After visiting the above URL and determining which version of Asterisk you wish to install, simply change the parts of the script that are relevant to that version (i.e. 1.8.11.0.tar.gz), and let it rip. If you don’t know what, ‘let it rip’ […]