http://www.voip-info.org/wiki/view/Asterisk+manager+API