pbx_freepbx install guide
TRANSCRIPT
7/27/2019 Pbx_freepbx Install Guide
http://slidepdf.com/reader/full/pbxfreepbx-install-guide 1/4
FREEPBX INSTALL GUIDE---------------------
Author: Anton Raharja - anton at ngoprek dot org
Current linux distribution: Ubuntu server 7.10
Current kernel version: 2.6.22-14-server
Login as root and follow steps below:notes:- you are required to connect your Ubuntu server to the Internet- for fast update and upgrade please configure your apt source
to the fastest reachable server- in this tutorial you are assumed using Intel Pentium 4- some of your installed apache server configuration will be
changed- you are recommended to use fresh install of Ubuntu server 7.10
(you will later update and upgrade this server)
apt-get updateapt-get upgrade
apt-get install mc build-essential libncurses5-dev libssl-devlibmysqlclient15-devapt-get install linux-headers-`uname -r` apache2 php5 php5-cli php-pearphp-dbapt-get install php5-gd php5-mysql mysql-server openssh-server curl soxsubversion
note:put 'rahasia' (without quote) as mysql server root passwordplease remember that this is only for the sake of following this
manuallater on you have to change it to your own password
tar -zxf asterisk-sounds-0.1.tar.gztar -zxf zaptel-firmware-0.1.tar.gz
tar -zxf libpri-1.4.3.tar.gzcd libpri-1.4.3makemake installcd ../
tar -zxf zaptel-1.4.8.tar.gzcd zaptel-1.4.8./configuremake menuconfig
note:select all options on ‘Utilities’ press x to save selections
cp ../zaptel-firmware-0.1/firmware/* firmware/makemake installmake configcd ../
tar -zxf asterisk-1.4.17.tar.gzcd asterisk-1.4.17./configure
make menuconfignote:
7/27/2019 Pbx_freepbx Install Guide
http://slidepdf.com/reader/full/pbxfreepbx-install-guide 2/4
remove chan_mgcp, chan_phone, chan_oss, chan_skinny from ‘ChannelDrivers’
remove codec_adpcm, codec_a_mu, codec_lpc10 from ‘CodecTranslators’
select EXTRA-SOUNDS-EN-GSM from 'Extras Sound Packages'press x to save selections
cp ../asterisk-sounds-0.1/sounds/* sounds/makemake installmake samplesgenzaptelconf
note:genzaptelconf is part of zaptel package, but make sure to execute
this afterinstalling asterisk
cd ../
tar -zxf asterisk-addons-1.4.5.tar.gzcd asterisk-addons-1.4.5
./configuremake menuconfignote:remove chan_ooh323 from ‘Asterisk Addon Modules’ make sure the rest is selected
makemake installmake samplescd ../
tar -zxf codec-g723-g729-p4-0.1.tar.gzcd codec-g723-g729-p4-0.1cp codec_g729-ast14-gcc4-glibc-pentium4.so/usr/lib/asterisk/modules/codec_g729.socp codec_g723-ast14-gcc4-glibc-pentium4.so/usr/lib/asterisk/modules/codec_g723.socd ../
useradd -s /bin/false -m asterisknote:default shell is /bin/false and create a home directory (needed by
FOP)
mcedit /etc/apache2/apache2.confnote:look for this lines:
User www-dataGroup www-data
and change to below lines:User asteriskGroup asterisk
a2enmod php5/etc/init.d/apache2 restart
chown asterisk.asterisk /etc/asterisk -Rchown asterisk.asterisk /usr/lib/asterisk -Rchown asterisk.asterisk /var/lib/asterisk -Rchown asterisk.asterisk /var/log/asterisk -Rchown asterisk.asterisk /var/spool/asterisk -R
mcedit /etc/asterisk/asterisk.conf
7/27/2019 Pbx_freepbx Install Guide
http://slidepdf.com/reader/full/pbxfreepbx-install-guide 3/4
note:look for astrundir path like this line:
astrundir => /var/runand change it to:
astrundir => /var/log/asterisk
asterisk -U asterisk -G asterisk
mysqladmin -u root -p password rahasianote:lets make sure that you change the mysql server root password'rahasia' (without quote) is a password chosen for testing purposes
only
mysqladmin -u root -p create asteriskmysqladmin -u root -p create asteriskcdrdb
tar -zxf freepbx-2.3.1.tar.gzcd freepbx-2.3.1
mysql -u root -p asterisk < SQL/newinstall.sqlmysql -u root -p asteriskcdrdb < SQL/cdr_mysql_table.sql./install_amp
note:Q: Enter your USERNAME to connect to the 'asterisk' database:A: rootQ: Enter your PASSWORD to connect to the 'asterisk' database:A: rahasiaQ: Enter the path to use for your AMP web root:A: /var/wwwQ: Enter the IP ADDRESS or hostname used to access the AMP web-
admin:A: <your server IP address>Change above IP address to your own IP
ln -s /usr/local/sbin/amportal /etc/init.d/amportalupdate-rc.d amportal defaultscd ../
rm -f /etc/asterisk/extensions.confrm -f /etc/asterisk/sip.confrm -f /etc/asterisk/iax.confrm -f /etc/asterisk/zapata.conf
mcedit /etc/asterisk/zapata.confnote:type below lines and save the file:
[trunkgroups][channels]#include zapata-channels.conf
chown asterisk.asterisk /etc/asterisk/zapata.conf
/etc/init.d/amportal start
browse FreePBX admin web page, http://<your server IP address>/admin(please use Firefox)and click 'Apply Configuration Changes' on top of the page
mcedit /etc/asterisk/sip.conf
note:look for lines like below:
7/27/2019 Pbx_freepbx Install Guide
http://slidepdf.com/reader/full/pbxfreepbx-install-guide 4/4
disallow=allallow=ulawallow=alaw
and change them to:disallow=all; enable g729 and gsm only when you have remote agents (from
internet) ;allow=g729;allow=gsmallow=ulawallow=alaw; enable below options for video support (now disabled);allow=h264;allow=h263p;allow=h263;videosupport=yes;maxcallbitrate=128
mcedit /etc/asterisk/iax.conf
note:look for lines like below:disallow=allallow=ulawallow=alawallow=gsm
and change them to:disallow=all; enable g729 and gsm only when you have remote agents (from
internet);allow=g729;allow=gsmallow=ulawallow=alaw
asterisk -rx "reload"
back to FreePBX admin web page and start configuring. installation finish.
that's all :)onto next journey ! configurations !
Regards,Anton Raharjahttp://www.antonraharja.web.idhttp://www.voiprakyat.or.id