AMI Event tracking in Asterisk

Event tracking in Asterisk

I’m trying to write an application that pops up caller ID in the system tray, and also is able to tell when the monitored extension is in use.

A couple of similar solutions have used the Newchannel event to keep track of inbound and outbound calls.

In my research I’m seeing that on inbound calls there is no Newchannel event to indicate that the local channel is ringing, rather it is a Newstate event .

Can someone confirm that this is the proper way to track the extension ringing?