Wednesday, June 13, 2012

Asterisk 1.8 on Debian Squeeze 6.0

System requirements:
Operating System: debian Squeeze 6.0

1. Install Debian Squeeze 6.0
2. Edit the debian source list.
$nano /etc/apt/sources.list
deb squeeze main
deb-src squeeze main

deb squeeze/updates main
deb-src squeeze/updates main

deb squeeze-updates main
deb-src squeeze-updates main

deb testing main

deb squeeze-backports main

3. Update it!
$apt-get update

OPTIONAL: Incase you encounter a GPG error.
$apt-cache search keyring | grep debian
$apt-get install debian-multimedia-keyring
$apt-get update

4. install the dependencies
$apt-get install build-essential gcc make linux-headers-2.6.32-5-686 libxml2-dev libncurses5-dev libgtk2.0-dev libnewt0.52 libnewt-dev libssl-dev

5. Download the asterisk package. I used asterisk 1.8.3

6. Extract it!
$tar -zxvf asterisk-1.8-current.tar.gz

7. go to the directory and install it.
$ cd /usr/src/asterisk-1.8.3
$make install
$make samples
$make config
$make install-logrotate

8.Run the asterisk to see if the installation works!
$asterisk -vvvvvvvvvvc

9. Automate the asterisk service on startup
$update-rc.d asterisk defaults

10. Change your date and time.
$dpkg-reconfigure tzdata

Current default time zone: 'Asia/Manila'
Local time is now:      Fri Feb 17 08:22:36 PHT 2012.
Universal Time is now:  Fri Feb 17 00:22:36 UTC 2012.

11. update your date and time.
$apt-get install ntpdate

12. install "screen"
$apt-get install screen

13. install sox
$apt-get install sox

14. install lame
#go to /usr/src and download the latest version of lame
#Extract it!
$tar -zxvf download
$mv download lame-3.99.4
#go to the lame directory
$cd /usr/src/lame-3.99.4
$make install


install Dahdi and Libpri for Meetme
1. Download dahdi and libri
$cd /usr/src/

2. Extract it
$tar -zxvf libpri-1.4-current.tar.gz
$tar -zxvf dahdi-linux-complete-current.tar.gz

3. Go to libri directory and install
$cd /usr/src/libpri-1.4.12
$make install

4. Go to Dahdi directory and install
$cd /usr/src/dahdi-linux-complete-2.6.0+2.6.0
$make install
$make config

5. open /etc/dahdi/modules and remove all the devices that you don't have
$nano /etc/dahdi/modules
#uncomment all the devices you don't have

6. check if dahdi is working

7. rebuild asterisk with meetme. install the dependencies for the GUI of menuselect.
$apt-get install libnewt0.52 libnewt-dev
$cd asterisk-1.8.3
#check if the meetme module is included
$make menuselect
#it should be under > application > app_meetme
$make install
$make samples
$make config

No comments:

Post a Comment