Getting inormation OUT of asterisk

Does anyone know how… if possible and where i can get info, to get info out of asterisk? I am software developer and I want to Hook into asterisk and retrive live info… like what calls are ringing to what numbers etc. so I can use this to display if phiones are in use/ ringing / free etc on other appliactions.



The raw interface is the AMI there are various middle ware clients like TAPI etc avalible.