[Asterisk-Users] AGI & Silence detection

Nick Seraphin asterisk at eaglequest.com
Fri Jul 18 11:19:08 MST 2003


On Thu, 17 Jul 2003, Stuart Hirst wrote:

> Does anyone how you might detect a period of x milliseconds of silence
> using AGI ?


I added silence detection to the Record() application and to the record
function in the AGI interface in asterisk.

It's based on dsp.c, like someone else said.  Basically, it waits for X
milliseconds of silence and then stops recording, and then deletes those X
milliseconds of silence from the end of the recording.

If you look at the record function in AGI, you should be able to see how
to do this pretty easily.

The part about detecting silence shouldn't be difficult, but I'm not sure
how you would tell the AGI program that it was detected.

-- Nick
   EagleQuest, Inc.
   Metro Telephony, Inc.
   Rochester, Michigan






More information about the asterisk-users mailing list