How to Setup PBX with asterisk

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

  1. Asterisk,
  2. libpri (which handles ISDN telephony),
  3. dahdi-linux (which handles analog and digital telephony interfaces),
  4. 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

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

Related Posts

  • No Related Post
Related Posts with Thumbnails

About the Author

CoreTimer

has written 31 stories on this site.

System administrator(Linux/UNIX/Windows) RHCE,MCP,CCNA

Write a Comment

Copyright © 2012 CoreTimer.com|System Admin’s Reference. All rights reserved.

Switch to our mobile site