Archive for August, 2008
Asterisk on Hardy Server
My notes on installing the latest Asterisk from Source on 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
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.21.2.tar.gz
wget http://downloads.digium.com/pub/zaptel/releases/zaptel-1.4.11.tar.gz
wget http://downloads.digium.com/pub/libpri/releases/libpri-1.4.7.tar.gz
tar xfvz zaptel-1.4.11.tar.gz -C /usr/src/
tar xfvz asterisk-1.4.21.2.tar.gz -C /usr/src/
tar xfvz libpri-1.4.7.tar.gz -C /usr/src/
cd /usr/src/zaptel-1.4.11
./configure
make
make install
Zaptel installed no problem.
cd ../libpri-1.4.7
make
make install
Again, no problems.
cd ../asterisk-1.4.21.2/
./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-lts-server-and-debian-etch
http://www.cahilig.org/install-asterisk-14-and-asterisk-gui-centos-4-and-centos-5#installation
http://asterisknow.org/install-related
Diversion from the Norm
I’ve been working on Cisco equipment for about 3 weeks now. It’s been nice to get away from the normal workload and concentrate on configurations from scratch. I like configuring routers and switches because it takes you back to the basics. It keeps you sharp on tcp/ip and how packets transverse on a network. If there is one thing I would suggest to someone who wants to get into IT, it would be to learn how packets travel on a tcp/ip network. Not necessarily on a Cisco network, but the basics, on any network. This helps in all aspects of technology, even when you are trying to figure out why your port 8080 traffic will not go through a firewall. And really, I doubt it is a coincidence that hack it and packet rhyme. Right?
Search
Chad's Twitter
- @jackljohnson: haha, thanks for the vote of confidence
- wow, just got a call from tech support for a consulting job I did 2 years ago. Um, updateyourrecordsfools.com
- @boondox: If it has to be specifically open source, then you may want to look into programmer or Linux Systems admin
- Totally bummed I can't use themes with Apps. I hate you all.
- I am truly humbled by the amount of support I've been receiving for Linux Basement. Thank you.