This site has some information on putting together your own pbx. The hardware requirements aren't much so you can probably use items you already have. The real key is the software (which is open source), running on linux. If a pbx is something you're in the market for, this is definately something to investigate.
The pbx software used is from Asterick.org.
Get busy and Build your own pbx