Asterisk manager Examples

Command Examples

  • Command - Execute an Asterisk CLI command in an Asterisk manager session
  • Login - Establish a new Asterisk manager session.
  • Originate - Place a call from a device to an extension.
  • Redirect - with ExtraChannel
  • Transfer - Transfer a call to another extension

Application Examples

Mac OS X


  • clj-asterisk - Documented Clojure bindings for Asterisk Manager API.





  • Offending channels. Check for channels which are up for a too long using bash
  • Simple Asterisk Manager Bash example. Use Asterisk manager API from Your shell.


  • Java library - Supports receiving events from the Asterisk server and sending actions to Asterisk. (See Asterisk-java for details)


  • AsterClick Opensource HTML5/WebSockets JavaScript AMI interface and PHP wSockets server. As far as we know this is the first truly event driven (NO POLLING) Javascript system on the planet. Works on both Ubuntu and CentOS based systems (like Elastix)
  • Shift8 A javascript implementation of Shift8 PHP library in Node.js (Asynchronous interface). Still work in progress but functional


  • Asteriks gtk2 call notifier and dialer anotify. It needs Asterisk::Manager with asynchronous events VERSION>=0.02
  • CPAN: Asterisk::AMI - Simple interface for accessing the asterisk manager API. It has built in functions for common tasks (such as retrieving the asterisk db) as well as a powerful Event and Action callback implementation that supports several event loops.
  • CPAN: Asterisk manager - This module can allow you to monitor and control Asterisk using Perl and POE.
  • TACI - (Trivial Asterisk Call-generator Interface) An example example of a "click to call" Web CGI. It requires Net::Telnet, the included README walks you through the whole setup.
  • CPAN: Asterisk::CoroManager - Asterisk Manager Interface, Coro version


  • Asterisk PHP CLI Asterisk Commander is a PHP script, that allows remote execution of Asterisk commands (like asterisk cli 'asterisk -r') through a web browser; Download.
  • PAGI and PAMI (for PHP, clean, modular, easy, OOP compatible interfaces and clients for asterisk manager and agi): -
  • AsterClick Opensource HTML5/WebSockets JavaScript AMI interface and PHP wSockets server. Works on both Ubuntu and CentOS based systems (like Elastix)
  • Asterisk Manager API for PHP provided by Straw Dogs under BSD license with examples and documentation.
  • floAPI - A PHP class for connecting to API manager. Includes event support. ( August 2005 Innovation Award Nominee)
  • Numerous PHP examples - A collection of PHP examples varying in complexity.
  • Shift8 PHP Library. Supports almost all manager commands, command queuing, SOAP and more
  • Star Asterisk API, (link was dead!) PHP with event handling and dial examples.


  • Fats - FastAGI and AMI protocols for the Twisted framework. Include full code covered tests and examples for the Mock Object pattern development. Released under MIT license (no longer active)
  • py-asterisk The Python Asterisk package (codenamed py-Asterisk) is an attempt to produce high quality, well documented Python bindings for the Asterisk Manager API
  • pyst - A set of interfaces and libraries to allow programming of asterisk from python beginning with for programming agi applications and moving to tightly integrated long running python processes for telephony applications.
  • pyst2 - A fork of the famous python pyst library for Asterisk.
  • StarPy - Set of protocols to allow Twisted-Python applications to communicate via both FastAGI and AMI


  • Adhearsion provides a Ruby-based framework for developing both AGI and AMI applications.
  • RAMI (Ruby Asterisk Manager Interface) provides a client library and built-in proxy server in Ruby for interfacing with the Asterisk manager interface (no longer active).


  • amclient.tcl - For die-hard Tcl fans, here is a robust open source Tcl wrapper which hides the manager protocol syntax from the Tcl script writer. It comes with a simple demo program that can also be used to talk to Asterisk servers for diagnostic purposes in an interactive script-as-you-go kind of way.
  • TclMyAst supports all Asterisk v1.2 manager commands; cross-platform; allows registering callbacks on ActionID, UniqueID, and/or Event/Response; operation as proxy that maintains state of channels; demo Tk GUI with integrated command reference.

See Also

Created by: flobi, Last modification: Wed 05 of Oct, 2016 (04:25) by imcdona
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+