The Asterisk Manager Interface (AMI) is a socket-based protocol for controlling the Asterisk telephony engine.