Saturday, June 28, 2008
Configuration Files of Asterisk
alsa.conf and oss.conf - Soundcard Configuration
asterisk.adsi - ADSI Feature Script
extensions.conf - Static dialplan
iax.conf - IAX users,peers,friends,and parameters
logger.conf - Log files,log levels,etc
meetme.conf - Meetme conference configuration
modules.conf - Modules,preloads,globals, and noloads
musiconhold.conf - Music on hold configuration
voicemail.conf - Voicemail boxes,general parameters
zapata.conf - Zaptel TDM compatible device configuration
Wednesday, June 25, 2008
Auto Call Through Error on Asterisk Console
Please mail your details if you want to get this troubleshoot on email id at
dip@lintelindia.com
Thursday, June 12, 2008
Hardware Recommendations for Asterisk Installation
Often people use low-cost (and of course low-quality) PCs bought from a supermarket or discount store, most of these PCs have much more parts included than you will need to build a PBX system. We made the experience that a real server works best, even if it is a low cost one. The most important thing about these servers is that they are produced by a major hardware supplier (like HP, IBM, etc.). For an overview of what hardware works pretty good, please consult http://www.voip-info.org/wiki/view/Asterisk+hardware. Another important thing about motherboards is the fact that they should not use shared interrupts on the PCI slots (in case you might need to use PCI cards for ISDN or analog lines/phones).
2. MotherboardRecommendations are based on our experiences . All the motherboards recommended are Asterisk supported motherboards .A true server motherboard, like those from Intel, is most suitable for production servers. The alternative to build the machine on your own is to buy a server from a major hardware supplier like the HP ProLiant DL- or ML-Series, that can be used out of the box. There are several models (starting with the Proliant DL/ML-Series 300), that already contain a hardware RAID controller for mirroring the hard drives.
Of course it is possible to use any workstation motherboard from Asus or MSI, but these, as our experiences show, are not really suitable for prodution servers, because they mostly use shared interrupts on their PCI slots, which cause major problems when dealing with ISDN and/or analog cards that are used with Asterisk.
3.CPU
Basically we have to seperate two technologies: analog and digital. Analog telephony cards are used to connect traditional subscriber lines or analog phones to the PBX system. They (mostly) have RJ11 (6 pin) connectors, where only the middle two ones are used. Digital telephony cards are mainly used for ISDN Basic Rate Interfaces (BRI, 2 voice channels per line) and ISDN Primary Rate Interfaces (PRI, 23 voice channels for T1 or 30 voice channels for E1 per line). ISDN BRI interfaces have RJ45 (8 pin) connectors, ISDN PRI interfaces have either coaxial or RJ45 connectors.
We have tried most of the cards that are compatible with Asterisk PBX, most of them worked properly. We mainly use those low-cost single ISDN BRI cards based on the HFC chipset (around 25 Euro or 30 US$), junghanns.net QuadBri carss (4xISDN S0), the Digium E1/T1 cards as well as the OpenVox analog cards. If you use HFC-based cards like the junghanns.net QuadBri, you have to use the software patches provided by and available at junghanns.net website. When using the Digium E1/T1 PCI cards, you have to take care about the voltage on the PCI bus of your server. A description which card to use, can be found here.
Configuration examples
Here are some examples like we successfully use it at customers sites:
Asterisk basd PBX-system for 16 extensions VoIP
- HP DC7700CMT, 512MB RAM, 1 x Intel Pentium DualCore, 1.86GHz
- 2 x 80GB Seagate ES S-ATA hard disks(software RAID1)
- junghanns.net QuadBri 4xISDN card
- OpenVox A400P with 2xFXS interfaces for fax machines
- 13 x Snom 370 and 3 x Snom 320 VoIP Phones
- Linksys SRW224P, managed 24 port 10/100 and 2 ports 10/100/1000 PoE switch
- Debian Linux 4.0 (Etch)
- Asterisk 1.4.17 (BriStuffed)
- IAX2 uplink to ZaKoVoIP for outbound calls
Asterisk based PBX system for 190 extensions VoIP
- HP ProLiant DL360, 4GB RAM, 2 x Intel XEON DualCore, 2.33GHz
- 2 x 142GB SAS hard disks(hardware RAID1)
- redundant power supplies
- Digium TE410P 4 x ISDN E1 card
- Snom 370 and Snom 320 VoIP Phones
- 10 x Linksys SRW224P, managed 24 port 10/100 and 2 ports 10/100/1000 PoE switch
- 4 x Linksys SRW2048, managed 48 port 10/100/1000 backbone switch
- Debian Linux 4.0 (Etch)
- Asterisk 1.4.17 (BriStuffed)
- IAX2 uplink to ZaKoVoIP for outbound calls
Asterisk based IVR and CallCenter infrastructure
- HP ProLiant DL360, 1 x Intel XEON 2.33GHz, 2GB RAM (media gateway)
- 2 x 142GB SAS hard disks (hardware RAID1)
- redundant power supplies
- Digium TE410P 4 x ISDN E1 card
- HP ProLiant DL360, 2 x Intel XEON 2.66GHz, 4GB RAM (application server)
- 2 x 142GB SAS hard disks (hardware RAID1)
- redundant power supplies
- HP ProLiant DL380, 2 x Intel XEON 2.66GHz, 4GB RAM (database server)
- 6 x 142GB SAS hard disks (hardware RAID1, hardware RAID 5 + spare)
- redundant power supplies
- Linksys SRW2048, managed 48 port 10/100/1000 backbone switch
- 2 x Linksys SRW2024, managed 24 port 10/100/1000 switch
- Debian Linux 4.0 (Etch)
- Asterisk 1.2.26.1 - ZaKoTel optimized build
Monday, June 9, 2008
Asterisk Training Videos
Astersik Video explaining about how to get the source code from the asterisk website
Reference www.asterisk.org
You will observe two versions
Asterisk 1.4.21 (version 1.4 )
Asterisk 1.6.0-beta 9 (version 1.6)
http://www.hotbutteredit.com/video/voip/asterisk/asterisk_install.htm
Asterisk - Part 2
We will now move to the next part which explains about how to start and stop the asterisk
http://www.hotbutteredit.com/video/voip/asterisk/running_asterisk.htm
Asterisk - Part 3
http://www.hotbutteredit.com/video/voip/asterisk/asterisk_extensions.htm
Asterisk - Part 4
This video on Asterisk explains about the dial plans
Important configuration files are at extensions.conf
Asterisk - Part 5
This part of the video explains about the AGI ( Asterisk Gateway Interface )
http://www.hotbutteredit.com/video/voip/asterisk/asterisk_contexts_dialplans_part2.htm
Asterisk - Part 6
This video of Asterisk expalins about the configuration of the softphones and how it interacts with the Asterisk Server
http://www.hotbutteredit.com/video/voip/asterisk/asterik_setting_up_softphones.htm
Asterisk - Part 7
This part of video on Asterisk includes Graphical Interface interpretations
Free versions are available at
http://www.hotbutteredit.com/video/voip/asterisk/asterisk_trixbox_intro.htm
Asterisk - Part 8
User Management and interfaces
http://www.hotbutteredit.com/video/voip/asterisk/asterisk_trixbox_features_1.htm
Asterisk - 9
Overview of Trix box and the web interfaces
http://www.hotbutteredit.com/video/voip/asterisk/asterisk_trixbox_features_2.htm
Asterisk - 10
Summary of all the things which we have learnt today
http://www.hotbutteredit.com/video/voip/asterisk/asterik_conclusion_documentation.htm
Thanks to hotbutteredit.com and the mentor Simon .
Friday, June 6, 2008
Installation of Asterisk for Ubuntu / Debian
official asterisk website
www.asterisk.org
Distros selection for linux
Ubuntu / Fedora / Debian / Gentoo / CentOs are considered to be the best linux flavours .
Distros available at there respective sites
www.ubuntu.com
Installation :
First step is to install all the dependencies
Installation Commands for Ubuntu / Debian Sarge and Etch :
cd /usr/src
apt-get update
apt-get install kernel-headers-2.6.8-2-386
apt-get install cvs
apt-get install libssl-dev
apt-get install zlib1g-dev
apt-get install libnewt-dev
apt-get install bison
apt-get install ncurses-dev
apt-get install libssl-dev
apt-get install initrd-tools
apt-get install procps
mkdir asterisk
cd asterisk
wget http://ftp.digium.com/pub/asterisk/asterisk-1.2.4.tar.gz
wget http://ftp.digium.com/pub/zaptel/zaptel-1.2-current.tar.gz
wget http://ftp.digium.com/pub/libpri/libpri-1.2-current.tar.gz
wget http://ftp.digium.com/pub/libiax/iax-0.2.2.tar.gz
wget http://ftp.digium.com/pub/asterisk/asterisk-1.2-current.tar.gz
wget http://ftp.digium.com/pub/asterisk/asterisk-addons-1.2-current.tar. gz
tar xvfz libpri-1.2-current.tar.gz
cd libpri-1.2.3/
make clean
make
make install
cd ..
tar xvfz zaptel-1.2-current.tar.gz
cd zaptel-1.2.8/
make clean
make linux26)
make install
modprobe zaptel
modprobe wcfxo
ztcfg
cd ..
tar xvfz asterisk-1.2-current.tar.gz
cd asterisk-1.2.11/
make
make install
make samples
wget http://ftp.digium.com/pub/asterisk/g729/linux/32-bit/i386/codec_g72 9a.so
wget http://ftp.digium.com/pub/asterisk/g729/register_utility/glibc2.3.5 /x86/register
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-sounds-1.2.1.t ar.gz
cd ..
tar xvfz asterisk-sounds-1.2.1.tar.gz
cd asterisk-sounds-1.2.1
make clean
make install
cd..
modprobe ztdummy
From Asterisk TFOT
Let’s look at some examples. To start Asterisk and connect to the CLI with a verbos-
ity level of 3, use the following command:
# /usr/sbin/asterisk –cvvv
If the Asterisk process is already running (for example, if you started Asterisk with
/usr/sbin/asterisk), instead use the reconnect switch, like so:
# /usr/sbin/asterisk –vvvr
Part - 2 would be updated shortly