Monitoring Asterisk and Executing Commands
The manager is a client/server model over TCP. With the manager interface, you’ll be able to control the PBX, originate calls, check mailbox status, monitor channels and queues as well as execute Asterisk commands.
AMI is the standard management interface into your Asterisk server. You configure AMI in manager.conf. By default, AMI is available on TCP port 5038 if you enable it in manager.conf.
Events, Actions and Responses
AMI receive commands, called “actions”. These generate a “response” from Asterisk. Asterisk will also send “Events” containing various information messages about changes within Asterisk. Some actions generate an initial response and data in the form list of events. This format is created to make sure that extensive reports do not block the manager interface fully.
Management users are configured in the configuration file manager.conf and are given permissions for read and write, where write represents their ability to perform this class of “action”, and read represents their ability to receive this class of “event”.
Asterisk Documentation: http://www.asterisk.org/docs