Asterisk is the first PBX system implemented with open source software. Asterisk was developed by Mark Spencer, the founder of Digium, when he was still studying at Auburn University from 65438 to 0999. Like other PBX systems, Asterisk also supports telephone dialing to another extension, as well as to the public switched telephone network and IP telephone system. The name asterisk comes from the asterisk "*".
Asterisk adopts the dual-track licensing model, the free model adopts the GNU General Public License (GPL), and the commercial license adopts the proprietary model, so there is no need to disclose the system source code.
Originally developed on Linux, the system can now run on quite a few platforms, including NetBSD, OpenBSD, FreeBSD, Mac OS X and Solaris. Someone transplanted the system to Microsoft Windows platform, which is AsteriskWin32. Asterisk is a fairly lightweight system, which can run on embedded systems such as OpenWrt.
The following contents will show you how to install and configure Asterisk in CentOS.
Unless otherwise specified below, all operations are performed on the command line.
[Preparation] Installation depends on the software and environment.
Yum -y upgrade (update software list and some software)
Yum -y update (upgrade existing software)
Yum install kernel-devel (required when installing the devel version of the kernel, asterisk installation)
Yum install kernel-PAE-devel (the server of Intel CPU needs more than 4G memory).
Yum installs bison
Yum installs bison-devel
Yum installs ncurses
yum install ncurses-devel
Yum installs zlib
yum install zlib-devel
Yum installs openssl
Yum installs openssl-devel
Yum installs gnutls-devel
Yum installs gcc
Yum installs gcc-c++
Yum installs newt-devel
Yum installation curl
Yum installs curl-devel
Yum installs mysql-devel
The installation of the above software can be installed together with the following commands
yum–y install kernel-devel kernel-PAE-devel bison bison-devel ncurses ncurses-devel zlib-devel OpenSSL OpenSSL-devel gnutls-devel gcc gcc-c++ newt-devel curl curl-devel MySQL-devel
You need to restart after installing these softwares.
Displays the installed components of the system and the components that can be installed:
#yum grouplist If the system is initially installed with minimal installation and xwindow is not installed, then install it first:
# yum group install“X Window System”
Install the GNOME desktop environment yum group Install the gnome desktop environment.
Install KDE Desktop Environment Yum! Group installed "KDE (K Desktop Environment)".
Uninstall GNOME desktop environment
Yum group deletes "GNOME desktop environment"
Uninstall KDE desktop environment Yum! Group deletes "kde (k desktop environment.
How to Install Chinese Language Pack under centos English Version
During the installation of centos, English was selected when installing the language pack. When browsing Chinese web pages or viewing Chinese documents after installation, you always need to install Chinese language packs. If you can't install it from the installation disk, you can install it through yum. The installation method is as follows:
Yum groupinstall & lt language & gt- support
In the above command,
VNC
Xsetroot- pure gray
VNC config-iconic & amp;
# xterm-geometry 80×24+ 10+ 10-ls-title " $ VNCDESKTOP Desktop " & amp;
gnome-session & amp;
startkde & amp
twm & amp
[Prepare the required software]
Asterisk 65438+
Dahdi-Linux-complete-2.2.0.2+2.2.0 (including Dahdi-Linux 2.2.0.2 and dahdi-tools 2.2.0).
lib pri 1.4 . 10. 1
Asterisk-attachment 1.4.9
Asterisk-sound 1.2. 1
[Installation process]
tar-xvzf lib pri- 1 . 4 . 10. 1 . tar . gz
Tal-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 lib pri- 1.4 . 10. 1
Manufacturing and selling. & carry out the installation
CD ../dahdi-Linux-complete-2.2.0.2+2.2.0
Make all
Carry out installation
Make configuration
CD ../asterisk-1.4.26.2
. /configuration
Making menu selection (compilation option selection)
Manufacturing and selling. & carry out the installation
Make a sample
Make configuration
CD ../asterisk-plug-in-1.4.9
cd cdr
Modify cdr_addon_mysql.c as follows.
Enter the command "vi cdr_addon_mysql.c".
Move the cursor to the blank line at the beginning, and then press the "I" key.
Enter "#define MYSQL_LOGUNIQUEID"
Press the "esc" key, enter ":wq" and press Enter.
laser record ..
. /configuration
Making menu selection
Manufacturing and selling. & carry out the installation
Make a sample
CD ../asterisk-sound-1.2. 1
Manufacturing and selling. & carry out the installation
cd /etc/init.d/
. Start with/asterisk
Asterisk -r
Introduction of asterisk function
Asterisk contains many functions that are only available in expensive commercial exchange systems, such as voice mail, multi-party voice conference, interactive voice response (IVR), telephone menu and telephone customer service center.
Managers can also write dialing scripts through Asterisk's built-in extended operation language to achieve special functional purposes. You can even write compatible modules in C language, or develop AGI programs in any compatible language by using stdin and stdout or network TCP sockets.
If the asterisk system calls the public switched telephone network or the trunk link public switched telephone network, the administrator must install the appropriate hardware. For example, various PCI interface cards produced by Digium are used to provide Asterisk with the ability to connect T 1, E 1 lines or other traditional lines. Chinese mainland also has a relatively low-priced compatible interface card similar to OpenVox.
Asterisk supports a very wide range of video and IP telephony protocols [4]. Include session initiation protocol (SIP), media gateway control protocol (mgcp) and H.323 protocol. Asterisk is compatible with most SIP phones. Asterisk exchange (IAX2) protocol is a trunk link protocol between PBX switches with asterisks natively provided by asterisks, and some VoIP service providers even natively support IAX2 protocol.
In order to meet the mixed service environment of traditional telephone and IP telephone, Asterisk can let managers suggest a brand-new single telephone system, or gradually transfer the existing telephone system to use new technologies. Some companies directly use Asterisk to replace traditional switches, and some companies use Asterisk to provide advanced functions, such as voice mail, or change long-distance calls through Asterisk to network transmission to achieve a cost-saving mechanism.
Because Asterisk is too professional and complex, a large number of simplified communication systems are derived from Asterisk for the convenience of users. For example, elastix, trixbox or Freeiris based on simplified Chinese, which are popular in Europe and America.