Case - Agent Logout

Hi,

I need to track the state of Agent such as talk,login,logout,idle etc.
When i register X-lite i get 200 for REGISTER that shows that agent has logged-in.But in case of Logout i.e. when i exit X-Lite,how will i track the event,which event will i get?

As of now,SUBSCRIBE is sent to asterisk by X-lite.

regards
Vibhor

Plz Help!!

You will need to use AMI to track to that level of detail.

Thanks David
What is AMI and how to use that?

Chapter 10 and Appendix F of “Asterisk: The Future of Telephony”.