simple vgetty dtmf script question

steve maZe (maze@blah)
Fri, 20 Nov 1998 08:02:48 +0100




 hi 

 I am having a problem with my little record function in my dtmf
script.. vgetty never stops recording unless I kill it here is the
function I wrote 

function record
        {
        send "RECORD $IN_DIR$1$DATE$TIME.rmd"
        ANSWER=`receive`

        if [ "$ANSWER" != "RECORDING" ]; then
                logger -t "dtmf.sh[$$]" "Could not start recording"
                kill -KILL $$
        fi

        ANSWER=`receive`

        if [ "$ANSWER" != "READY" ]; then
                logger -t "dtmf.sh[$$]" "Something went wrong on
recording"
        fi

#        beep 1320 100
        }

and here is how I call it :
record steve

and no matter what I do it doesn't stop recording even if I hangup I
have to killall vgetty to make it stop ! 
 anyone has an idea ? ! 


 THX fro any help 
steve

<===============================>
      Tired of Help lines
       www.dreamcorp.com
If we don't have we'll find it
<===============================>