title: Asterisk : external Web Application (php) need to get info of incoming call numbers
body: <p>We are running small service business and for customers we set up small call center ( to attend customers calls )  using Asterisk server  &amp; ( x-lite app) and that is working very well. </p>
  
  <p>And Now we want ot offer  our our customer managers ( who receive calls)  option of extracting our product information from our backend PHP Web application ( local server in  different machine where  asterisk server is running . We developed one web app and from there they get all the information of our products . </p>
  
  <p>according to our policy we send that information to the called customer through SMS , now we are using our local wep php app to send information as SMS by CoPyING /  TYPING the Mobile no of the incoming calls from  x-lite (dialer) number display to my web application input form. </p>
  
  <p>Now , I want to know is there any asterisk-api available to use in php web application to get the information of calling number ( while , call is still alive ) and then we can use that phone number to get more information about that caller which are stored in our separte database ??? I header about <strong>AGI  and AMI</strong> but i am not sure what exactly i need in this case </p>