head	1.6;
access;
symbols
	RELENG_7_4_0_RELEASE:1.5.38.1
	RELENG_7_4:1.5.0.38
	RELENG_7_4_BP:1.5
	RELENG_7_3_0_RELEASE:1.5.36.1
	RELENG_7_3:1.5.0.36
	RELENG_7_3_BP:1.5
	RELENG_7_2_0_RELEASE:1.5.34.1
	RELENG_7_2:1.5.0.34
	RELENG_7_2_BP:1.5
	RELENG_7_1_0_RELEASE:1.5.32.1
	RELENG_6_4_0_RELEASE:1.5.30.1
	RELENG_7_1:1.5.0.32
	RELENG_7_1_BP:1.5
	RELENG_6_4:1.5.0.30
	RELENG_6_4_BP:1.5
	RELENG_7_0_0_RELEASE:1.5
	RELENG_6_3_0_RELEASE:1.5
	RELENG_7_0:1.5.0.28
	RELENG_7_0_BP:1.5
	RELENG_6_3:1.5.0.26
	RELENG_6_3_BP:1.5
	RELENG_7:1.5.0.24
	RELENG_7_BP:1.5
	RELENG_6_2_0_RELEASE:1.5
	RELENG_6_2:1.5.0.22
	RELENG_6_2_BP:1.5
	RELENG_5_5_0_RELEASE:1.5
	RELENG_5_5:1.5.0.20
	RELENG_5_5_BP:1.5
	RELENG_6_1_0_RELEASE:1.5
	RELENG_6_1:1.5.0.18
	RELENG_6_1_BP:1.5
	RELENG_6_0_0_RELEASE:1.5
	RELENG_6_0:1.5.0.16
	RELENG_6_0_BP:1.5
	RELENG_6:1.5.0.14
	RELENG_6_BP:1.5
	RELENG_5_4_0_RELEASE:1.5
	RELENG_5_4:1.5.0.12
	RELENG_5_4_BP:1.5
	RELENG_4_11_0_RELEASE:1.4.2.1
	RELENG_4_11:1.4.2.1.0.18
	RELENG_4_11_BP:1.4.2.1
	RELENG_5_3_0_RELEASE:1.5
	RELENG_5_3:1.5.0.10
	RELENG_5_3_BP:1.5
	RELENG_5:1.5.0.8
	RELENG_5_BP:1.5
	RELENG_4_10_0_RELEASE:1.4.2.1
	RELENG_4_10:1.4.2.1.0.16
	RELENG_4_10_BP:1.4.2.1
	RELENG_5_2_1_RELEASE:1.5
	RELENG_5_2_0_RELEASE:1.5
	RELENG_5_2:1.5.0.6
	RELENG_5_2_BP:1.5
	RELENG_4_9_0_RELEASE:1.4.2.1
	RELENG_4_9:1.4.2.1.0.14
	RELENG_4_9_BP:1.4.2.1
	RELENG_5_1_0_RELEASE:1.5
	RELENG_5_1:1.5.0.4
	RELENG_5_1_BP:1.5
	RELENG_4_8_0_RELEASE:1.4.2.1
	RELENG_4_8:1.4.2.1.0.12
	RELENG_4_8_BP:1.4.2.1
	RELENG_5_0_0_RELEASE:1.5
	RELENG_5_0:1.5.0.2
	RELENG_5_0_BP:1.5
	RELENG_4_7_0_RELEASE:1.4.2.1
	RELENG_4_7:1.4.2.1.0.10
	RELENG_4_7_BP:1.4.2.1
	RELENG_4_6_2_RELEASE:1.4.2.1
	RELENG_4_6_1_RELEASE:1.4.2.1
	RELENG_4_6_0_RELEASE:1.4.2.1
	RELENG_4_6:1.4.2.1.0.8
	RELENG_4_6_BP:1.4.2.1
	RELENG_4_5_0_RELEASE:1.4.2.1
	RELENG_4_5:1.4.2.1.0.6
	RELENG_4_5_BP:1.4.2.1
	RELENG_4_4_0_RELEASE:1.4.2.1
	RELENG_4_4:1.4.2.1.0.4
	RELENG_4_4_BP:1.4.2.1
	RELENG_4_3_0_RELEASE:1.4.2.1
	RELENG_4_3:1.4.2.1.0.2
	RELENG_4_3_BP:1.4.2.1
	RELENG_4_2_0_RELEASE:1.4
	RELENG_4_1_1_RELEASE:1.4
	PRE_SMPNG:1.4
	RELENG_4_1_0_RELEASE:1.4
	RELENG_3_5_0_RELEASE:1.1.2.2
	RELENG_4_0_0_RELEASE:1.4
	RELENG_4:1.4.0.2
	RELENG_4_BP:1.4
	RELENG_3_4_0_RELEASE:1.1.2.2
	RELENG_3_3_0_RELEASE:1.1.2.1
	RELENG_3_2_PAO:1.1.0.4
	RELENG_3_2_PAO_BP:1.1
	RELENG_3_2_0_RELEASE:1.1
	RELENG_3_1_0_RELEASE:1.1
	RELENG_3:1.1.0.2
	RELENG_3_BP:1.1;
