[Asterisk installation and configuration] the following does not indicate that all operations are performed in the command line [preparations] install the dependent software and environment yum? Yupgrade (Update Software List and some software) yum? Yupdate (upgrade existing software) yuminstallkernel-devel (to install the kernel of devel, which is required for asterisk installation) yuminstallke
[Install and configure Asterisk]
Unless otherwise specified, all operations are performed inCommandRow in progress
[Preparations] install dependent software and Environment
Yum? Y upgrade (Update Software List and some software)
Yum? Y upDate(Upgrade existing software)
Yum install kernel-devel (to install the kernel of devel, which is required for asterisk installation)
Yum install kernel-PAE-devel (the IntelCPU server needs to use more than 4 GB memory)
Yum install bison
Yum install bison-devel
Yum installNcUrses
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 newt-devel
Yum install curl
Yum install curl-devel
Yum install mysql-devel
You can run the following command to install the above software:
Yum? Y install kernel-devel kernel-PAE-devel bison-devel ncurses-devel zlib-devel openssl-devel gnutls-devel gcc-c ++ newt-devel curl -devel mysql-devel
After reboot is installed, restart the software.
[Prepare required software]
Asterisk 1.4.26.2
Dahdi-linux-complete-2.2.0.2 + 2.2.0 (including dahdi-linux 2.2.0.2 and dahdi-tools 2.2.0)
Libpri 1.4.10.1
Asterisk-DdOns 1.4.9
Asterisk-sounds 1.2.1
[Installation process]
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
CdLibpri-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 (select the compilation option)
Make & make install
Make samples
Make config
Cd./asterisk-addons-1.4.9
Cd cdr
Modify cdr_addon_mysql.c as follows:
Enter the command "vi cdr_addon_mysql.c"
Move the cursor to a blank line at the beginning and press "I"
Enter "# define MYSQL_LOGUNIQUEID"
Press the "esc" key and enter ": wq" and press Enter.
Cd ..
./Configure
Make menuselect
Make & make install
Make samples
Cd ../asterisk-sounds-1.2.1
Make & make install