Multiple Installations of Asterisk
From aa-asterisk.org.uk wiki
This is not complete yet! Do not use!
This is a HOWTO on installing Asterisk 1.4 or later multiple times and running them together. The instructions are based on Debian but can be adapted quite easily for other distributions.
You will need:
Firstly, create a directory where you are going to install the multiple installations. When I did it, I used /local but you can use whatever directory structure you like. Then, create a directory where you are going to unzip the sources. I used /local/src, but again you can use whatever directory name you like.
Underneath this directory, create subdirectories for each different installation of Asterisk you are going to install concurrently. In my setup I used /local/src/asterisk-a, /local/src/asterisk-b, etc.,but you can use whatever you like.
Into each directory, unzip the Asterisk tarball or check out the SVN source as appropriate. Do
./configure make menuselect
make make install DESTDIR=<directory-to-install-asterisk-to> (no space between the = and the path)