locks; strict;
comment	@# @;


1.6
date	2008.05.26.10.39.46;	author bz;	state dead;
branches;
next	1.5;

1.5
date	2000.10.31.10.00.51;	author hm;	state Exp;
branches
	1.5.14.1
	1.5.24.1
	1.5.30.1
	1.5.32.1
	1.5.34.1
	1.5.36.1
	1.5.38.1;
next	1.4;

1.4
date	99.09.13.15.44.20;	author sheldonh;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	99.08.27.23.23.58;	author peter;	state Exp;
branches;
next	1.2;

1.2
date	99.05.20.10.07.15;	author hm;	state Exp;
branches;
next	1.1;

1.1
date	99.01.10.14.30.51;	author hm;	state Exp;
branches
	1.1.2.1;
next	;

1.5.14.1
date	2012.11.17.07.39.03;	author svnexp;	state Exp;
branches;
next	;

1.5.24.1
date	2012.11.17.08.01.17;	author svnexp;	state Exp;
branches;
next	;

1.5.30.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.5.32.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.5.34.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.5.36.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.5.38.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.5.38.2;

1.5.38.2
date	2012.11.17.08.16.37;	author svnexp;	state Exp;
branches;
next	;

1.4.2.1
date	2001.03.06.02.42.05;	author obrien;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	2012.11.17.07.22.38;	author svnexp;	state Exp;
branches;
next	;

1.1.2.1
date	99.08.29.14.19.19;	author peter;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	99.11.16.17.39.07;	author joe;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and
parts relied on the now removed NET_NEEDS_GIANT.
Most of I4B has been disconnected from the build
since July 2007 in HEAD/RELENG_7.

This is what was removed:
- configuration in /etc/isdn
- examples
- man pages
- kernel configuration
- sys/i4b (drivers, layers, include files)
- user space tools
- i4b support from ppp
- further documentation

