Glad you could stop by the Linux Basement site. Linux Basement is an informational Podcast about Linux, open source software and lots of other wonderful technology. If you want to find out more about open source technologies, subscribe and have a listen!

#linuxbasement is up at irc.freenode.net

MP3 Feed
Ogg Vorbis Feed
MP3 Feed (all episodes)
Ogg Feed (all episodes)

Video blog (not the show!)

 

Asterisk from source on Hardy Server

**NOTE: This document is still under construction***

Asterisk from Source Ubuntu Hardy

Fresh hardy install with only SSH and base packages.

apt-get install linux-headers-$(uname -r) build-essential automake autoconf bison flex libtool libncurses5-dev libssl-dev subversion

cd /usr/src

svn checkout http://svn.digium.com/svn/asterisk/trunk asterisk
svn checkout http://svn.digium.com/svn/zaptel/branches/1.4 zaptel
svn checkout http://svn.digium.com/svn/libpri/trunk libpri


cd /usr/src/zaptel

./configure

make

make install

Zaptel installed no problem.

cd ../libpri

make
make install

Again, no problems.

cd ../asterisk

./configure
make
make install
make samples (not required, but you will probably want the samples)

Again, compiled with no problems.

Now to install Asterisk GUI. The links that I found were all incorrect for SVN. With some research, I found out the version 2 is out, which changed the locations for the branches. The correct one is svn co http://svn.digium.com/svn/asterisk-gui/branches/2.0 asterisk-gui

cd /usr/src/

svn co http://svn.digium.com/svn/asterisk-gui/branches/2.0 asterisk-gui

./configure
make
make install
make checkconfig
 --- Checking Asterisk configuration to see if it will support the GUI ---
* Checking for http.conf: OK
* Checking for manager.conf: OK
* Checking if HTTP is enabled: FAILED
 -- Please be sure you have 'enabled = yes'
 -- in /etc/asterisk/http.conf
make: *** [checkconfig] Error 1

So I went into /etc/asterisk/http.conf and uncommented enabled = yes

 make checkconfig
 --- Checking Asterisk configuration to see if it will support the GUI ---
* Checking for http.conf: OK
* Checking for manager.conf: OK
* Checking if HTTP is enabled: OK
* Checking if HTTP static support is enabled: FAILED
 -- Please be sure you have 'enablestatic = yes'
 -- in /etc/asterisk/http.conf
make: *** [checkconfig] Error 1

Again, went into /etc/asterisk/http.conf and uncommented enablestatic = yes
This happened again and again. I had to uncomment the following after all was said and done.


enabled = yes
enablestatic = yes

Then in /etc/asterisk/manager.conf
enabled = yes
webenabled = yes

It should also be noted that if you bind the address to 127.0.0.1 you will only be able to access it from that IP, so change it to 0.0.0.0 to access it from anywhere. Also, you should enable an admin account right off the bat by editing /etc/asterisk/manager.conf and putting in
[admin]
    secret = yourpasswordhere
    read = system,call,log,verbose,command,agent,config
    write = system,call,log,verbose,command,agent,config


Now do:
modprobe zaptel
modprobe ztdummy


Add the following to your /etc/rc.local file to load these at startup.

modprobe zaptel
modprobe ztdummy
asterisk –g 

Now start asterisk and go to the configuration web gui:

asterisk -g

http://your-server-ip:8088/asterisk/static/config/cfgbasic.html

You use the admin username and password you set up previously in the manager.conf file. If you cannot login, you may want to check that file for typos.

 

Credit to http://www.cahilig.org/install-asterisk-14-and-asterisk-gui-ubuntu-606-l...

 

http://www.cahilig.org/install-asterisk-14-and-asterisk-gui-centos-4-and...

 

http://asterisknow.org/install-related

 

 

resources

for just a general install of asterisk, is there a general mnimum resources ie. ram, cpuwould a P3 with 256 ram work... or do i need something more like a p4 with 512 mb of ram... 

Sorry Gilbert, somehow I

Sorry Gilbert, somehow I missed this comment. You will be fine running this sucker on a p3 if you are just setting it up for a small install or testing server. However, if you're going to run it for a business or large install, I would recommend a decent spec'd machine, or virtual machine.Chad