Install and configure Asterisk on CentOS5.3

Source: Internet
Author: User
[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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.