head	1.4;
access;
symbols
	RELENG_7_4_0_RELEASE:1.3.32.1
	RELENG_7_4:1.3.0.32
	RELENG_7_4_BP:1.3
	RELENG_7_3_0_RELEASE:1.3.30.1
	RELENG_7_3:1.3.0.30
	RELENG_7_3_BP:1.3
	RELENG_7_2_0_RELEASE:1.3.28.1
	RELENG_7_2:1.3.0.28
	RELENG_7_2_BP:1.3
	RELENG_7_1_0_RELEASE:1.3.26.1
	RELENG_6_4_0_RELEASE:1.3.24.1
	RELENG_7_1:1.3.0.26
	RELENG_7_1_BP:1.3
	RELENG_6_4:1.3.0.24
	RELENG_6_4_BP:1.3
	RELENG_7_0_0_RELEASE:1.3
	RELENG_6_3_0_RELEASE:1.3
	RELENG_7_0:1.3.0.22
	RELENG_7_0_BP:1.3
	RELENG_6_3:1.3.0.20
	RELENG_6_3_BP:1.3
	RELENG_7:1.3.0.18
	RELENG_7_BP:1.3
	RELENG_6_2_0_RELEASE:1.3
	RELENG_6_2:1.3.0.16
	RELENG_6_2_BP:1.3
	RELENG_5_5_0_RELEASE:1.3
	RELENG_5_5:1.3.0.14
	RELENG_5_5_BP:1.3
	RELENG_6_1_0_RELEASE:1.3
	RELENG_6_1:1.3.0.12
	RELENG_6_1_BP:1.3
	RELENG_6_0_0_RELEASE:1.3
	RELENG_6_0:1.3.0.10
	RELENG_6_0_BP:1.3
	RELENG_6:1.3.0.8
	RELENG_6_BP:1.3
	RELENG_5_4_0_RELEASE:1.3
	RELENG_5_4:1.3.0.6
	RELENG_5_4_BP:1.3
	RELENG_4_11_0_RELEASE:1.1.2.1
	RELENG_4_11:1.1.2.1.0.16
	RELENG_4_11_BP:1.1.2.1
	RELENG_5_3_0_RELEASE:1.3
	RELENG_5_3:1.3.0.4
	RELENG_5_3_BP:1.3
	RELENG_5:1.3.0.2
	RELENG_5_BP:1.3
	RELENG_4_10_0_RELEASE:1.1.2.1
	RELENG_4_10:1.1.2.1.0.14
	RELENG_4_10_BP:1.1.2.1
	RELENG_5_2_1_RELEASE:1.2
	RELENG_5_2_0_RELEASE:1.2
	RELENG_5_2:1.2.0.6
	RELENG_5_2_BP:1.2
	RELENG_4_9_0_RELEASE:1.1.2.1
	RELENG_4_9:1.1.2.1.0.12
	RELENG_4_9_BP:1.1.2.1
	RELENG_5_1_0_RELEASE:1.2
	RELENG_5_1:1.2.0.4
	RELENG_5_1_BP:1.2
	RELENG_4_8_0_RELEASE:1.1.2.1
	RELENG_4_8:1.1.2.1.0.10
	RELENG_4_8_BP:1.1.2.1
	RELENG_5_0_0_RELEASE:1.2
	RELENG_5_0:1.2.0.2
	RELENG_5_0_BP:1.2
	RELENG_4_7_0_RELEASE:1.1.2.1
	RELENG_4_7:1.1.2.1.0.8
	RELENG_4_7_BP:1.1.2.1
	RELENG_4_6_2_RELEASE:1.1.2.1
	RELENG_4_6_1_RELEASE:1.1.2.1
	RELENG_4_6_0_RELEASE:1.1.2.1
	RELENG_4_6:1.1.2.1.0.6
	RELENG_4_6_BP:1.1.2.1
	RELENG_4_5_0_RELEASE:1.1.2.1
	RELENG_4_5:1.1.2.1.0.4
	RELENG_4_5_BP:1.1.2.1
	RELENG_4_4_0_RELEASE:1.1.2.1
	RELENG_4_4:1.1.2.1.0.2
	RELENG_4_4_BP:1.1.2.1
	RELENG_4_3_0_RELEASE:1.1
	RELENG_4_3:1.1.0.4
	RELENG_4_3_BP:1.1
	RELENG_4_2_0_RELEASE:1.1
	RELENG_4_1_1_RELEASE:1.1
	PRE_SMPNG:1.1
	RELENG_4_1_0_RELEASE:1.1
	RELENG_4_0_0_RELEASE:1.1
	RELENG_4:1.1.0.2
	RELENG_4_BP:1.1;
locks; strict;
comment	@# @;


1.4
date	2008.05.26.10.39.46;	author bz;	state dead;
branches;
next	1.3;

1.3
date	2004.06.06.11.46.28;	author schweikh;	state Exp;
branches
	1.3.8.1
	1.3.18.1
	1.3.24.1
	1.3.26.1
	1.3.28.1
	1.3.30.1
	1.3.32.1;
next	1.2;

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

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

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

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

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

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

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

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

1.3.32.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.3.32.2;

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

1.1.2.1
date	2001.08.01.20.34.38;	author obrien;	state Exp;
branches;
next	1.1.2.2;

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


desc
@@


