ELSA MicroLink with voice library

paschke@online.de (paschke@online.de)
Wed, 27 May 1998 19:17:04 +0200


Hello,

I'm using an ELSA Microlink 56k and the 'mgetty-1.1.14'
package.
Linux Kernel 2.0.33
When starting some of the voice-library-scripts, for example
'demo.sh' I get an error in /var/log/vm.log

------------------------------------------------------------------------
05/23 08:28:49  vgetty: experimental test release 0.8.1 /
25Mar98
05/23 08:28:49  reading program vm configuration from config
file
/etc/mgetty+sendfax/voice.conf
05/23 08:28:49  opening voice modem device
05/23 08:28:49  opened voice modem device /dev/modem
05/23 08:28:49  reading port modem configuration from config
file
/etc/mgetty+sendfax/voice.conf
05/23 08:28:49  detecting voice modem type
05/23 08:28:50  Elsa MicroLink detected
05/23 08:28:50  initializing Elsa voice modem
05/23 08:28:52  vm: Executing shell script ./demo.sh with
shell /bin/sh
05/23 08:28:53  vm: voice_handle_event got unknown event
SIGNAL_SIGCHLD
with data <_>
05/23 08:28:54  closing voice modem device
-------------------------------------------------------------------------

To find the problem I wrote a simple script

-------------------------------------------------------------------------

#! /usr/bin/vm shell

function receive
     {
     read -r INPUT <&$VOICE_INPUT;
     echo "$INPUT";
     }

function send
     {
     echo $1 >&$VOICE_OUTPUT;
     kill -PIPE $VOICE_PID
     }

ANSWER=`receive`
echo "HELLO SHELL=$ANSWER"

send "HELLO VOICE PROGRAM"
ANSWER=`receive`
echo "READY=$ANSWER"


send "DEVICE INTERNAL_SPEAKER"
ANSWER=`receive`
echo "READY=$ANSWER"


send "PLAY /var/spool/voice/messages/ansage.rmd"
ANSWER=`receive`
echo "PLAYING=$ANSWER"
------------------------------------------------------------------------

The file 'ansage.rmd' is being played, but there is still an
other error message in 'vm.log'

------------------------------------------------------------------------

05/23 08:50:28  vgetty: experimental test release 0.8.1 /
25Mar98
05/23 08:50:28  reading program vm configuration from config
file
/etc/mgetty+sendfax/voice.conf
05/23 08:50:28  opening voice modem device
05/23 08:50:28  opened voice modem device /dev/modem
05/23 08:50:28  reading port modem configuration from config
file
/etc/mgetty+sendfax/voice.conf
05/23 08:50:28  detecting voice modem type
05/23 08:50:28  Elsa MicroLink detected
05/23 08:50:29  initializing Elsa voice modem
05/23 08:50:31  vm: Executing shell script ./test with shell
/bin/sh
05/23 08:50:31  playing voice file
/var/spool/voice/messages/ansage.rmd
05/23 08:50:43  vm: could not write to shell
05/23 08:50:43  vm: Could not handle event, something failed
-----------------------------------------------------------------------

Where is the mistake? Who can help!

Thank you very much!

-- 
-- 
/////////////////////////////////////////////////////////////////////
Henning Paschke \\    A PINGUIN sunk Microsoft  // Braunschweig
/////////////////////////////////////////////////////////////////////