Professional Documents
Culture Documents
To allow FreePBX to communicate with Asterisk, the Asterisk Manager must be enabled.
Edit the file /etc/asterisk/manager.conf with your favourite text editor
enabled = yes
Create a user, by appending at the end of the file the lines:
[aabbccAABBCC]
secret = ddeeffDDEEFF
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
where aabbccAABBCC is the username
and ddeeffDDEEFF is his password. If you choose your own username and password, take note of
them.
addgroup asterisk
Create the user asterisk, with the command:
useradd -g asterisk -c "Asterisk PBX" -d /var/lib/asterisk asterisk
mkdir -p /var/run/asterisk
Edit the file /etc/asterisk/asterisk.conf with your favourite text editor and change the line:
astrundir => /var/run
into:
Edit permissions
Change the user and the group ownership of some folders to have them consistent with the new
configuration
Edit the file /etc/apache2/envvars with your favourite text editor and change the lines:
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
into
export APACHE_RUN_USER=asterisk
export APACHE_RUN_GROUP=asterisk
Restart the web server, with the command:
/etc/init.d/apache2 restart
Create database
It is now necessary to create two databases.
the MySQLs root password will be asked, type it and press enter.
Create the database which will hold the FreePBX configuration, with the command:
Populate database
While in the FreePBXs source files folder freepbx-2.x.x
the MySQLs root password will be asked, type it and press enter
Populate the database asteriskcdrdb, with the command:
mysql -p asteriskcdrdb < SQL/cdr_mysql_table.sql
the MySQLs root password will be asked, type it and press enter
Installing FreePBX
While in the FreePBXs source files folder freepbx-2.x.x