Simple automatic telephone audio recording in linux.

Written in C code.

This program can be used to record from almost any audio source.
It is tested on a stationary ISDN telephone, where the audio is taken from the two wires going up to the handset.The audio is DC separated by two capacitors before it enters the sound card on the computer.
This program records 1 second of audio, and then evaluates if the signal level is above a sertain noise limit. If so, then the program stores the recorded audio to a file and starts evaluating the next second. If there is silence for 10 seconds, then the file is closed, and the program starts over.
The stored files will have their filenames equal to the date and time of the start of the recorded audio, and the files will automatically be converted to the compressed .ogg format and then encryptet with a public gpg key.This program can be used to automatically record all conversations - each in a separate file. So when an important conversation has taken place, the audio will be available for re-play.

Note 1: If two calls have less than 10 seconds of silence in between, then the calls will be saved in one common file.
Note 2: The file can not be played back during recording, as this program blocks the sound card device. So play back the file on a separate computer or stop the recording program before playing back the files.