FREE PBX INSTALLATION
We try to put the solution for all the installation problems of FreePBX so that user can get the solution without hitting hundred of sites.
Anil Kappal
Telecom Consultant
\
Tuesday, August 27, 2013
Wednesday, January 19, 2011
CDR not working in Asterisk 1.7
[root@insula ~]# yum -y install asterisk16-addons-mysql-1.6.2.1-1_centos5 Loaded plugins: fastestmirror, kmod Loading mirror speeds from cached hostfile * addons: mirror.team-cymru.org * base: mirror.sanctuaryhost.com * epel: mirrors.xmission.com * extras: styx.biochem.wfubmc.edu * updates: mirror.team-cymru.org Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package asterisk16-addons-mysql.x86_64 0:1.6.2.1-1_centos5 set to be updated --> Processing Dependency: asterisk16-addons-core = 1.6.2.1-1_centos5 for package: asterisk16-addons-mysql --> Running transaction check ---> Package asterisk16-addons-core.x86_64 0:1.6.2.1-1_centos5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: asterisk16-addons-mysql x86_64 1.6.2.1-1_centos5 asterisk-current 47 k Installing for dependencies: asterisk16-addons-core x86_64 1.6.2.1-1_centos5 asterisk-current 32 k Transaction Summary ================================================================================ Install 2 Package(s) Upgrade 0 Package(s) Total download size: 80 k Downloading Packages: (1/2): asterisk16-addons-core-1.6.2.1-1_centos5.x86_64.r | 32 kB 00:00 (2/2): asterisk16-addons-mysql-1.6.2.1-1_centos5.x86_64. | 47 kB 00:00 -------------------------------------------------------------------------------- Total 85 kB/s | 80 kB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : asterisk16-addons-core 1/2 Installing : asterisk16-addons-mysql 2/2 Installed: asterisk16-addons-mysql.x86_64 0:1.6.2.1-1_centos5 Dependency Installed: asterisk16-addons-core.x86_64 0:1.6.2.1-1_centos5 Complete! [root@insula ~]#
Saturday, April 24, 2010
INSTALLATION OF FREEPBX
How to install Asterisk 1.4 and FreePBX 2.3.1 in Ubuntu Linux
- How To Install step by step Asterisk in Ubuntu Server
- Linux Version : Ubuntu Server
- Linux Kernel : 2.6.22
- Asterisk Version : Asterisk V.1.4.13
- FreePBX Version : FreePBX 2.3.1
- Linux filesystem partition example
- /boot 100 MB
- /var 4 GB
- /home 6 GB
- /usr 12 GB
- / 6 GB
- Swap 600 MB
- RAM Memory: 512 MB
- CPU: Intel(R) Pentium(R) 4 CPU 3.06GHz
- Ethernet: 10/100 VT6102 Rhine-II
- FXO Card: 1 FXO Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
- FXS card:
- Sound: VT8233/A/8235/8237 AC97 Audio Controller
- Bluetooth:
- WiFi:
- Other Devices:
- ************************************************************************************************
- ************************************************************************************************
- ******************************** Packages Install
- ************************************************************************************************
- ************************************************************************************************
- After of install Ubuntu Linux the first thing that we need to do is change the root password
password
- Edit the next file /etc/apt/sources.list and uncomment the next packages repositories
- uncomment and after save the edited file
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper universe
- First we need to install OpenSSH to communicate from other PC using SSH.
- After we need to install compilation library
- View what kernel version has installed our Ubuntu Linux
- after of run the command uname I can see something like that
- Then I need to search the headers, images and sources for kernel
- we need to install the headers, image and sources for the kernel
- too we need install the next applications nmap is practice to view what porst have open our linux systmen, lynx to see any web site from CLI and emacs to files edit
- We will install festival beacuse is very important for make AGIs with asterisk and any programming language
- We need the next library to Asterisk
- Too is necessary to install the next library
- This library are required by FreePBX
- library required for FreePBX
- library required for FreePBX
- library required for FreePBX for audio processing
- if you will install a Sangoma Card then you will need install the next
- This library are necessary to Asterisk Documentation and install new versions of Asterisk and FreePBX
- library required for FreePBX
- Install Apache web server to acces from any computer to FreePBX GUI
- PHP Librarys required for FreePBX
- We need install MySQL Database server to manage the cdr information and asterisk configuration from FreePBX.
- After of Install MySQL maybe we need make any changes these
Change the information of Internet Site and select of type like this
localhost.localdomain
- ************************************************************************************************
- ************************************************************************************************
- ******************************** Asterisk Package Compilations ****************************
- ************************************************************************************************
- ************************************************************************************************
- in this second step we need create a new folder to put the asterisk packages downloaded
cd asterisk
- Download the next files and save in the new folder created
- Download asterisk-perl this module will allow us process the Asterisk Configuration
- These files are requires to control the mp3 and other audio files such as GSM, Ulaw, alaw files etc.
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
- Download FreePBX Package that is the main application to configure asterisk from a web navigator
- Asterisk Packages
- If we have a digium card to connect the pstn to our voip network then we need download and install the next package
wget http://downloads.digium.com/pub/libpri/releases/libpri-1.4.1.tar.gz
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-addons-1.4.4.tar.gz
- voices in english for Asterisk
wget http://downloads.digium.com/pub/telephony/sounds/asterisk-extra-sounds-en-ulaw-current.tar.gz
wget http://downloads.digium.com/pub/telephony/sounds/asterisk-moh-freeplay-ulaw.tar.gz
- we go the following directory
- we decompress the lame package and we compile and to install
cd lame-3.97
sudo ./configure --prefix=/usr --sysconfdir=/etc
sudo make && sudo make install
- we decompress sox package and we install this library to process multimedia files
sudo tar -xzvf ~/asterisk/sox-14.0.0.tar.gz
cd sox-14.0.0
sudo ./configure
sudo make
sudo make install
- We need to install Asterisk-Perl to process the Asterisk File Configuration
sudo tar -xzvf ~/asterisk/asterisk-perl-0.10.tar.gz
cd asterisk-perl-0.10
sudo perl Makefile.PL
sudo make all
sudo make install
- To descompress FreePBX
sudo tar -xzvf ~/asterisk/freepbx-2.3.1.tar.gz
cd /usr/src/freepbx-2.3.1
- Begin to install the database for Asterisk in MySQL
- First We need to access to MySQL CLI, enter the password root, if you don't have configure the password root for mysql then is very important that yo make this step.
ENTER
show databases;
use mysql ;
- Change the root password if you dont have make it
- Create the asterisk user for mysql
flush privileges;
exit
- Entet to mysql using the asterisk user created
- create the database for Asterisk Configuration and CDR information
create database asterisk;
exit
- dump the database schema that is in SQL Folder of FreePBX installation directory
mysql -u asterisk -p asteriskcdrdb < /usr/src/freepbx-2.3.1/SQL/cdr_mysql_table.sql
- Finish the MySQL Configuration
- Create the user for Asterisk and change him password
sudo useradd -c "PBX asterisk" -d /var/lib/asterisk -g asterisk asterisk
sudo passwd asterisk
- Create the next directory where Asterisk will put the PID Asterisk Run
sudo chown asterisk:asterisk /var/run/asterisk
- Add the Asterisk user for Apache
www-data:x:33:asterisk
- press ctrl+x ctrl+s, para salir ctr+x, ctr+cto save and quit
- Search the apache configuration using the find command
- Edit the next file
- to search en Emacs press Ctrl+s and enter the text to search
- Change default user for Apache by asterisk user
Group www-data
- change by
Group asterisk
- saver and quit (to save ctrl+x ctrl+s, to quit ctr+x, ctr+c )
- execute the next command to change the permissions of php lib sessions
- Edit the php file configuration and modify the following php properties
upload_max_filesize = 32M
max_execution_time = 120
max_input_time = 120
- create the Asterisk directrory in /usr/src
cd /usr/src/asterisk
- decompress the libpri library
- decompress the zaptel library
- decompress Asterisk Files
- decompress Asterisk AddOns
- decompress Asterisk Sounds
cd asterisk-sounds
sudo tar zvxf ~/asterisk/asterisk-core-sounds-en-ulaw-current.tar.gz
sudo tar zvxf ~/asterisk/asterisk-extra-sounds-en-ulaw-current.tar.gz
sudo tar zvxf ~/asterisk/asterisk-moh-freeplay-ulaw.tar.gz
- compile LibPri library
sudo make & sudo make install
- compile the Zaptel Drivers for asterisk
sudo make clean
sudo make
sudo make install
sudo make config
- Compiling Asterisk
sudo make clean
sudo ./configure
sudo make
sudo make install
sudo make samples
sudo make progdocs
- Compiling Asterisk AddOns
sudo make
sudo make install
- Copy the Asterisk Sound to Asterisk sound default directory
- Restart Apache Web Server
- Edit the asterisk file config
- change the next line
- by
- change the user for /var/run/asterisk
- Start Asterisk before to begin install FreePBX or FreePBX dont let you to install if dont have started asterisk previously
- check if asterisk has started
- if Asterisk has started then maybe you can see somethink like this
- To go FreePBX Directory Installation
- Install the db library using pear
- if you dont found the package, then you can install it manually : sudo pear install db.17.0.0.tgz
sudo mkdir /var/www/asterisk/cgi-bin
sudo chown asterisk:asterisk /var/www/asterisk
sudo ./install_amp
- after to execute install_amp it will request the values to create the file configuration
- first will request the mysql database user
- after enter the password for mysql user
amp109 4st3r1sk
- Enter the name of database server, if your database server is other server that not be your local hostlocalhost then enter the IP address or the domain name.
localhost localhost
- User name to access to Asterisk Manager Interface
admin asterisk
- Password for AMI
amp111 4st3.r1sk
- Path for the web directory of FreePBX installation
/var/www/html /var/www/asterisk
- IP Address of web server
xx.xx.xx.xx 192.168.1.2
- Password to operate Flash Operator Panel
passw0rd 4st3r1sk.01
- Select default
extensions
- Select default
/var/lib/asterisk/bin
- Select default
/usr/local/sbin
- if you had any error check the database password and user, php and mysql library, apache restart, check pear and php-db installation
- en caso de que tuviera un error al ejecutar FreePBX puede reconfigurarlo pero previamente eliminar el archivo de configuracion en /etc/amportal.conf
- create the following directory
- change the user for the following directory
- stop asterisk
root 14992 0.0 1.7 22524 7892 ? Ssl 07:14 0:00 asterisk start
- 14992 is the Asterisk PID , you will have to stop this pid using the kill command
- Edit the next file and add the following line if this dont exist in the file
RUNASTERISK=yes
- Run amportal
- verify if asterisk is running
- if asterisk is running you should see something like this
asterisk 15764 2.0 1.9 22436 8552 pts/2 Sl 07:30 0:00 /usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c
asterisk 15811 0.0 0.1 1752 496 pts/2 S 07:30 0:00 sh /var/www/asterisk/panel/safe_opserver
asterisk 15812 14.0 1.8 11072 8340 pts/2 S 07:30 0:00 /usr/bin/perl -w /var/www/asterisk/panel/op_server.pl
- Open FireFox and enter the ip address of your web server and put the complete path for FreePBX
- By default FreePBX not request your password, but after you should change the admin password and user
- Disconnect of FreePBX
- Later edit the amportal.conf file and change the AUTHTYPE value to database
AUTHTYPE=database
- try again connect to FreePBX newly you will be able of enter your user and password to connect to FreePBX Admin
password:4st3r1sk
- Now we have enabled the FreePBX to config Asterisk PBX
- You too can go to the Admin Module and check for new updates and downlooad this modules for have a FreePBX more advanced.
- If the Flash Operator Panel was not enabled, then copy the FOP files of panel directory in FreePBX Installation directory to directory configured in amportal for FOP.
sudo cp -rf amp_conf/htdocs_panel/* /var/www/asterisk/panel
sudo chown asterisk.asterisk /var/www/asterisk/
Subscribe to:
Posts (Atom)