1.4
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
#---------------------------------------------------------------------------
#
#	unknown_incoming - script for isdnd
#	-----------------------------------
#
# $FreeBSD: src/etc/isdn/unknown_incoming,v 1.3 2004/06/06 11:46:28 schweikh Exp $
#
#	last edit-date: [Wed Jan 10 13:40:36 2001]
#
#	This script may be configured to be called by isdnd when an
#	unknown incoming call is received. In case the destination
#	telephone number is available, it sends mail with the time,
#	source and destination numbers to a configurable address.
#
#	For this to work, and entry like this:
#
#		regexpr	= "<unknown> incoming call from"
#		regprog	= unknown_incoming
#
#	is needed in the system section of /etc/isdn/isdnd.rc.
#
#	This script has to be configured to the sites needs, look
#	for the comment lines start with "configure:"
#
#---------------------------------------------------------------------------
#
# configure: who shall receive the mail
mailaddr=root
#
from=`echo $* | awk '{print $6}'`
to=`echo $* | awk '{print $8}'`
test=`echo $* | awk '{print $9}'`
ctrl=`echo $* | awk '{print $10}'`
date=`date "+%b %d"`
time=`date "+%H:%M"`
mach=`hostname`

# configure: list of destination numbers to ignore
case "$from" in
	"NotAvailable"  )	exit 0 ;;
	"00401234567"* )	exit 0 ;;
	"00407654321"	)	exit 0 ;;
esac

# configure: how to name the line on which this was received
if [ $test = "ctrl" ]
then
	case "$ctrl" in
		"1")
			line="PBX 1"
			;;
		"2")
			line="PBX 2"
			;;
		*)
			line="controller is $ctrl"
			;;
	esac
else
	line="test is $test, controller is $ctrl"
fi

cat << ENDOFDATA | mail -s "isdnd: unknown incoming telephone call" $mailaddr

Unknown incoming telephone call recognized:

             Date: $date
             Time: $time
             Line: $line
             From: $from
               To: $to

             Sincerly yours,
                   the isdnd on $mach

ENDOFDATA

exit 0
@


1.3
log
@Removed whitespace at BOF, EOL & EOF.
@
text
@d7 1
a7 1
# $FreeBSD$
@


1.3.18.1
log
@Switch importer
@
text
@d7 1
a7 1
# $FreeBSD: stable/7/etc/isdn/unknown_incoming 130151 2004-06-06 11:46:29Z schweikh $
@


1.3.8.1
log
@Switch importer
@
text
@d7 1
a7 1
# $FreeBSD: stable/6/etc/isdn/unknown_incoming 130151 2004-06-06 11:46:29Z schweikh $
@


1.3.32.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
@@


1.3.32.2
log
@Switch importer
@
text
@d7 1
a7 1
# $FreeBSD: releng/7.4/etc/isdn/unknown_incoming 130151 2004-06-06 11:46:29Z schweikh $
@


1.3.30.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
@@


1.3.28.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
@@


1.3.26.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
@@


1.3.24.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
@@


1.2
log
@Update: allow a list of numbers to be ignored and display the line on
which the call was received.
@
text
@d7 1
a7 1
# $FreeBSD: src/etc/isdn/unknown_incoming,v 1.1 1999/12/14 21:14:28 hm Exp $
d11 2
a12 2
#	This script may be configured to be called by isdnd when an 
#	unknown incoming call is received. In case the destination 
d78 1
a78 1
 
@


1.1
log
@update to isdn4bsd beta release 0.90
@
text
@d7 1
a7 1
#	$Id: unknown_incoming,v 1.2 1999/12/13 21:25:24 hm Exp $
d9 1
a9 1
# $FreeBSD$
d11 4
a14 6
#	last edit-date: [Mon Dec 13 21:41:51 1999]
#
#	This script is called by isdnd when an unknown incoming call
#	is received. In case the destination telephone number is
#	available, it sends mail with the time, source and destination
#	numbers to a configurable address.
d23 3
d33 2
d39 6
a44 1
# do nothing if no number available
d46 2
a47 1
if [ $from = NotAvailable ]
d49 13
a61 1
	exit 0
a63 2
# send mail 

d66 1
a66 2
             On $date at $time a telephone call from a destination
             unknown to the isdn daemon came in:
d68 3
a71 1

@


1.1.2.1
log
@MFC: sync with -current
@
text
@d7 2
d11 1
a11 1
#	last edit-date: [Wed Jan 10 13:40:36 2001]
d13 4
a16 4
#	This script may be configured to be called by isdnd when an 
#	unknown incoming call is received. In case the destination 
#	telephone number is available, it sends mail with the time,
#	source and destination numbers to a configurable address.
a24 3
#	This script has to be configured to the sites needs, look
#	for the comment lines start with "configure:"
#
a31 2
test=`echo $* | awk '{print $9}'`
ctrl=`echo $* | awk '{print $10}'`
d36 1
a36 6
# configure: list of destination numbers to ignore
case "$from" in
	"NotAvailable"  )	exit 0 ;;
	"00401234567"* )	exit 0 ;;
	"00407654321"	)	exit 0 ;;
esac
d38 1
a38 2
# configure: how to name the line on which this was received
if [ $test = "ctrl" ]
d40 1
a40 13
	case "$ctrl" in
		"1")
			line="PBX 1"
			;;
		"2")
			line="PBX 2"
			;;
		*)
			line="controller is $ctrl"
			;;
	esac
else
	line="test is $test, controller is $ctrl"
d43 2
d47 2
a48 1
Unknown incoming telephone call recognized:
a49 3
             Date: $date
             Time: $time
             Line: $line
d51 1
@


1.1.2.2
log
@Switch importer
@
text
@d7 1
a7 1
# $FreeBSD: stable/4/etc/isdn/unknown_incoming 80973 2001-08-01 20:34:38Z obrien $
@


