#!/bin/sh
# $Header: /boot/home/code/cvsroot/scripts/Rec1496,v 1.2 1998/05/17 02:21:27 jrand Exp $
#
#  Rec1496
#
#  By: Jeremy Rand
#    Copyright 1997
#
# This script just records a message.  It is meant to be used by owners
# of the ZyXEL 1496 modem since there is no easy way to record on them.
#

cleanup () {
  ./tellModem -d onhook "$MODEM" stop > /dev/null
  exit
  }

cd "$1"
MODEM="$2"
MESSAGE="$3"

./tellModem -d offhook -D 6 "$MODEM" record "$MESSAGE"

cleanup
