
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Monitoring Asterisk
|
55
This sample config starts the Asterisk Manager listening on TCP port 5038, and
allows all hosts (
allow=0.0.0.0...) to connect. If your Asterisk server is accessible
from the Internet or untrusted hosts, you’ll want to make the allow directive more
strict. The user called “ted” will be authenticated by the password “hansolo” and his
administrative permissions are described by the read and write directives. You could
set up other users with different credentials.
manager.conf’s settings are for the Asterisk Manager API, not just the
Astman program. Other applications that you use with the API will be
subject to these settings, too.
Once you’ve set up your manager.conf file, restart Asterisk and issue this command
on the Asterisk server:
astman localhost
Log into Astman using the username and password you established in the manager.
conf file (see Figure 3-5).
Channels
Once you log in to Astman, you are shown a channel list. Channels are logical path-
ways for voice connections at the application layer, just as TCP and UDP provide
Figure 3-5. The Astman login prompt