Step 2: download source packages
After you've prepared your minimal Ubuntu machine, you will need to download a few source packages from Asterisk.
Logged in the Linux OS as the root user we'll download the needed packages by running the following script in your terminal screen. If you are familiar with Putty, you can also do this remotely via a windows desktop or SSH into the box as root from any other Linux machine.
(NOTE: we will be using Asterisk 1.4)
Source packages needed list below:
asterisk-1.4.21.2
zaptel-1.4.11
libpri-1.4.5
asterisk-addons-1.4.7
asterisk-gui
Copy and paste the following code into a new file in a terminal window and save the file as "astsetup.sh". Then when you save the file, make it executable by running this command: chmod +x astsetup.sh.
——> BEGIN COPYING CODE TO NEW FILE
####### Prepare Build Environment
apt-get install build-essential speex libspeex-dev gsm-utils \
libgsm1-dev libgsmme-dev libgsm1 libgsm-tools \
libncurses5-dev ncurses-term linux-headers-2.6.24-19-generic \
libncurses5-dbg doxygen subversion
####### Download Asterisk Source Packages
wget http://downloads.digium.com/pub/asterisk ... 1.2.tar.gz
wget http://downloads.digium.com/pub/zaptel/r ... .11.tar.gz
wget http://downloads.digium.com/pub/libpri/r ... 4.5.tar.gz
wget http://downloads.digium.com/pub/asterisk ... 4.7.tar.gz
svn co http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui
####### Extract all packages for building
tar -zxvf asterisk-1.4.21.2.tar.gz && tar -zxvf zaptel-1.4.11.tar.gz \
&& tar -zxvf asterisk-addons-1.4.7.tar.gz && tar -zxvf libpri-1.4.5.tar.gz
####### Begin Building and Installing Source Packages
cd libpri-1.4.5
make
make install
cd ../zaptel-1.4.11
make clean
./configure
make menuselect
make install
make config
cd ../asterisk-1.4.21.2
make clean
./configure
make menuselect
make install
make samples
make progdocs
cd ../asterisk-addons-1.4.7
make clean
./configure
make menuselect
make install
make samples
cd ../asterisk-gui
./configure
make
make install
make samples
cd /root
mkdir packages
mv *.gz /root/packages/.
echo INSTALLATION COMPLETE PLEASE CONFIGURE WEB GUI
———-> END COPYING CODE TO NEW FILE
One final step remains in order to bring the GUI up and running. We must edit two files:
/etc/asterisk/http.conf and
etc/asterisk/manager.conf.
/etc/asterisk/http.conf:
[general]
enabled=yes
enablestatic=yes ; without this, you can only send AMI commands, not display
; html content
bindaddr=0.0.0.0 ; address you want the Asterisk HTTP server to respond on
bindport=9000 ; port you want the Asterisk HTTP server to respond on
prefix=asterisk ; will form part of the URI, similar to a directory name
/etc/asterisk/manager.conf:
[general]
enabled=yes ; you may already have AMI enabled if you are using it for other things
webenabled=yes ; this enables the interaction between the Asterisk web server and AMI
[admin] ; This is the manager username. You can name the user whatever you want
secret = password
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config
———–
Restart your PBX server and point your browser to:
http://ip-of-pbx:9000/asterisk/static/config/cfgbasic.html (where IP of PBX is the IP address of your PBX box)
You should then see the web GUI and should be able to logon and start creating extensions (users).
Asterisk is very flexible, scalable, and limitless in its scope of use, so there is no way I can tell you everything that can be done with this amazing piece of software. It's use is not just limited to communication and phone management and there are thousands of hacks that can be applied to Asterisk. Some of them are:
Home Automation using X10 addressable switches
Remote home/office alarm/lock control
Remote environmental/audio monitoring
Conference Rooms
E-mail reader (text to speech access to any email account)
Remote Dictation
Voice Recognition
Ability to run system commands by phone - Remote Control
Phones and Extension Types
Asterisk supports any standards based SIP or IAX compatible voip phone, Softphones and VOIP ATAs are also another way to interface with your Asterisk system.
wildcard TDM400P with 4 FXO/FXS modules,
Asterisk card with 1 E1/T1 port,
We are looking for distributors, the price is very good,welcome to resell these cards.
See also http://www.chinaroby.com
Mr. Gery
Roby Technology Co., Limited
Email: info@chinaroby.com
Web : www.chinaroby.com
MSN : gery668@hotmail.com
Skype ID: gery668
Tel : +86-755-83843088
http://www.chinaroby.com/english/Asterisk-card.htm