diff options
author | hm <hm@FreeBSD.org> | 1999-12-14 21:14:28 +0000 |
---|---|---|
committer | hm <hm@FreeBSD.org> | 1999-12-14 21:14:28 +0000 |
commit | a53726a684bbbe7c65bcfeb9aca85f45a8eaf1e2 (patch) | |
tree | 7b7208891a81f877dc85f37d5afec02a17f8bde5 /etc | |
parent | e5044a69c99727fc68f6b7f09689aeb5244d9549 (diff) | |
download | FreeBSD-src-a53726a684bbbe7c65bcfeb9aca85f45a8eaf1e2.zip FreeBSD-src-a53726a684bbbe7c65bcfeb9aca85f45a8eaf1e2.tar.gz |
update to isdn4bsd beta release 0.90
Diffstat (limited to 'etc')
-rw-r--r-- | etc/isdn/isdnd.rates.A | 39 | ||||
-rw-r--r-- | etc/isdn/isdnd.rates.L | 45 | ||||
-rwxr-xr-x | etc/isdn/unknown_incoming | 59 |
3 files changed, 143 insertions, 0 deletions
diff --git a/etc/isdn/isdnd.rates.A b/etc/isdn/isdnd.rates.A new file mode 100644 index 0000000..fa25b22 --- /dev/null +++ b/etc/isdn/isdnd.rates.A @@ -0,0 +1,39 @@ +#--------------------------------------------------------------------------- +# +# i4b - PTA Telekom charging rates config file +# -------------------------------------------- +# +# $Id: isdnd.rates.A,v 1.2 1999/12/13 21:25:24 hm Exp $ +# +# $FreeBSD$ +# +# last edit-date: [Mon Dec 13 21:42:02 1999] +# +# -mr updated to reflect last Telekom changes as of 1.9.99 +# +#--------------------------------------------------------------------------- +# +# reference: http://www.pta.at/ +# +#--------------------------------------------------------------------------- +# +# Syntax: +# ------- +# rate-code: ra0 = Online Tarif +# Day-No: 0-6, where 0 = Sunday, 1 = Monday, etc. +# Rate: start_hour.minutes-end_hour.minutes:period in seconds +# +#------------------------------------------------------------------------------ +# +#=================== Online ================================== +# +#rate-code Day rate1 rate2 rate3 +#--------- --- --------------- --------------- --------------- +ra0 0 00.00-24.00:360 +ra0 1 00.00-08.00:360 08.00-18.00:120 18.00-24.00:360 +ra0 2 00.00-08.00:360 08.00-18.00:120 18.00-24.00:360 +ra0 3 00.00-08.00:360 08.00-18.00:120 18.00-24.00:360 +ra0 4 00.00-08.00:360 08.00-18.00:120 18.00-24.00:360 +ra0 5 00.00-08.00:360 08.00-18.00:120 18.00-24.00:360 +ra0 6 00.00-24.00:360 +#================== EOF ====================================== diff --git a/etc/isdn/isdnd.rates.L b/etc/isdn/isdnd.rates.L new file mode 100644 index 0000000..1c4383a --- /dev/null +++ b/etc/isdn/isdnd.rates.L @@ -0,0 +1,45 @@ +#--------------------------------------------------------------------------- +# +# i4b - Luxembourg PT charging rates config file +# ------------------------------------------------- +# +# $Id: isdnd.rates.L,v 1.2 1999/12/13 21:25:24 hm Exp $ +# +# $FreeBSD$ +# +# last edit-date: [Mon Dec 13 21:42:33 1999] +# +# Sent in by Joakim Hernberg, Digital Design Luxembourg sarl, jbh@ddl.lu +# +#--------------------------------------------------------------------------- +# +# reference: http://www.pt.lu +# +#--------------------------------------------------------------------------- +# +# Syntax: +# ------- +# rate-code: ra0 = Luxembourg normal isdn call +# rate-code: ra1 = Luxembourg PT Internet access +# Day-No: 0-6, where 0 = Sunday, 1 = Monday, etc. +# Rate: start_hour.minutes-end_hour.minutes:period in seconds +# +#------------------------------------------------------------------------------ +# +#rate-code Day rate1 rate2 rate3 rate4 rate5 +#--------- --- --------------- --------------- --------------- --------------- ---------------- +ra0 0 00.00-24.00:960 +ra0 1 00.00-06.00:960 06.00-08.00:480 08.00-19.00:240 19.00-23.00:480 23.00-24.00:960 +ra0 2 00.00-06.00:960 06.00-08.00:480 08.00-19.00:240 19.00-23.00:480 23.00-24.00:960 +ra0 3 00.00-06.00:960 06.00-08.00:480 08.00-19.00:240 19.00-23.00:480 23.00-24.00:960 +ra0 4 00.00-06.00:960 06.00-08.00:480 08.00-19.00:240 19.00-23.00:480 23.00-24.00:960 +ra0 5 00.00-06.00:960 06.00-08.00:480 08.00-19.00:240 19.00-23.00:480 23.00-24.00:960 +ra0 6 00.00-06.00:960 06.00-23.00:480 23.00-24.00:960 + +ra1 0 00.00-24.00:60 +ra1 1 00.00-24.00:60 +ra1 2 00.00-24.00:60 +ra1 3 00.00-24.00:60 +ra1 4 00.00-24.00:60 +ra1 5 00.00-24.00:60 +ra1 6 00.00-24.00:60 diff --git a/etc/isdn/unknown_incoming b/etc/isdn/unknown_incoming new file mode 100755 index 0000000..13dfa28 --- /dev/null +++ b/etc/isdn/unknown_incoming @@ -0,0 +1,59 @@ +#!/bin/sh +#--------------------------------------------------------------------------- +# +# unknown_incoming - script for isdnd +# ----------------------------------- +# +# $Id: unknown_incoming,v 1.2 1999/12/13 21:25:24 hm Exp $ +# +# $FreeBSD$ +# +# 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. +# +# 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. +# +#--------------------------------------------------------------------------- +# +# configure: who shall receive the mail +mailaddr=root +# +from=`echo $* | awk '{print $6}'` +to=`echo $* | awk '{print $8}'` +date=`date "+%b %d"` +time=`date "+%H:%M"` +mach=`hostname` + +# do nothing if no number available + +if [ $from = NotAvailable ] +then + exit 0 +fi + +# send mail + +cat << ENDOFDATA | mail -s "isdnd: unknown incoming telephone call" $mailaddr + + On $date at $time a telephone call from a destination + unknown to the isdn daemon came in: + + From: $from + + To: $to + + Sincerly yours, + the isdnd on $mach + +ENDOFDATA + +exit 0 |