amclient.tcl - Tcl wrapper for Asterisk Manager API

This open source Tcl library lets you write Tcl scripts that interact with Asterisk via the manager API. It hides the syntax from the script and instead provides a Tcl-native way of interfacing with the API.

It was written at RavenWolf Technology, Inc. The included simple demo program requires Tcl8.4, but the library itself should work fine with older versions of Tcl. Currently in production use under Linux and FreeBSD, but should work anywhere Tcl does.

The package can be downloaded from See included README.TXT and demo app for details.

source amclient.tcl
set AM [amClientSession localhost 5038 mark mysecret {} {} 0 0]
$AM Ping
$AM Command {command {show uptime}}
$AM Redirect {Channel Zap/1-1 Context transfer Exten 5555555555 Priority 1}

Created by: helmut, Last modification: Thu 25 of Aug, 2005 (14:00 UTC) by flobi
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+