I remember that when I had just installed a phone number at home 20 years ago, I needed 2000 or 3000 yuan (RMB) on the first line. Later I installed the phone more cheaply until it was free. Now, with the help of Asterisk and FreePBX, you can build your own phone office at home. If you are abroad, you can easily contact friends and family in China or other places through your own phone office. The following describes how to install Asterisk and FreePBX on Ubuntu12.04. 1. First, update the system (Optional). Input sudoapt-g in the command line.
I remember that when I had just installed a phone number at home 20 years ago, I needed 2000 or 3000 yuan (RMB) on the first line. Later I installed the phone more cheaply until it was free. Now, with the help of Asterisk and FreePBX, you can build your own phone office at home. If you are abroad, you can easily contact friends and family in China or other places through your own phone office.
The following describes how to install Asterisk and FreePBX on Ubuntu 12.04.
1. Update the system (optional)
Enter
Sudo apt-get update
Sudo apt-get upgrade
2. Install LAMP (Apache2 + MySQL + PHP)
Enter
Sudo tasksel
Select LAMP Server
3. Add additional PHP software packages
Sudo apt-get install php5-gd php-pear php-db sox curl
4. Install phpmyadmin (optional)
Sudo apt-get install phpmyadmin
5. Install asterisk
Sudo apt-get install asterisk-mysql asterisk-mp3.
6. Preparations for installing Freepbx
To install Freepbx, you must first find the directory in which Freepbx is installed. FreePBX is a Web management application of asterisk, which can help you configure Asterisk.
1) the Ubuntu Web root directory is/var/www. Therefore, we can install FreePBX in the/var/www/freepbx directory. To facilitate management, we can create three sub-directory conf setting files.
Log storage log
Public WEB application.
Sudo mkdir/var/www/freepbx/
Sudo mkdir/var/www/freepbx/conf
Sudo mkdir/var/www/freepbx/log
Sudo mkdir/var/www/freepbx/public