You don't need a special package for that. mgetty, which might be installed by default will do the trick for you. If not, install mgetty using whatever package manager you use.
edit the following file
Code:
/etc/mgetty+sendfax/voice.conf
edit the following four parameters
voice_dir - Point this to the directory that holds your answering machine message as well as your incoming messages.
rings 3 - Replace the 3 with the number of rings after which the phone is picked up.
voice_devices - Add the device where your modem is connected. COM1 would be ttyS0, COM2 would be ttyS1, and so on.
port ttyS0 - Put in the port on where your modem connects.
Open
/etc/inittab and append the following line
Code:
S1:23:respawn:/usr/local/sbin/vgetty ttyS0
replace ttyS0 with the correct port your modem is connected to.
Now you need a recorder rmd file
connect your mic and run the following command
Code:
vm record standard.rmd
If you already have a recorded message (only mono recording), you need to convert it to rmd.
Code:
wavtopvf filename.wav | pvfspeed -s 7200 | pvftormd Rockwell 4 > standard.rmd
copy the rmd file to
/var/spool/voice/messages
now run the following command
all the recorded incoming calls will be under
/var/spool/voice/incoming
to hear in phone
to play in PC speaker
Code:
rmdtopvf filename.rmd | pvfspeed -s 8000 | pvftobasic > /dev/audio
Extracted from:
http://www.freeos.com/articles/3715/
__________
Quote:
|
Originally Posted by phreak0utt
I've Googled a lot, but I've not found a single hit on this.
|
A simple query like "answering machine +linux" gave me hundreds of results.
http://www.google.co.in/search?q=ans...chine+%2Blinux