A look at the possibilities of Asterisk, a very popular OpenSource PBX that runs atop GNU/Linux.
http://www.asterisk.org http://www.digium.com http://www.voip-info.org