Landline and PC Integration


I am new to asterisk.

I want to make an application which searches the details of people by inputting their phone number in the application. I want my land-line phone connected to my PC and whenever a call comes then the application should fetch details of the related incoming number from database and display it in PC.

Can you please guide me on where i will get the required documentation and details related to the application i want to make.

Asterisk AGI.
PHPAGI class.
MYSQL … mming/book