Asterisk, softphone, MySQL and PHP App

We have an app/crm using PHP and MYSQL on a web server.

We have asterisk installed in an office.

We would like to get the CLI from an incoming call and get asterisk to send to our app so that we can query our DB and retrieve a record and display it our app on a user’s browser.

Anybody have any experience with this and can point in the direction of useful resources would be my hero FOREVER!


check this nice little app called ADM:, using this you’ll be able to monitor your Asterisk extension and when a call comes in it will open your web browser to an url you had specified; the caller id is sent as a GET parameter to this url.

Hope it helps.