找回密码
 注册

QQ登录

只需一步,快速开始

BCM 门户 IT世界 系统管理 查看内容

FreePBX Install Guide (CentOS v5.x, Asterisk v1.6.x, FreePBX)

2011-11-6 17:50| 发布者: Test| 查看: 4709| 评论: 0|来自: PowerPBX.org

摘要: UPDATED for Asterisk v1.6.2 and FreePBX v2.8 Includes every detail in the form of step by step instructions from bare metal to a running VoIP PBX in about 2 hours. When installing Linux, do NOT inst ...

Compile-install Zaptel (DHADI) and Asterisk

cd /usr/src/dahdi-linux-complete-2.4.0+2.4.0
make clean && make all && make install && make config

cd /usr/src/libpri-1.4.11.4
make clean && make && make install

cd /usr/src/asterisk-1.6.2.13
make clean
&& ./configure && make menuselect

select core sounds and uncheck all except ulaw.  Same with addon sounds
At menu press "x" to save

make && make install

mkdir /var/run/asterisk

Sangoma Wanpipe Installation

NOTE: You are required to have Zaptel and Asterisk(?) installed before installing Wanpipe

cd /usr/src

Check sangoma.com to see if this is the latest wanpipe driver.  Download the newest released version for the A200D card.
wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.x.tgz
tar zxvf wanpipe-3.x.tgz
cd /usr/src/wanpipe-3.x
./Setup install


Would you like to install WAN Router now? (y/n) y

Would you like update/upgrade wanpipe drivers? (y/n) y

Press [Enter] to continue...

Proceed to build WANPIPE kernel modules ? (y/n) y

Please Select Compilation Mode

1. WAN Protocol Support (Default)

        Protocols: Frame Relay, CHDLC, PPP, X25 and ADSL

2. TDM Voice (Asterisk) Support Only

        Protocols: TDMV (Asterisk) on AFT adatpers.

3. TDM Voice (Asterisk) + WAN Protocol Support

        Protocols: TDMV, Frame Relay, CHDLC, PPP, X25, ADSL

4. TDM Voice (Asterisk) + SS7 Support + WAN Protocol Support

        Protocols: TDMV, SS7, Frame Relay, CHDLC, PPP, X25, ADSL

5. Custom Compilation Mode

        Specify protocols to be added into the WANPIPE

        kernel drivers.

Please select (1,2,3,4 or 5) [Default: 1]: 2

Press Enter for Default
Press Enter for Default

Enable TDMV DCHAN Native HDLC Support & Patch Zaptel ? (y/n) y

Your Zaptel source was modified, recompile/reinstall zaptel ? (y/n) y

Everything else just continue to go with “y” or ENTER for defaults

To upgrade the Wanpipe driver proceed as follows:

check your current version

wanrouter version

Rename or delete original wanpipe source directory

Download new source from Sangoma

Stop Freepbx/Asterisk
amportal stop

And just to make sure asterisk stops
asterisk stop

Now stop the wanrouter software
wanrouter stop

Install/compile new driver as per above fresh install procedure.

NOTE:  After FreePBX install you may need to run /usr/sbin/wancfg_zaptel again to regenerate the /etc/zaptel.conf and /etc/asterisk/zapata.conf files

Create uses and set permissions

 

cd /usr/src
useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk

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

Since the Asterisk default moh directory (/moh) and the Freepbx default moh directory (/mohmp3) are different we need to create a symbolic link so moh files are where FreePBX expect them to be.
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. So we want to install mpg123 to allow us to convert uploaded mp3's to wav automagically.
cd /usr/src
wget http://sourceforge.net/projects/mpg123/files/mpg123/1.12.5/mpg123-1.12.5.tar.bz2/download
tar -xjvf mpg123-1.12.5.tar.bz2

cd mpg123-1.12.5
make clean
./configure

make
make install

Freepbx php script cannot find mpg123 by default so we need to create a symbolic link.
ln -s /usr/local/bin/mpg123 /usr/bin/mpg123


Change User apache and Group apache to User asterisk and Group asterisk.

sed -i "s/User apache/User asterisk/" /etc/httpd/conf/httpd.conf
sed -i
"s/Group apache/Group asterisk/" /etc/httpd/conf/httpd.conf

You can choose to change the default AllowOverride All to AllowOverride None to prevent .htaccess permission problems which can be frustrating to troubleshoot.
sed -i "s/AllowOverride All/AllowOverride None/" /etc/httpd/conf/httpd.conf



鲜花

握手

雷人

路过

鸡蛋

相关阅读

最新评论

手机版|小黑屋|BC Morning Website ( Best Deal Inc. 001 )

GMT-8, 2026-4-10 21:55 , Processed in 0.018643 second(s), 18 queries .

Supported by Weloment Group X3.5

© 2008-2026 Best Deal Online

返回顶部