分类: 项目管理
2010-03-19 19:42:46
警告 :
1. Freeiris2目前不适合在WIN下安装和开发, 客户端部分webclient/目录可以单独被安装在win下请自己研究.
2. Freeiris2是一类专业系统,如果没有相关专业知识请不要尝试安装使用
3. 因为可能导致文件权限出错,请不要在windows下解压缩文件.
4. 如果遇到问题请访问网站中的讨论组进行讨论,无论什么时候开发组成员都不会回答任何关于使用问题的Email或咨询.
5. 如果不是Linux专家请安装前关闭系统的selinux和firewall防止IP数据无法穿透.
本方法适合在旧有系统中安装freeiris2同时也比较简单容易.
需要环境:
Centos 5.X (Centos 5.3最好)
Redhat类操作系统(Centos、Fedora、Redhat)都可以,但未经过测试.
其他2.6.X的Linux不支持.
以下说明都以Centos 5.3为例
创建文件/etc/yum.repos.d/freeiris.repo:
vim /etc/yum.repos.d/freeiris.repo #在其中写入: [asterisk-tested] name=CentOS-$releasever - Asterisk - Tested baseurl= enabled=0 gpgcheck=0 #gpgkey= [asterisk-current] name=CentOS-$releasever - Asterisk - Current baseurl=http://packages.asterisk.org/centos/$releasever/current/$basearch/ enabled=1 gpgcheck=0 #gpgkey= [digium-tested] name=CentOS-$releasever - Digium - Tested baseurl= enabled=0 gpgcheck=0 #gpgkey= [digium-current] name=CentOS-$releasever - Digium - Current baseurl=http://packages.digium.com/centos/$releasever/current/$basearch/ enabled=1 gpgcheck=0 #gpgkey=安装YUM版的Asterisk所有组件和系统依赖组件,如果你要使用Openvox的特殊驱动卡,请自己再重新编译一次dahdi以便支持:
yum install asterisk14 asterisk14-devel asterisk14-dahdi asterisk14-addons-mysql dahdi-linux yum install dahdi-tools libpri httpd mysql-server mysql-devel php php-mysql perl-libwww-perl yum install libdbi-dbd-mysql r8101-kmod-base r8168-kmod-base设置启动引导:
chkconfig --level 345 httpd on chkconfig --level 345 mysqld on设置启动引导Asterisk(目前YUM版不能自动实现,如果你安装时已经实现了,就要跳过此步骤):
echo "/usr/sbin/safe_asterisk &" >> /etc/rc.local重新启动系统
本安装方法适合高级使用者,从代码进行安装.
需要环境:
Centos 5.X (Centos 5.3最好)
Redhat类操作系统(Centos、Fedora、Redhat)都可以,但未经过测试.
其他2.6.X的Linux, 未经过测试,并且系统可能需要经过修改.
以下说明都以Centos 5.3为例
查询是否满足依赖包:
rpm -q 'kernel-devel' rpm -q 'httpd' rpm -q 'mysql-server' rpm -q 'mysql' rpm -q 'mysql-devel' rpm -q 'php' rpm -q 'php-mysql' rpm -q 'perl' rpm -q 'libdbi-dbd-mysql' rpm -q 'perl-libwww-perl'如果你缺少以上包使用命令: yum install (包名) 进行安装,或从你的光盘中查找RPM包进行安装.
wget "" tar zxvf dahdi-linux-2.2.0.2.tar.gz cd dahdi-linux-2.2.0.2 make make install cd .. wget "" tar zxvf dahdi-tools-2.2.0.tar.gz cd dahdi-tools-2.2.0 ./configure make make install make config /etc/init.d/dahdi start /etc/init.d/dahdi stop cd .. wget "" tar zxvf libpri-1.4.10.tar.gz cd libpri-1.4.10 make make install cd ..安装asterisk软件:
wget "" tar zxvf asterisk-1.4.26.tar.gz cd asterisk-1.4.26 ./configure make make install make samples make config cd .. wget "" tar zxvf asterisk-addons-1.4.8.tar.gz cd asterisk-addons-1.4.8 ./configure make cdr cp cdr/cdr_addon_mysql.so /usr/lib/asterisk/modules/ cd ..注意!!!!!!!!!!!!!!!!!!!!!!!!!!!
wget "http:///download/down.php?target=freeiris2&obj=source&file=freeiris2-current.tar.gz" tar zxvf freeiris2-current.tar.gz cd freeiris2-*下载方法B. SVN版
svn checkout ./freeiris2 cd freeiris2
chmod +x install.pl ./install.pl --install
Freeiris2 Install Stage by hoowa sun 2.2 sun bing表示安装完成,重新启动系统安装流程会生效.---------------------------------------------------------- WARNING: This is free Open Source software. IT COMES WITHOUT WARRANTY OF ANY KIND. ---------------------------------------------------------- [STEP] Prerequest checking......... [STEP] Install files......... [RESPONSE] create folder --> /freeiris2/ [RESPONSE] Copying /home/hoowa/fri2svn/trunk/* ---> /freeiris2/...... `/freeiris2//contrib/init.d/fri2d' -> `/etc/init.d/fri2d' `/freeiris2//contrib/init.d/hardware' -> `/etc/init.d/hardware' #==============================================# # ______ _ _ ___ # # | ____| (_) (_) |__ \ # # | |__ _ __ ___ ___ _ _ __ _ ___ ) | # # | __| '__/ _ \/ _ \ | '__| / __| / / # # | | | | | __/ __/ | | | \__ \/ /_ # # |_| |_| \___|\___|_|_| |_|___/____| # # # #==============================================# # sun bing # # # # Fonoirs Co.,Ltd. # #==============================================# # # # Congration Your Install files Completed! # # # # Warnning !!!! # # For RPM INSTALL : # # Your need to run './install.pl --setup' # # # #==============================================# ---------------------------------------------------------- Setup Freeiris2 ---------------------------------------------------------- [STEP] Setup your Mysql Database............. [RESPONSE] Try To mysql with user: root pass: null host: localhost [RESPONSE] Initlization database...... #==============================================# # G.729 G.723.1 LICENSE WARNNING!!! # #==============================================# # 1. This Codec G.729 and G.723.1 used only in # # education purposes. # # 2. Files from # # 3. In Commerce you may need to pay a royalty # # fee. Please see for # # details. if a patent exists in you country# # for G.729 or G.723.1 then you should # # contact the owner of that patent and # # request their permission before excuting # # the code. # # 4. if you don't agree this license please # # remove files from # # /usr/lib/asterisk/modules/ # #==============================================# [RESPONSE] install G.729 G.723.1 Binary files [RESPONSE] set freeiris2 services [RESPONSE] install example [RESPONSE] all done! [RESPONSE] Please Reboot your system!