Monitor Chan State Change Over AMI

Home » Asterisk Users » Monitor Chan State Change Over AMI
Asterisk Users No Comments

For a development of an auto-dialer I need to make a script that will SUBSCRIBE to the status of certain SIP channels and act upon the changes of their state.

How can I subscribe over AMI (what ‘Action:’ do I need to use) and what response should I look for?