Asterisk is a complete PBX in software. It runs on Linux BSD And Windows (emulated) and OS X and provides all of the features you would expect from a PBX and more. Asterisk does voice over IP in four protocols, and can interoperate with almost all standards-based telephony equipment using relatively inexpensive hardware. Asterisk provides Voicemail services with Directory, Call Conferencing, Interactive Voice Response, Call Queuing. It has support for three-way calling, caller ID services. Asterisk needs no additional hardware for Voice-over-IP, although it does expect a non-standard driver that implements dummy hardware as a non-portable timing mechanism (for certain applications such as conferencing). A single (or multiple) VOIP provider(s) can be used for outgoing and/or incoming calls (outgoing and incoming calls can be handled through entirely different VOIP and/or telco providers) DEPENDENCIES Install Centos 5.3 from net Install cd Asterisk Prerequests
Linux Package Requirements
ODBC: unixODBC unixODBC-devel libtool-ltdl libtool-ltdl-devel libtool.
Asterisk:
C ++ : gcc gcc-c++
Kernel Prerequests : kernel-devel bison bison-devel gnutls-devel openssl openssl-devel libtermcap-devel ncurses ncurses-devel doxygen curl-devel libidn and libidn-devel .
Zttool: newt-devel.
DUNDi: zlib zlib-devel
Mysql comnnector -yum install mysql-connector-odbc
Asterisk 1.6.2 and Higher
Yum install libxml2 libxml2-python libxml2-devel
### INSTALLING ZAPTEL ###
cd /usr/src/zaptel
make clean
make
make install
make config
If you have any zaptel hardware it is now recommended to edit /etc/default/zaptel or /etc/sysconfig/zaptel and set there an optimal value for the variable MODULES ..
chkconfig zaptel on
service zaptel start
### INSTALL LIBPRI ###
cd /usr/src/libpri
make clean
make
make install
### INSTALLING ASTERISK###
cd /usr/src/asterisk/asterisk-VERSION
make clean
./configure
Choose which options to install (voicemail storage, codecs etc.)
make menuselect
make
make install
Install sample files in /etc/asterisk, install docs/manpages and set to start on boot.
make samples
make config
chkconfig asterisk on
service asterisk start
How to uninstall Asterisk...
First you need stop Asterisk and unload its modules that it may be using, e.g Zaptel’s.
You have to kill safe_asterisk first then asterisk second. (The safe_asterisk script is the preferred way to run Asterisk for most of us. This script starts Asterisk and monitors it to make sure it is still running. If the Asterisk process dies, the script will attempt to restart it.)
killall -9 safe_asterisk
killall -9 asterisk
Then you’ll have to unload the Zaptel drivers; check which ones are loaded by issuing a:
# lsmod | grep zaptel
zaptel 214820 2 wcfxo,wctdm
crc_ccitt 2113 1 zaptel
This means that the submodules wcfxo and wctdm are loaded for zaptel. You will have to remove them in reverse order:
modprobe -r wcfxo
modprobe -r wctdm
..repeat for all zaptel submodules….
modprobe -r zaptel
If you repeat the lsmod | grep zaptel command now, it should find nothing.
Now to Delete Asterisk files :-
rm -rf /etc/asterisk
rm -f /etc/zaptel.conf
rm -rf /var/log/asterisk
rm -rf /var/lib/asterisk
rm -rf /var/spool/asterisk
rm -rf /usr/lib/asterisk
Now Asterisk has been removed from your system