u-isdn/tools/isdn.conf

226 lines
7.6 KiB
Plaintext

### Sample configuration files.
### Everything in angle brackets is to be replaced with more sensible values!
## Flags ":sv <whatever>" are specific to the German 1TR6 protocol.
## Flags ":vB <whatever>" are specific to Euro-ISDN.
# See the DOKU file for an explanation.
# Sample answering machine.
# It answers on EAZ 2 (1TR6) bzw. MSN ...2 (Euro).
R phone * * * <username> mRM.3 catfone
## This number ---^ is the delay before the answerer answers.
## Warning: You have to adapt the catfone script to your requirements.
P phone * * * RXi :sv 0102 :il :vB 9090A3 EFFF9F :lr /2
P phone * * * RXi :sv 0101 :il :vB 9090A3 EFFF9F :lr /2
ML phone * * * - transalaw alaw
# Sample remote login.
# Logins from "somebody" are only accepted if their number ends in 8.
R login * * * root mTSRUDi /bin/login
P login somebody * * R :nr .8
P login * * * MX :lr /1 :vB 8890 :sv 0700
MP login * * * - x75 :nk 6
MP login * * * - proto :sg 0 :ca 2 :bk 0
ML login * * * -,3 frame x75
# Sample CEPT session, new standard. Untested.
P cept cept * * RX :vB 8890 :vL 9090A9D1E7 :vH 91D2 :sv 0F00
MP cept * * * - x75 :nk 1
MP cept * * * - proto :sg 0 :ca 2 :bk 0
ML cept * * * -,0 frame x75 t70
D cept cept * * o -01910
# Sample CEPT session, old standard. Untested.
P btx btx * * RX :vB 8890 :vL 9090A9D1EA :sv 0500
MP btx * * * - x75 :nk 1
MP btx * * * - proto :sg 0 :ca 2 :bk 0
ML btx * * * -,0 frame x75 t70
D btx btx * * o -01910
# Sample dialup TCP/IP connection.
# It is automatically openend whenever you want to transmit packets,
# and it's closed when no more packets are transmitted after a timeout.
R tcp somebody * * root 1RUp slipto -r <remote_network> <local_IP> <remote_IP>
# Use -R for host routes. Use -r network:netmask for subnets or supernets.
# Use -d for the default route.
P tcp somebody * * R :nr .1
P tcp * * * MX :lr /2 :vB 8890 :sv 0700
ML tcp somebody * * -,3 frame timer reconn str_if
MP tcp somebody * * - timer :tr 60 :tw 60 :ti 360 :to 360 :lo
MP tcp * * * - proto :sg 1 :ca 1 :bk 0
## example for dialup-TCP; demand-only and outgoing-only.
# If you need dynamic address assignment, call slipto
# from an appropriate chat script.
# Dynamic address assignment via PPP will be here, too ... someday.
#R dtcp somebody * * root 1RUd slipto -E -r <remote_network> <local_IP> <remote_IP>
#P dtcp somebody * * R :nr .1
#P dtcp * * * MX :lr /2 :vB 8890 :sv 0700
#ML dtcp somebody * * -,3 frame slip timer str_if
#MP dtcp somebody * * - timer :tr 60 :tw 60 :ti 360 :to 360 :lo
#MP dtcp * * * - proto :sg 0 :ca 1 :bk 0
# Remote phone numbers.
# The "unknown" entry is used when no number is transmitted.
# Note that you need a matching entry with "o" flag (or no "i" flag)
# if you want to ATDnumber.
D * somebody A * - +49=911-234567.
D * x-de-nbg X * i +49=911-*
D * x-de Y * i +49=*
D * x-intl Z * i +*
D * unknown U * - +*
# Local numbers.
#DL * Tel0 +49=911-959913/[1-3] :pr 0 :sp 8 :pr 63
DL * Tel0 +49=911-919402/ :pr 0 :sp 65 :pr 63
## :pr 64 -- leased lines ONLY.
## :pr 65 -- cards with CAPI interface ONLY.
## :pr 0 -- the normal circuit-mode D channel protocol
## :sp 65 -- German 1TR6
## :sp 8 -- European DSS-1
## :pr 63 -- TEI assignment; always necessary on dialup lines.
# Use _after_ :pr 0.
#
# Dialout prefixes.
# Use the first line (numbers end with "/") for basic ISDN service.
# Use the second line (numbers end with ".") if you're behind a PBX.
# Use the third line (numbers have to end with "/", sorry) for German 1TR6
# PBXes which don't prefix a zero for incoming calls.
DP * +00=0-
#DP * +000=00-0.
#DP * +000=00-0 +00=0-
# Limit how many B channel connections may be opened.
# Override the limit with :il in the P line.
CL * * * * 2
## Load cards. Data block length, time to wait after load.
LF Bin? 4000 3 /etc/isdn/boot.68k
LF Bin? 4000 3 /etc/isdn/bri.68k
## The following is a complete example on how to do a leased line.
#
#P tcp foo * Tel0 RXf :dI :bc 1 :Ft
#ML tcp foo * Tel0 -,3 frame xstrlog fakeh reconn str_if
#MP tcp foo * Tel0 - proto :sg 1 :ca 1 :bk 0 :on
#R tcp foo * Tel0 root RUBf slipto -d 10.1.1.1 10.1.1.2
#D * foo * Tel0 f -
#DL * Tel0 - :pr 64
## The following is a complete example on how to do a leased line.
#
#P tcp foo * Tel0 RXf :dI :bc 1 :Ft
#ML tcp foo * Tel0 -,3 frame xstrlog fakeh reconn str_if
#MP tcp foo * Tel0 - proto :sg 1 :ca 1 :bk 0 :on
#R tcp foo * Tel0 root RUBf slipto -d 10.1.1.1 10.1.1.2
#D * foo * Tel0 f -
#DL * Tel0 - :pr 64
### Tarifzonen sind was Doofes...
# Um diese Daten zu nutzen, muss in der betreffenden P-Zeile
# als Key mindestens ein A bis J stehen (Entfernung des Rechners)
# und ein abcde (innerdeutsch; Zeiten zu denen angerufen werden
# darf). Trennen ankommend/abgehend mit i/o im mod-Eintrag und
# einer duplizierten Zeile.
# Vorsicht: Bei unpassenden P-Zeilen wird die Verbindung gar nicht
# erst zugelassen, aber bei unpassenden MPs wird der Parameter nicht
# zum Treiber geladen und bei unpassender ML wird die Verbindung
# erst angenommen und dann weggeworfen (Program Error).
#
# Wem an dieser Tabelle auffaellt, dass es am Wochenende keinen
# Nachttarif gibt, die DFUe mittwochs um drei Uhr nachts (in der Fernzone)
# folglich 4.8mal teurer ist als sonntags nacht um drei: JA DAS IST SO,
# guckt in eure Tarifinfo, und dann beschwert euch bei den Telekomikern...
#
## A-J: City/R50/R200/Fern / Euro1/2/Welt1/2/3/4
## a-e: Vormittag/Nachmittag/Freizeit/Mondschein/Nacht
## fg: Tag/Nacht Euro1
## hi: Standard/Spar USA
## a-e: Vormittag/Nachmittag/Freizeit/Mondschein/Nacht
# "nachmittag" zweigeteilt wegen USA-Spartarif
# 90,90,150,240,240
MP * * +A+ab * - timer :tr 60 :tw 60 :ti 90 :to 85 :lo
MP * * +A+c * - timer :tr 60 :tw 60 :ti 150 :to 145 :lo
MP * * +A+de * - timer :tr 60 :tw 60 :ti 240 :to 235 :lo
# 26,30,45,60,120
MP * * +B+a * - timer :tr 15 :tw 15 :ti 26 :to 21 :lo
MP * * +B+b * - timer :tr 20 :tw 20 :ti 30 :to 25 :lo
MP * * +B+c * - timer :tr 30 :tw 30 :ti 45 :to 40 :lo
MP * * +B+d * - timer :tr 40 :tw 40 :ti 60 :to 55 :lo
MP * * +B+e * - timer :tr 60 :tw 60 :ti 120 :to 115 :lo
# 12,13.5,21.5,30,120
MP * * +C+a * - timer :tr 8 :tw 8 :ti 12 :to 9 :lo
MP * * +C+b * - timer :tr 9 :tw 9 :ti 13 :to 10 :lo
MP * * +C+c * - timer :tr 15 :tw 15 :ti 21 :to 17 :lo
MP * * +C+d * - timer :tr 20 :tw 20 :ti 30 :to 25 :lo
MP * * +C+e * - timer :tr 60 :tw 60 :ti 120 :to 115 :lo
# 11.5,12.5,20,25,120
MP * * +D+a * - timer :tr 7 :tw 7 :ti 11 :to 10 :lo
MP * * +D+b * - timer :tr 9 :tw 9 :ti 12 :to 11 :lo
MP * * +D+c * - timer :tr 12 :tw 12 :ti 20 :to 15 :lo
MP * * +D+d * - timer :tr 20 :tw 20 :ti 25 :to 20 :lo
MP * * +D+e * - timer :tr 60 :tw 60 :ti 120 :to 115 :lo
# 7.2,9
MP * * +E+f * - timer :tr 5 :tw 5 :ti 7 :to 6 :lo
MP * * +E+g * - timer :tr 7 :tw 7 :ti 9 :to 8 :lo
# 5.63 (SEHR WITZIG!)
MP * * +F * - timer :tr 4 :tw 4 :ti 5 :to 4 :lo
# 5, 5.46 (auch sehr witzig.)
MP * * +G * - timer :tr 4 :tw 4 :ti 5 :to 4 :lo
MP * * +G * - timer :tr 4 :tw 4 :ti 5 :to 4 :lo
# 3. Zu kurz. Mindestzeit 2 Einheiten.
MP * * +H * - timer :tr 5 :tw 5 :ti 3 :to 2 :lo
# 2.6. Dito.
MP * * +I * - timer :tr 4 :tw 4 :ti 2 :to 3 :lo
# 2.31. Sorry, so genau bin ich nicht...
MP * * +I * - timer :tr 4 :tw 4 :ti 2 :to 3 :lo
# Grmbl. Innerdeutsch 9 Uhr, ausserhalb 8 Uhr, USA 14 Uhr.
# a-e: deutsch; fg: Euro1, hi: USA
TM ABCDEFGHIJKLMNOP Any
TM c Wk0500-0900
TM a Wk0900-1200
TM b Wk1200-1800
TM c Wk1800-2100,SaSu0500-2100
TM d Wk2100-0200,SaSu2100-0500
TM e Wk0200-0500
TM f Wk0800-1800
TM g Wk1800-0800,SaSu
TM h any1400-0300
TM i any0300-1400
# END