Getting real time status from my calls

Hi,

I’m really new with Asterisk. This is my problem, I’m trying to display/get the status of my calls in a URL(Inside this URL sending the originate commad through phpagi). Mostly to let the user know what’s happening with the call once the process started (login…originate call…).
What kind of information am I expecting? I’m hoping to see, telephone X ringing … call answered something like.
I’m not sure if this possible right now. Just in case I’m running on Asterisk 1.8.20.0.

Thanks in advace, I really appreciate any input on this.

Can you use AMI in your application?