banner
Dave Horner's Website - Yet another perspective on things...
Home Tech Talk Unix/Linux/BSD/OSX/ETC Asterisk tidbits - random information you might find useful.
If you appreciate the information found on this website, please drop me a line!

Who's Online

We have 14 guests online
Content View Hits : 823235
moon and stars
How did you find my site?
 
How often do you answer random online questions?
 

Random Quote

Don't worry about what anybody else is going to do. The best way to predict the future is to invent it. -- Alan Kay
100_1480
P1010197
P1010178
P1010114

Asterisk tidbits - random information you might find useful.

Wednesday, 11 January 2006 07:11
Asterisk is a open source telephony system for the Linux OS.  It is perfect for setting up a simple office PBX system.

Useful links
I've got some Sanoma hardware, heres info on debugging asterisk with sangoma.
The best place to look for info on Asterisk can be found on: VOIP-INFO

When purchasing VOIP related devices I usually look at: VoipSupply
Predefined variables
g729 Codec

Sphinx2 and Asterisk

Products of interest
AdTran Total Access 924 - good for office termination
Sipura SPA-2100 - 2 line analog to voip adapter
Uniden ELBT595 - blue tooth analog phone system
PhoneCell SX4el- GSM to FXS gateway

Starting and keeping Asterisk running
When I setup an asterisk box, I don't use the asterisk command directly to start asterisk.  Instead you should use the shell script safe_asterisk.  It comes with the asterisk source.  This script monitors the asterisk process and restarts it if  asterisk crashes.  It also has the ability to email someone when the asterisk server does go down... that way you can debug what is happening.

Converting and making sounds for use in Asterisk
For tips on recording and other information relating to sound files check out the Wiki Page.
Asterisk likes to have files in formats like gsm and sln.  The tool SoX comes to the rescue!

To convert from gsm to wav: sox input.gsm -r 8000 -c 1 -w -s ouput.wav
To convert from wav to gsm: sox input.wav -r 8000 output.gsm resample -q1
To convert from wav to sln (SLINEAR) : sox input.wav -t raw -r 8000 -s -w -c 1 output.sln

Lately I've been trying to get going with FastAGI.  It is much better than simple AGI because it allows you to push the processing of AGI off the asterisk machine itself... so it scales much better.  Anyways here are some resources I found on the web.
Experiences with Asterisk AGI
How FastAGI works
FastAGI WIKI
Asterisk-Java Tutorial

I would love to be able to control features within the meetme and during a dial.  I hear that this is possible, to do such things...
http://www.voip-info.org/wiki/index.php?page=Asterisk+config+features.conf
A $10 Linux Answering Machine
Last Updated on Sunday, 18 March 2007 18:47