Changing the Asterisk manager password

Changing the Asterisk manager password

If you are using the default password, you will see the message:

Warning: You are running freePBX and asterisk with the
default manager pass. You should consider changing this to something
else.

Running with the default password is a bad idea, simply because
everyone else in the world knows it, and (if not properly firewalled,
etc etc) could potentially connect to your asterisk box and do bad
things(tm).

Warning: Don't get cute and try to use a password
with non-alphabetic or non-numeric characters - things may break in
strange ways if you try to use punctuation characters in passwords.
Unless you really know what you are doing, stick to numbers and
standard alphabetic characters.

Changing the password

To do this, you need to edit two files: /etc/asterisk/manager.conf and /etc/amportal.conf

manager.conf

This controls the asterisk 'manager' users that are allowed to connect to the asterisk manager interface.

For full information on the file, see http://www.voip-info.org/wiki/index.php?page=Asterisk+config+manager.conf

You can have as many users in here as you'd like (for example, an
operator panel might use one) and in fact, you should have different
users for each application.

freePBX requires a user that has a definition like the following:

[admin]
secret = secret123password
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user

amportal.conf

There needs to be a corresponding entry in /etc/amportal.conf

AMPMGRUSER=admin
AMPMGRPASS=secret123password

Obviously you just need to use the same username (inside the square brackets) and password as above.