diff options
author | hm <hm@FreeBSD.org> | 1999-05-20 10:14:57 +0000 |
---|---|---|
committer | hm <hm@FreeBSD.org> | 1999-05-20 10:14:57 +0000 |
commit | 2077acfca034178f39e3fa4e86cb8d371f44737c (patch) | |
tree | 730187a2063473cb0d2e7cac998a9a4307285426 /etc/isdn/tell | |
parent | 5ea75aea8a2633cc0acf9dd870c1e1db1abd6a21 (diff) | |
download | FreeBSD-src-2077acfca034178f39e3fa4e86cb8d371f44737c.zip FreeBSD-src-2077acfca034178f39e3fa4e86cb8d371f44737c.tar.gz |
upgrade isdn4bsd from version 0.71 to the just released version 0.81
Diffstat (limited to 'etc/isdn/tell')
-rwxr-xr-x | etc/isdn/tell | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/etc/isdn/tell b/etc/isdn/tell index 4b29c22..12b4af2 100755 --- a/etc/isdn/tell +++ b/etc/isdn/tell @@ -4,13 +4,18 @@ # tell called and calling numbers answer script for i4b isdnd # ----------------------------------------------------------- # -# $Id: tell,v 1.3 1998/12/18 17:17:57 hm Exp $ +# $Id: tell,v 1.5 1999/04/23 09:42:05 hm Exp $ # -# last edit-date: [Fri Dec 18 18:05:36 1998] +# last edit-date: [Thu May 20 11:45:15 1999] # #--------------------------------------------------------------------------- VARDIR=/var/isdn -LIBDIR=/usr/local/lib/isdn + +#FreeBSD < 3.1, NetBSD, OpenBSD, BSD/OS +#LIBDIR=/usr/local/lib/isdn +#FreeBSD 3.1 and up +LIBDIR=/usr/share/isdn + LOGFILE=/tmp/answer.log NCALLFILE=$VARDIR/ncall DATE=`date +%d%H` @@ -65,9 +70,9 @@ fi echo "answer: device $DEVICE destination $DEST source $SRC " >>$LOGFILE -if [ -f $LIBDIR/beep.g711a ] +if [ -f $LIBDIR/beep.al ] then - dd of=$DEVICE if=$LIBDIR/beep.g711a bs=2k >/dev/null 2>&1 + dd of=$DEVICE if=$LIBDIR/beep.al bs=2k >/dev/null 2>&1 fi # tell the caller the number he is calling from @@ -78,7 +83,7 @@ LENGTH=`expr $SRC : '.*'` while : do DIGIT=`echo $SRC | cut -c $POS` - /bin/dd of=$DEVICE if=$LIBDIR/$DIGIT.g711a bs=2k >/dev/null 2>&1 + /bin/dd of=$DEVICE if=$LIBDIR/$DIGIT.al bs=2k >/dev/null 2>&1 POS=`expr $POS + 1` if [ $POS -gt $LENGTH ] then @@ -86,7 +91,7 @@ do fi done -if [ -f $LIBDIR/beep.g711a ] +if [ -f $LIBDIR/beep.al ] then - dd of=$DEVICE if=$LIBDIR/beep.g711a bs=2k >/dev/null 2>&1 + dd of=$DEVICE if=$LIBDIR/beep.al bs=2k >/dev/null 2>&1 fi |