See the attachement for details.
The project consists of 3 layers
1) Web interface .. Similar to a typicalstore front with payment gateway
2)App server serving web pages
3) DBMS to store persistent data
4) An Asterisk (or something like asterisk) server that interfaces with DBMS to manage incoming/outgoing calls , based on some business logic.