Asterisk

Asterisk is a PBX server program to manage phones.

Installation
Install :

Testing
If you do not have expensive PBX hardware phones you can use linphone to test your setup.