Kerry Garrison posted a fantastic how-to on how to build your own Asterisk based PBX for less than $20, assuming you already have some old computer equipment. The How-To is very detailed, and definitely worth a look!
http://techdatapros.com/asterisk/
http://techdatapros.com/asterisk/