Discussed with: rwatson, re
@
text
@#!/bin/sh
#---------------------------------------------------------------------------
#
#	tell called and calling numbers answer script for i4b isdnd
#	-----------------------------------------------------------
#
# $FreeBSD: src/etc/isdn/tell-record,v 1.5 2000/10/31 10:00:51 hm Exp $
#
#	last edit-date: [Tue Oct 31 10:59:49 2000]
#
#---------------------------------------------------------------------------
VARDIR=/var/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`
DF=0
dF=0
sF=0

if ! set -- `getopt D:d:s: $*`; then
	echo 'Usage: answer -D device -d destination -s source'
	exit 1
fi

for i ; do
	case ${i} in
	-D)
		DEVICE=$2
		DF=1
		shift
		shift
		;;
	-d)
		DEST=$2
		dF=1
		shift
		shift
		;;
	-s)
		SRC=$2
		sF=1
		shift
		shift
		;;
	--)
		shift
		break
		;;
	esac
done

echo "" >>${LOGFILE}

if [ "${DF}" -eq 0 -o "${dF}" -eq 0 -o "${sF}" -eq 0 ]; then
	echo 'Usage: answer -D device -d destination -s source'
	exit 1
fi

echo "answer: device ${DEVICE} destination ${DEST} source ${SRC} " >>${LOGFILE}

if [ -r "${LIBDIR}/beep.al" ]; then
	dd of=${DEVICE} if=${LIBDIR}/beep.al bs=2k >/dev/null 2>&1
fi

# tell the caller the number he is calling from

POS=1
LENGTH=`expr ${SRC} : '.*'`

while : ; do
	DIGIT=`echo ${SRC} | cut -c ${POS}`
	/bin/dd of=${DEVICE} if=${LIBDIR}/${DIGIT}.al bs=2k >/dev/null 2>&1
	POS=`expr ${POS} + 1`
	if [ "${POS}" -gt "${LENGTH}" ]; then
		break
	fi
done

if [ -r "${LIBDIR}/beep.al" ]; then
	dd of=${DEVICE} if=${LIBDIR}/beep.al bs=2k >/dev/null 2>&1
fi

dd if=${DEVICE} of=${VARDIR}/recorded.msg bs=2k >/dev/null 2>&1
@


1.5
log
@Add missing redirection to /dev/null to prevent disturbing
of fullscreen display.
@
text
@d7 1
a7 1
# $FreeBSD: src/etc/isdn/tell-record,v 1.4 1999/09/13 15:44:20 sheldonh Exp $
@


1.5.24.1
log
@Switch importer
@
text
@d7 1
a7 1
# $FreeBSD: stable/7/etc/isdn/tell-record 68062 2000-10-31 10:00:51Z hm $
@


1.5.14.1
log
@Switch importer
@
text
@d7 1
a7 1
# $FreeBSD: stable/6/etc/isdn/tell-record 68062 2000-10-31 10:00:51Z hm $
@


1.5.38.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@d7 1
a7 1
# $FreeBSD$
@


1.5.38.2
log
@Switch importer
@
text
@d7 1
a7 1
# $FreeBSD: releng/7.4/etc/isdn/tell-record 68062 2000-10-31 10:00:51Z hm $
@


1.5.36.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@d7 1
a7 1
# $FreeBSD$
@


1.5.34.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@d7 1
a7 1
# $FreeBSD$
@


1.5.32.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@d7 1
a7 1
# $FreeBSD$
@


1.5.30.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@d7 1
a7 1
# $FreeBSD$
@


1.4
log
@Apply a consistent style to most of the etc scripts.  Particularly, use
case instead of test where appropriate, since case allows case is a sh
builtin and (as a side-effect) allows case-insensitivity.

Changes discussed on freebsd-hackers.

Submitted by:	Doug Barton <Doug@@gorean.org>
@
text
@d7 1
a7 1
# $FreeBSD: src/etc/isdn/tell-record,v 1.3 1999/08/27 23:23:58 peter Exp $
d9 1
a9 1
#	last edit-date: [Thu May 20 11:45:21 1999]
d89 1
a89 1
dd if=${DEVICE} of=${VARDIR}/recorded.msg bs=2k
@


1.4.2.1
log
@MFC: 1.5: Add missing redirection to /dev/null to prevent disturbing display

Approved by:	jkh
@
text
@d7 1
a7 1
# $FreeBSD: src/etc/isdn/tell-record,v 1.4 1999/09/13 15:44:20 sheldonh Exp $
d9 1
a9 1
#	last edit-date: [Tue Oct 31 10:59:49 2000]
d89 1
a89 1
dd if=${DEVICE} of=${VARDIR}/recorded.msg bs=2k >/dev/null 2>&1
@


1.4.2.2
log
@Switch importer
@
text
@d7 1
a7 1
# $FreeBSD: stable/4/etc/isdn/tell-record 73852 2001-03-06 02:42:05Z obrien $
@


1.3
log
@$Id$ -> $FreeBSD$
@
text
@d7 1
a7 1
# $FreeBSD$
d20 1
a20 1
NCALLFILE=$VARDIR/ncall
d26 1
a26 4
set -- `getopt D:d:s: $*`

if test $? != 0
then
d31 24
a54 26
for i
do
	case "$i"
	in
		-D)
			DEVICE=$2
			DF=1
			shift
			shift
			;;
		-d)
			DEST=$2
			dF=1
			shift
			shift
			;;
		-s)
			SRC=$2
			sF=1
			shift
			shift
			;;
		--)
			shift
			break
			;;
d58 1
a58 1
echo "" >>$LOGFILE
d60 1
a60 2
if [ $DF -eq 0 -o $dF -eq 0 -o $sF -eq 0 ]
then
d63 1
a63 1
fi	
d65 1
a65 1
echo "answer: device $DEVICE destination $DEST source $SRC " >>$LOGFILE
d67 2
a68 3
if [ -f $LIBDIR/beep.al ]
then
	dd of=$DEVICE if=$LIBDIR/beep.al bs=2k >/dev/null 2>&1
d74 1
a74 1
LENGTH=`expr $SRC : '.*'`
d76 5
a80 7
while :
do
	DIGIT=`echo $SRC | cut -c $POS`
	/bin/dd of=$DEVICE if=$LIBDIR/$DIGIT.al bs=2k >/dev/null 2>&1
	POS=`expr $POS + 1`
	if [ $POS -gt $LENGTH ]
	then
d85 2
a86 3
if [ -f $LIBDIR/beep.al ]
then
	dd of=$DEVICE if=$LIBDIR/beep.al bs=2k >/dev/null 2>&1
d89 1
a89 1
dd if=$DEVICE of=$VARDIR/recorded.msg bs=2k
@


1.2
log
@upgrade isdn4bsd from version 0.71 to the just released version 0.81
@
text
@d7 1
a7 1
#	$Id: tell-record,v 1.5 1999/04/23 09:42:05 hm Exp $
@


1.1
log
@add directory /etc/isdn and populate it
@
text
@d7 1
a7 1
#	$Id: tell-record,v 1.3 1998/12/18 17:17:57 hm Exp $
d9 1
a9 1
#	last edit-date: [Fri Dec 18 18:05:41 1998]
d13 6
a18 1
LIBDIR=/usr/local/lib/isdn
d73 1
a73 1
if [ -f $LIBDIR/beep.g711a ]
d75 1
a75 1
	dd of=$DEVICE if=$LIBDIR/beep.g711a bs=2k >/dev/null 2>&1
d86 1
a86 1
	/bin/dd of=$DEVICE if=$LIBDIR/$DIGIT.g711a bs=2k >/dev/null 2>&1
d94 1
a94 1
if [ -f $LIBDIR/beep.g711a ]
d96 1
a96 1
	dd of=$DEVICE if=$LIBDIR/beep.g711a bs=2k >/dev/null 2>&1
@


1.1.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d7 1
a7 1
# $FreeBSD$
@


1.1.2.2
log
@MFC: Merge the I4B support files from current.
@
text
@d9 1
a9 1
#	last edit-date: [Thu May 20 11:45:21 1999]
d13 1
a13 6

#FreeBSD < 3.1, NetBSD, OpenBSD, BSD/OS
#LIBDIR=/usr/local/lib/isdn
#FreeBSD 3.1 and up
LIBDIR=/usr/share/isdn

d15 1
a15 1
NCALLFILE=${VARDIR}/ncall
d21 4
a24 1
if ! set -- `getopt D:d:s: $*`; then
d29 26
a54 24
for i ; do
	case ${i} in
	-D)
		DEVICE=$2
		DF=1
		shift
		shift
		;;
	-d)
		DEST=$2
		dF=1
		shift
		shift
		;;
	-s)
		SRC=$2
		sF=1
		shift
		shift
		;;
	--)
		shift
		break
		;;
d58 1
a58 1
echo "" >>${LOGFILE}
d60 2
a61 1
if [ "${DF}" -eq 0 -o "${dF}" -eq 0 -o "${sF}" -eq 0 ]; then
d64 1
a64 1
fi
d66 1
a66 1
echo "answer: device ${DEVICE} destination ${DEST} source ${SRC} " >>${LOGFILE}
d68 3
a70 2
if [ -r "${LIBDIR}/beep.al" ]; then
	dd of=${DEVICE} if=${LIBDIR}/beep.al bs=2k >/dev/null 2>&1
d76 1
a76 1
LENGTH=`expr ${SRC} : '.*'`
d78 7
a84 5
while : ; do
	DIGIT=`echo ${SRC} | cut -c ${POS}`
	/bin/dd of=${DEVICE} if=${LIBDIR}/${DIGIT}.al bs=2k >/dev/null 2>&1
	POS=`expr ${POS} + 1`
	if [ "${POS}" -gt "${LENGTH}" ]; then
d89 3
a91 2
if [ -r "${LIBDIR}/beep.al" ]; then
	dd of=${DEVICE} if=${LIBDIR}/beep.al bs=2k >/dev/null 2>&1
d94 1
a94 1
dd if=${DEVICE} of=${VARDIR}/recorded.msg bs=2k
@


