-
Notifications
You must be signed in to change notification settings - Fork 7
/
INSTALL.html
314 lines (292 loc) · 13.6 KB
/
INSTALL.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
<HEAD>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<link rel="stylesheet" title="" type="text/css" href="./doc/DeveloperGuide/style.css">
<TITLE> 使用说明 </TITLE>
</HEAD>
<BODY>
<h1><font face="微软雅黑">Freeiris2 开源通信项目</font></h1>
<h2><font color="#0000FF" face="微软雅黑">关于</font></h2>
<p><font face="微软雅黑">Freeiris是我们通信项目的名称. Free表示自由,开放,共享, iris为希腊神话中的彩虹女神,宙斯<br>
的通信官. Freeiris项目是由通信爱好者所共同组建的一个平台, 因为我们这里大部分同时也是<br>
开源软件运动的推广者, 因此我们将自己的精力, 技术, 融合在了一起创造了Freeiris这么一个平<br>
台.<br>
</font></p>
<h2><font face="微软雅黑" color="#0000FF">信息</font></h2>
<p><font face="微软雅黑">Freeiris2采用GPL协议第二版作为发行协议。相关协议请仔细阅读文件LICENSE<br>
如果您不同意协议中的要求或您存在个人生理或心理缺陷无法阅读协议请您立即放弃使<br>
用Freeiris2,如果您需要帮助请尽快与我们联系。<br>
<br>
</font></p>
<h2><font face="微软雅黑" color="#0000FF">文档</font></h2>
<p><font face="微软雅黑"><a href="./doc/freeiris2_userguide.pdf" target='_blank'>Freeiris2 用户操作手册 </a><br>
<a href="./doc/DeveloperGuide/index.html" target='_blank'>Freeiris2 开发人员指南 </a><br>
<a href="./doc/DeveloperGuide/freeiris2extra/index.html" target='_blank'>Freeiris2 Extra Interface 接口开发手册 </a><br>
<br>
<a href="./doc/FreeirisTeam/" target='_blank'>项目历史开发文档 </a><br>
<br>
更多的消息或信息请访问官方网站 http://www.freeiris.org<br>
</font></p>
<h2><font face="微软雅黑" color="#0000FF">安装</font></h2>
<p><font face="微软雅黑"><font color="#FF0000">警告 : </font><br>
1. Freeiris2目前不适合在WIN下安装和开发, 客户端部分webclient/目录可以单独被安装在win下请自己研究.<br>
2. Freeiris2是一类专业系统,如果没有相关专业知识请不要尝试安装使用<br>
3. 因为可能导致文件权限出错,请不要在windows下解压缩文件.<br>
4. 如果遇到问题请访问网站中的讨论组进行讨论,无论什么时候开发组成员都不会回答任何关于使用问题的Email或咨询.<br>
5. 如果不是Linux专家请安装前关闭系统的selinux和firewall防止IP数据无法穿透.<br>
</font></p>
<h2><font face="微软雅黑" color="#0000FF">目前系统安装方式</font></h2>
<p><font face="微软雅黑">
<ul>
<li>第一种方式、光盘版安装——适合独立安装新系统(仅用于测试和演示)
<ol>
<li> <font face="微软雅黑"><a href="http://www.freeiris.org" target="_blank">请访问网站直接下载光盘版安装包并且刻录光盘进行安装</a></font></li>
</ol>
</li>
<!-- <li>第二种方式、采用RPM包的免编译安装方法——适合在现有系统进行集成
<ol>
<li> <font face="微软雅黑"><a href="#inst_yum">YUM自动安装基本系统</a></font></li>
<li> <font face="微软雅黑"><a href="#inst_fri2">安装Freeiris2安装包</a></font></li>
</ol>
</li> -->
<li>第二种方式、采用全程源代码编译安装方法——可以订制更详细的内容,适合高级用户
<ol>
<li> <font face="微软雅黑"><a href="#inst_src">全程编译安装基本系统</a></font></li>
<li> <font face="微软雅黑"><a href="#inst_fri2">安装Freeiris2安装包</a></font></li>
</ol>
</li>
</ul>
<br>
<br>
</font></p>
<!-- <br>
<br>
<h3><font face="微软雅黑" color="#0000FF"><a name="#inst_yum">YUM自动安装基本系统:</a></font></h3>
<p><font face="微软雅黑">本方法适合在旧有系统中安装freeiris2同时也比较简单容易.<br>
<br>
<br>
<font color="#FF0000">需要环境:</font><br>
Centos 5.X (Centos 5.3最好)<br>
Redhat类操作系统(Centos、Fedora、Redhat)都可以,但未经过测试.<br>
其他2.6.X的Linux不支持.<br>
<br>
以下说明都以Centos 5.3为例
<br>
<br>
<font color="#0000FF"><b>创建文件/etc/yum.repos.d/freeiris.repo:</b></font><br>
<pre id='code'>
vim /etc/yum.repos.d/freeiris.repo
#在其中写入:
[asterisk-tested]
name=CentOS-$releasever - Asterisk - Tested
baseurl=http://packages.asterisk.org/centos/$releasever/tested/$basearch/
enabled=0
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium
[asterisk-current]
name=CentOS-$releasever - Asterisk - Current
baseurl=http://packages.asterisk.org/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium
[digium-tested]
name=CentOS-$releasever - Digium - Tested
baseurl=http://packages.digium.com/centos/$releasever/tested/$basearch/
enabled=0
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium
[digium-current]
name=CentOS-$releasever - Digium - Current
baseurl=http://packages.digium.com/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium
</pre>
<font color="#FF0000"><b>安装YUM版的Asterisk所有组件和系统依赖组件,如果你要使用Openvox的特殊驱动卡,请自己再重新编译一次dahdi以便支持:</b></font><br>
<pre id='code'>
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
</pre>
<font color="#0000FF"><b>设置启动引导:</b></font><br>
<pre id='code'>
chkconfig --level 345 httpd on
chkconfig --level 345 mysqld on
</pre>
<font color="#FF0000"><b>重新启动系统</b></font><br>
<a href="#inst_fri2"><font color="#FF0000">下面请进入安装freeiris2安装包阶段</font></a>
<br>
<br>
<br>
<br>
</font></p> -->
<h3><font face="微软雅黑" color="#0000FF"><a name="#inst_src">全程编译安装基本系统:</a></font></h3>
<p><font face="微软雅黑">本安装方法适合高级使用者,从代码进行安装.<br>
<br>
<br>
<font color="#FF0000">需要环境:</font><br>
Centos 5.X (Best is >= Centos 5.3)<br>
Redhat类操作系统(Centos、Fedora、Redhat)都可以,但未经过测试.<br>
其他2.6.X的Linux, 未经过测试,并且系统可能需要经过修改.<br>
<br>
以下说明都以Centos 5.6为例<br>
<br>
<font color="#FF0000">安装依赖包:</font><br>
<pre id='code'>
yum install kernel-devel httpd mysql-server mysql mysql-devel php php-mysql perl libdbi-dbd-mysql perl-libwww-perl php-process
</pre>
建议依赖包安装完成后重新启动一次系统<br>
<br>
<font color="#FF0000">其中httpd和mysql要设置为系统服务跟随系统一起启动</font><br>
<br>
<br>
<font color="#0000FF"><b>安装dahdi驱动(A1200P板卡用户要自己打patch请咨询openvox公司,如果要安装oslec回音消除也请参考资料):</b></font><br>
<pre id='code'>
wget "http://www.freeiris.org/download/down.php?target=asterisk&obj=&file=dahdi-linux-complete-2.5.0.2%2B2.5.0.2.tar.gz"
tar zxvf dahdi-linux-complete-2.5.0.2+2.5.0.2.tar.gz
cd dahdi-linux-complete-xxx
make all
make install
make config
/etc/init.d/dahdi start
/etc/init.d/dahdi stop
cd ..
wget "http://www.freeiris.org/download/down.php?target=asterisk&obj=&file=libpri-1.4.12.tar.gz"
tar zxvf libpri-1.4.12.tar.gz
cd libpri-1.4.12
make
make install
cd ..
</pre>
<font color="#0000FF"><b>安装asterisk软件:</b></font><br>
<pre id='code'>
wget "http://www.freeiris.org/download/down.php?target=asterisk&obj=&file=asterisk-1.4.43.tar.gz"
tar zxvf asterisk-1.4.43.tar.gz
cd asterisk-1.4.43
./configure
make
make install
make samples
make config
cd ..
wget "http://www.freeiris.org/download/down.php?target=asterisk&obj=&file=asterisk-addons-1.4.13.tar.gz"
tar zxvf asterisk-addons-1.4.13.tar.gz
cd asterisk-addons-1.4.13
./configure
make cdr
cp cdr/cdr_addon_mysql.so /usr/lib/asterisk/modules/
cd ..
</pre>
<font color="#FF0000">注意!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>
如果这个步骤提示cdr_addon_mysql.so找不到,很可能是你没有安装mysql-devel造成的.<br>
如果报告这个错误,请先返回上面的步骤看看是不是有问题,不要跳过这个步骤.</font><br>
<!-- <br>
<font color="#0000FF"><b>安装g729 g723的语音编码:</b></font><br>
请注意这两个语音编码是专利编码,如果你要使用在商业领域,请向编码版权所有者交纳版税.否则请跳过此步骤.
<pre id='code'>
wget "http://asterisk.hosting.lv/bin/codec_g723-ast14-gcc4-glibc-pentium3.so"
wget "http://asterisk.hosting.lv/bin/codec_g729-ast14-gcc4-glibc-pentium3.so"
cp -avf codec_g72*.so /usr/lib/asterisk/modules/
</pre> -->
<a href="#inst_fri2"><font color="#FF0000">下面请进入安装freeiris2安装包阶段</font></a>
<br>
<br>
<br>
<br>
<h3><font face="微软雅黑" color="#0000FF"><a name="inst_fri2">安装freeiris2安装包:</a></font></h3>
下载方法A.发行版
<pre id='code'>
wget "http://www.freeiris.org/download/down.php?target=darwin&obj=&file=freeiris2-current.tar.gz"
tar zxvf freeiris2-current.tar.gz
cd freeiris2-*
</pre>
下载方法B. SVN版
<pre id='code'>
svn checkout http://darwin.freeiris.org/svn/freeiris/branches/freeiris2 ./freeiris2
cd freeiris2
</pre>
<br>
执行安装程序:<br>
<pre id='code'>
chmod +x install.pl
./install.pl --install
</pre>
<pre id='code'>
Freeiris2 Install Stage by hoowa sun 2.2
sun bing <[email protected]>
----------------------------------------------------------
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 <[email protected]> #
# www.freeiris.org #
# 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 http://asterisk.hosting.lv/ #
# 3. In Commerce you may need to pay a royalty #
# fee. Please see http://www.sipro.com 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!
</pre>表示安装完成,重新启动系统安装流程会生效.<br>
<!-- <pre id='code'>
[INPUT] Set to html default(yes/no)?
提示你是否将freeiris2设置为默认页,选择yes就表示这个机器的默认web页就是本系统
</pre> -->
<br>
<br>
<font color="#FF0000"><b>特别说明:</b></font><br>
如果过程中提示数据库部分,说明系统尝试默认数据库登陆失败,请根据提示填写数据库连接信息.<br>
默认情况下系统是以mysql的localhost root方式登陆,并且自动创建freeiris2库.<br>
</font></p>
<font color="#FF0000"><b>参考资料: Openvox公司硬件板卡的WIKI文档库</b></font><br>
http://wiki.openvox.cn/index.php/Troubleshooting_of_PRI_cards_Chinese</font></p>
</BODY>
</HTML>