3上Asterisk安装及配置,CentOS下asterisk安装详细实录

作者: 关于计算机  发布:2019-10-30

新搞了台机器,安装一下asterisk试试,配了块4e1的卡,记录一下安装进程。

[Asterisk安装及安排]

率先步,操作系统

以下未有特别表明,全体操作都以在命令行中

安装CentOS 5.2 DVD版,硬盘大,把能装的服务都安装一下。

       [前期打算]安装正视软件和境况

本条设置进度,照旧单独写一下吗,免得忘记了。

       yum –y upgrade                   (更新软件列表和一些软件)

第二步,asterisk的安装

       yum –y update                            (进级现有软件)

1.检查种类基本版本

       yum install kernel-devel         (安装devel版的水源,asterisk安装需求)

#uname -a

       yum install kernel-PAE-devel  (AMDCPU的服务器上超越4G内部存储器是供给使用)

例如:

       yum install bison

Linux localhost.localdomain 2.6.18-92.el5xen #1 SMP Tue Jun 10 19:55:54 EDT 2008 i686 i686 i386 GNU/Linux  

       yum install bison-devel

2.检查是或不是曾经设置kernel-devel

       yum install ncurses

# rpm -q kernel-devel

       yum install ncurses-devel

譬喻说:kernel-devel-2.6.18-92.1.10.el5,表示已经安装,若无设置,要用yum安装一下,

       yum install zlib

如下 yum install kernel-devel

       yum install zlib-devel

自个儿的是平昔不安装的,不设置以往编译是个难题。

       yum install openssl

3.反省是还是不是早就安装以下的拔刀相助软件包

       yum install openssl-devel

rpm -q bison
rpm -q bison-devel
rpm -q ncurses
rpm -q ncurses-devel
rpm -q zlib
rpm -q zlib-devel
rpm -q openssl
rpm -q openssl-devel
rpm -q gnutls-devel
rpm -q gcc
rpm -q gcc-c++

       yum install gnutls-devel

rpm -q mysql-devel

       yum install gcc

最少mysql-devel须求设置

       yum install gcc-c++

4.固然未有设置则用yum安装

       yum install newt-devel

yum install bison
yum install bison-devel
yum install ncurses
yum install ncurses-devel
yum install zlib
yum install zlib-devel
yum install openssl
yum install openssl-devel
yum install gnutls-devel
yum install gcc
yum install gcc-c++
yum install mysql-devel

       yum install curl

图片 1

       yum install curl-devel

       yum install mysql-devel

上述软件的设置能够用以下命令后生可畏道安装

yum –y install kernel-devel kernel-PAE-devel bison bison-devel ncurses ncurses-devel zlib zlib-devel openssl openssl-devel gnutls-devel gcc gcc-c++ newt-devel curl curl-devel mysql-devel

reboot            安装完那些软件供给重启一下

       [准备所需软件]

       Asterisk 1.4.26.2

       Dahdi-linux-complete-2.2.0.2+2.2.0            (包含dahdi-linux 2.2.0.2和dahdi-tools 2.2.0)

       Libpri 1.4.10.1

Asterisk-addons 1.4.9

       asterisk-sounds 1.2.1

      

[设置进程]

tar -xvzf libpri-1.4.10.1.tar.gz

tar -xvzf dahdi-linux-complete-current.tar.gz

tar -xvzf asterisk-1.4.26.2.tar.gz

tar -xvzf asterisk-addons-1.4.9.tar.gz

tar -xvzf asterisk-sounds-1.2.1.tar.gz

cd libpri-1.4.10.1

make && make install

cd ../dahdi-linux-complete-2.2.0.2+2.2.0

make all

make install

make config

cd ../asterisk-1.4.26.2

./configure

make menuselect    (编写翻译选项选拔)

make && make install

make samples

make config

cd ../asterisk-addons-1.4.9

cd cdr

修改cdr_addon_mysql.c,具体操作如下

输入指令”vi cdr_addon_mysql.c”

运动光标到起来的二个空白行,按下键”i”

输入”#define MYSQL_LOGUNIQUEID”

按”esc”键,输入”:wq”回车

cd ..

./configure

make menuselect

make && make install

make samples

cd ../asterisk-sounds-1.2.1

make && make install

图片 2

本文由今晚买四不像发布于关于计算机,转载请注明出处:3上Asterisk安装及配置,CentOS下asterisk安装详细实录

关键词:

上一篇:四招聘教授您制作轻型Linux桌面遭受
下一篇:没有了