Sed -i 's/User apache/User asterisk/' /etc/httpd/conf/nf sed -i 's/Group apache/Group asterisk/' /etc/httpd/conf/nf MYSQL SETUP Before you can do anything to MySQL, you need to make sure it's running: NOTE: If running RHEL/CENTOS/SL 6 you may need to run this first. Ln -s /usr/local/bin/mpg123 /usr/bin/mpg123 CHANGE APACHE USER Change User apache and Group apache to User asterisk and Group asterisk.
#FREEPBX TFTP SERVER INSTALL#
Cd /usr/src wget /files/mpg123/1.14.2/mpg123-1.14.2.tar.bz2/download tar -xjvf mpg123-1.14.2.tar.bz2 cd mpg123-1.14.2./configure & make & make install Freepbx php script cannot find mpg123 by default so we need to create a symbolic link. If you won't be uploading or streaming mp3's or won't be using FreePBX (new) default behaviour then you probably don't need to install mpg123. So we want to install mpg123 for converting uploaded mp3's to wav automagically. Ln -s /var/lib/asterisk/moh /var/lib/asterisk/mohmp3 The new default behaviour for Asterisk and Freepbx is to only use wav files for moh due to transcoding overhead and Asterisk stability issues with mp3's. That simplifies things and simpler is often better. If you do it everything is in one directory always no matter what. I still include this symbolic link procedure for legacy reasons. You can switch between these two moh directories in the new Advanced Settings GUI. If we create a symbolic link instead everything is in one place and can still be found by both FreePBX and Asterisk.įreePBX uses mohmp3 by default so moh just sits there unused if we do not create a symbolic link. May already exist but just to make sure useradd -c 'Asterisk PBX' -d /var/lib/asterisk asterisk The following directory may already exist but just to make sure mkdir /var/run/asterisk Set ownership chown -R asterisk /var/run/asterisk chown -R asterisk /var/log/asterisk chown -R asterisk /var/lib/asterisk/moh chown -R asterisk /var/lib/php/session Music on Hold The Asterisk default moh directory is '/moh' and the Freepbx default moh directory is '/mohmp3'. Make & make install & make samples Create user. NOTE: If upgrading Asterisk on an already running FreePBX system do NOT run make samples. When you select 'formatmp3' above as an addon you must run a script before going any further otherwise the install will fail./contrib/scripts/getmp3source.sh You must also have subversion installed to run the above script and be in the root directory of the Asterisk source code. Then make sure to press the 'save' button afterwards. I suggest ulaw as they sound better than gsm especially if you are using ulaw as your default codec. I believe these are all needed or recommended for FreePBX. make clean./configure & make menuselect Select all addons.
#FREEPBX TFTP SERVER DOWNLOAD#
Wget tar zxvf NOTE: There is no separate asterisk addons package to download starting with Asterisk v1.8 cd /usr/src/asterisk-1.8. Cd /usr/src wget tar zxvf freepbx-2.10.0.tar.gz Get Asterisk v1.8. You can also install confbridge but FreePBX will default to use MeetMe if it detects it.Ĭheck if this is the latest released version. To install meetme conferencing you must install dahdi and ensure meetme is selected during the asterisk menuselect installation part of the procedure. Meetme still has some features that confbridge does not and is still required if you also require paging. The only reason to install zaptel/dahdi now is if you are installing telephony hardware. Meetme conferencing was the last Asterisk application that required a timing source.
Starting with Asterisk 1.6.2/FreePBX2.9, it is possible to use ConfBridge in place of MeetMe conferencing. Zaptel/Dahdi is not included in this install procedure. Service httpd restart Download and untar source files.
For RHEL 5 nano +302 /etc/php.ini memorylimit = 128M For RHEL 6 nano +457 /etc/php.ini memorylimit = 128M As always after php.ini changes, apache needs to be restarted for the changes to take effect. RHEL 5 installs will probably already have this set correctly. Service httpd restart Memory Limit The recommended setting is 128M otherwise you may get warnings in FreePBX.