Call and extension monitoring

I want to monitor the extensions/call/agnts like TSAPI and TAPI.
How can I do it?


What exactly do you want to monitor, you can use AMI actions and Events

In the case of using actions and Events, you have to constantly poll it.
I want to listen the events of channel activities, like In Call, CPA in case of out call, Disconnection of calls and metadata of each call.

Events are pushed, not pulled.