How to get receive call status of customer's phone number?

We are using asterisk for all calling features. We have one functionality like if customer’s receives phone then his details will be opened. For achieving this functionality, we need to know customer’s phone status whether phone is ringing or picked up.
How will i achieve this thing? Any help would be much appreciated.

AMI Events.

1 Like

Which event, we have to use?

You can start with Newchannel and Newstate