INSTALL VGETTY - packaged with MGETTY MODEM INFO - use any modem that works with vgetty - avoid winmodems, generally dont work with linux - linux modem list at http://www.idir.net/~gromitkc/20020121a.html then you need MGETTY+SENDFAX http://alpha.greenie.net/mgetty/mgetty_toc.html notes on VGETTY CONFIG /etc/inittab add line like # Run vgetty SX:2345:respawn:/sbin/vgetty ttySX where S1=com2 etc then use /sbin/init q command to start vgetty - see http://merced.needsabeating.com/voicemail.html for example vgetty setup - vgetty config at: http://www.freeos.com/articles/3715/ MODEM HELP for vgetty try http://liberti.dhs.org/public/computing/hardware/usr-sportster/usr-sportster-vgetty.html - minicom -s for general modem check - setserial -ab /dev/modem setserial -g /dev/ttyS* for locating i/o & irq of internal modem use pvftormd -L for supported modems - Digi 4 (G.711U) and 5 (G.711A) - Elsa 2, 3 and 4 bit Rockwell ADPCM - ISDN4Linux 2, 3 and 4 bit ZyXEL ADPCM - MT_2834 4 bit IMA ADPCM - Rockwell 2, 3 and 4 bit Rockwell ADPCM - Rockwell 8 bit Rockwell PCM - UMC 4 bit G.721 ADPCM - US_Robotics 1 and 4 (GSM and G.721 ADPCM) - ZyXEL_1496 2, 3 and 4 bit ZyXEL ADPCM - ZyXEL_2864 2, 3 and 4 bit ZyXEL ADPCM -conversion test to play soundfile thru modem [us robotics] wavtopvf filename.wav | pvfspeed -s 8000 | pvftormd US_Robotics 1 > filename.rmd
INSTALL & CONFIG VOCP http://www.vocpsystem.com notes: set /etc/mgetty+sendfax/voice.conf so that: voice_devices is correct ttySX [1=com2, 2=com3] call_program is /usr/local/vocp/bin/vocp.pl
***vocp fix*** system hangs up after 44 seconds due to bug. fix detailed at http://sourceforge.net/mailarchive/forum.php?thread_id=1923786&forum_id=3584 says to add: 'maxMessageTime' => 180, to the %Defaults hash in /usr/lib/perl5/site_perl/5.8.0/VOCP/Vars.pm (or wherever it is installed). seems to work.
TROUBLESHOOT MODEM & vgetty *** currently upgraded to vocp 0.9.3 *** logs at /var/log/vm.log /var/log/vgetty_voice_shell.ttySX /var/log/vocp.log OVERVIEW OF FILES config files /etc/vocp/vocp.conf /etc/vocp/boxes.conf /etc/mgetty+sendfax/voice.conf scripts & programmes /usr/local/vocp/bin/vocp.pl /usr/local/vocp/bin/messages.pl etc An example script used in a command shell (reads you your IP over the phone) /var/spool/voice/commands/ip.pl sound files the sound files are all under /var/spool/voice/messages/ incoming messages under /var/spool/voice/incoming/ BASIC COMMANDS $ vm play -s -v file.rmd plays rmd file $ rmdtopvf file.rmd | pvfspeed -s 8000 | pvftobasic > /dev/audio plays rmd file thru soundcard $ rmdtopvf file.rmd | pvfspeed -s 8000 | pvftowav > file.wav converts rmd file to wav file $ wavtopvf file.wav | pvfspeed -s 8000 | pvftormd US_Robotics 1 > file.rmd converts wav file to rmd $ /etc/mgetty+sendfax/vocp/messages.pl does commandline message retrieval BASIC SCRIPTS /usr/bin/wavtormd shell script to convert wav file to rmd #!/bin/bash #converts wav file to rmd #making sure wav file is #8000khz and mono #echo which .wav file would you like to convert to .rmd? #read NAME if [ -z "$1" ]; then echo "usage is: wavtormd wavefile" exit fi NAME=$1 sox -v 2 $NAME.wav -r 8000 -c 1 $NAME8mono.wav wavtopvf $NAME8mono.wav | pvfspeed -s 8000 | pvftormd US_Robotics 1 > $NAME.rmd #cleanup rm -f $NAME8mono.wav /usr/bin/tex2rmd shell scriptchanges input.txt to output.rmd and plays thru modem #!/bin/bash #echo which text file would you like to convert to .rmd? #read NAME if [ -z "$1" ]; then echo "usage is: tex2rmd filename" exit fi NAME=$1 text2wave $NAME -o $NAME.wav sox -v 2.5 $NAME.wav -r 8000 $NAME8.wav wavtopvf $NAME8.wav | pvftormd US_Robotics 1 > $NAME.rmd vm play -s -v $NAME.rmd #cleanup rm -f $NAME.wav $NAME8.wav --------------------------------------------------------------------- notes 10.2.03 * for error in /var/log/vocp.log /etc/mgetty+sendfax/vocp/vocp.pl Mon Feb 10 23:24:24 2003 [11330] Fatal: Cannot locate /usr/local/bin/rmdtopvf (UNDEF) added ln -s /usr/bin/rmdtopvf /usr/local/bin/rmdtopvf