How to Setup PBX with asterisk
- Friday, June 25, 2010, 5:31
- HOW TOs, Linux
- Add a comment
|
|
Asterisk is a software implementation of a telephone private branch exchange (PBX) originally created in 1999 by Mark Spencer of Digium. Like any PBX, it allows attached telephones to make calls to one another, and to connect to other telephone services including the public switched telephone network (PSTN) and Voice over Internet Protocol (VoIP) services.
Basic Requirements
openSSL and its development libraries
ncurses and ncurses-devel (for the CLI)
zlib (compression library)
newt and newt-devel libraries (for DAHDI utilities)
curl (to allow Asterisk to interact with web sites)
sendmail or postfix (for sending voicemail to your email)
Required packages for asterisk server
- Asterisk,
- libpri (which handles ISDN telephony),
- dahdi-linux (which handles analog and digital telephony interfaces),
- dahdi-tools (which has some dahdi-related utilities).
Copy this tarballs to some directory pbx in /usr/src extract the packages with following commands
# tar –zxvf libpri-1.4.10.tar.gz
# tar –zxvf dahdi-linux-2.2.0.tar.gz
# tar –zxvf dahdi-tools-2.0.0.tar.gz
# tar –zxvf asterisk-1.6.1.1.tar.gz
Then compile & install from source
To compile libpri,
# cd libpri-1.4.10
# make clean
# make install
# cd ..
Then DAHDI:
# cd dahdi-linux-2.2
# make all
#make install
#cd ..
Then DAHDI tools:
# cd dahdi-tools-2.0.0
# ./configure
# make
# make install
# make config
# cd ..
Finally Asterisk:
# cd asterisk-1.6.1.1
#./configure
# make menuselect(This will bring you a text based menu to select required modules.)
# make
# make install
# make samples
# make config
After reboot verify asterisk loaded successfully.
check DAHDI loaded , by
#lsmod | grep dahdi
We will get the several DAHDI modules including
dahdi_transcode 12164 1 wctc4xxp
dahdi_voicebus 45120 2 wctdm24xxp,wcte12xp
dahdi 196168 13 xpp,dahdi_transcode,wcb4xxp,wctdm,wcfxo,wctdm24xxp,wcte11xp,wct1xxp,wcte12xp,dahdi_voicebus,wct4xxp
crc_ccitt 6337 2 wctdm24xxp,dahdi
Connect to asterisk terminal using asterisk -r command.
The main configuration files are located in /etc/asterisk directory.
Source : lynuxstuff.com


