login | register
Wed 19 of Nov, 2008 [18:46 UTC]

voip-info.org

History

Asterisk astman

Created by: jht2,Last modification on Tue 14 of Oct, 2008 [03:45 UTC] by msulis

Astman


(note: this is deprecated and the instructions herein no longer apply in Asterisk 1.2.x and newer)

Astman is a text mode Manager for Asterisk, included with the Asterisk package. Astman connects to Asterisk by TCP, so you can run Astman on a completely different computer than your Asterisk computer.

Image

Installation

The astman executable is normally installed to /usr/sbin/astman. If you don't have it, it may be because you didn't have the libnewt package installed on your system when you compiled Asterisk. Try this:

   cd /usr/src/asterisk/astman
   make

If it results in an executable binary, you can simply copy that binary to /usr/sbin yourself, rather than running the whole of Asterisk's "make install" just for that purpose. If you get complaints about missing newts, then you'll need to install the right library package from your Linux distibution repository.

Usage

You will need to edit the manager.conf file to enable Manager capability, to give yourself a username and password, to set which IP addresses you can connect from. See Manager Configuration.

To start Astman, get a shell prompt and type
  • astman localhost
then feed it the username and password you defined in manager.conf.

See Also



Asterisk | Asterisk GUI

Comments

Comments Filter
222

333libnewt

by engival, Sunday 12 of November, 2006 [02:44:31 UTC]
I use slackware, and had a hard time finding libnewt. Hope this helps:

You can get the source for newt here:
ftp://download.fedora.redhat.com/pub/fedora/linux/core/2/SRPMS/

I also ran into an error trying to compile astman after newt was installed, the solution was here:
http://lists.digium.com/pipermail/asterisk-dev/2004-June/004769.html

Quick howto:

cd /usr/src
ncftpget ftp://download.fedora.redhat.com/pub/fedora/linux/core/2/SRPMS/newt-0.51.6-2.1.1.src.rpm
rpm -i newt-0.51.6-2.1.1.src.rpm
tar -zxf rpm/SOURCES/newt-0.51.6.tar.gz
cd newt-0.51.6
./configure
make
make install
ldconfig
cd ../asterisk-1.2.12.1/utils
>>>> edit Makefile
>>>> add -D_GNU_SOURCE to CFLAGS+= at the top
make astman

./astman localhost 2> /dev/null