OtherPapers.com - Other Term Papers and Free Essays
Search

Asterisk Install Guide

Essay by   •  January 4, 2012  •  Study Guide  •  4,449 Words (18 Pages)  •  1,507 Views

Essay Preview: Asterisk Install Guide

Report this essay
Page 1 of 18

Install of Asterisk 1.4.2 and Zaptel 1.4.1 and Libpri 1.4.0 on Ubuntu Server Edgy 2.6.17-10-server with Digium Wildcard TE110P T1/E1 card and Wildcard TDM2400P version 3

Add universe/multiverse to apt catalogs

Backup original version of sources list

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

modify sources list for universe

uncomment the appropriate lines in this file

Now get updates of catalog and upgrade

$ sudo apt-get update

$ sudo apt-get upgrade

Following was based on:

http://www.voip-info.org/tiki-index.php?page=Asterisk+Linux+Ubuntu

1. Install build packages

apt-get install cvs build-essential automake autoconf bison flex libtool libncurses5-dev libssl-dev

2. Install kernel headers matching the current kernel version.

root@santo:~ # uname -a

Linux santo 2.6.8.1-5-686-smp #1 SMP Mon Mar 14 21:59:14 UTC 2005 i686 GNU/Linux

root@santo:~ # apt-cache search inux-headers 2.6.8.1-5-686-smp

linux-headers-2.6.8.1-5-686-smp - Linux kernel headers 2.6.8.1 on PPro/Celeron/PII/PIII/PIV SMP

root@santo:~ # apt-get install linux-headers-2.6.8.1-5-686-smp

3. Create a link to the current headers so that the Asterisk makefiles can find them.

root@santo:~ # ln -s /usr/src/linux-headers-2.6.8.1-5-686-smp /usr/src/linux-2.6

4. Get latest zaptel source from CVS (CVS will not work through YPG firewall)

cd /usr/src

export CVSROOT=:pserver:anoncvs@cvs.digium.com:/usr/cvsroot

cvs login (password anonvcs)

cvs checkout zaptel asterisk

4.b Download latest zaptel driver from www.asterisk.org and extract the tar into /usr/src since CVS won't work

You can mount a usb flash disk using mount/dev/sda1 /mnt/usb (assuming you have already created the /mnt/usb directory)

Tar -xvf filename.tar

5. Compile zaptel drivers look at README.Linux26 Zaptel->Libpri->Asterisk must be installed in the correct order or some features will not be available in Asterisk

modprobe crc-ccitt (zaptel requires crc-ccitt for kernel 2.6)

./configure

cd /usr/src/zaptel

make clean

make

make install

6. Load kernel modules

modprobe crc-ccitt

Modprobe zaptel

Modprobe wcte11xp or wcte12xp depending on rev. of card

Modprobe wctdm24xxp

7. Verify that the modules were loaded correctly by running dmesg.

You should see lines like this (assuming that you actually have an X101P

card installed):

Zapata Telephony Interface Registered on major 196

ACPI: PCI interrupt 0000:01:02.0A -> GSI 17 (level, low) -> IRQ 201

wcfxo: DAA mode is 'FCC'

Found a Wildcard FXO: Wildcard X101P

You might see something like:

zaptel: Unknown symbol crc_ccitt_table -> modprobe crc_ccitt first

Unknown symbol request_firmware -> modprobe firmware_class first

Unknown symbol release_firmware -> modprobe firmware_class first

8. Add the following lines to /etc/modules so that the modules will be loaded

automatically when the machine is rebooted:

crc-ccitt

8b. Add a startup script to ensure that the zaptel modules are loaded in the correct order (for some reason they seem to load in a different order occasionally upon startup).

1.Create a file called pbx

#! /bin/sh

# /etc/init.d/pbx

#

modprobe -r zaptel

modprobe -r wctdm24xxp

modprobe -r wcte11xp or wcte12xp depending on rev. of card

modprobe wcte11xp or wcte12xp depending on rev. of card

modprobe wctdm24xxp

2. chmod a=rwx

3. copy the file into /etc/init.d

4. make it execute automatically by

update-rc.d pbx defaults

9. Compile/Install Libpri

From within /usr/src/libpri-(version) folder

Make clean

Make

Make install

10. Compile/Install Asterisk

cd /usr/src/asterisk

./configure

make clean;make;

make install;

10b. Get DoxyGen for the documentation

apt-get install doxygen

Updating Asterisk Install

1. Download latest asterisk/zaptel/libpri dfrom www.asterisk.org and extract the tar into /usr/src since CVS won't work

You can mount a usb flash disk using mount/dev/sda1 /mnt/usb (assuming you have already created

...

...

Download as:   txt (26.9 Kb)   pdf (279.5 Kb)   docx (23.9 Kb)  
Continue for 17 more pages »
Only available on OtherPapers.com